Skip to content

CodeHS Dark Theme by Qyoh

Screenshot of CodeHS Dark Theme

Details

AuthorQyoh

Licensedo whatever the fuck you want.

Categorycodehs.com

Created

Updated

Size10 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

a dark theme for codehs. my eyes can work again.
Made by starchyunderscore on github and updated by me!

Notes

Userstyle doesn't have notes.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
    /* ==UserStyle==
@name         CodeHS Dark Theme
@version      20241202.23.41
@namespace    https://userstyles.world/user/Qyoh
@description  a dark theme for codehs. my eyes can work again.Made by starchyunderscore on github and updated by me!
@author       Qyoh
@license      do whatever the fuck you want.
==/UserStyle== */
@-moz-document domain("codehs.com") {
    .collapse,
    .navbar-collapse,
    .navbar-brand {
        background: #1e2227 !important;
        color: white !important;
    }

    .new-navbar.navbar .navbar-nav li a:not(.tt-suggestion) {
        color: #848c98;
        font-weight: 600;
        letter-spacing: .5px;
        font-size: 12px;
    }

    #logged-in-navbar #nav-resume .chs-icon-resume {
        color: #6fdc8c;
    }

    .__abacus_left-tab-bar,
    .__abacus_left-tabs,
    .__abacus_tab-bar,
    .__abacus_editor-tab-bar {
        background: #23272e;
        color: #848c98;
    }

    .__abacus_left-tab,
    .sc-fFSPTT,
    .fUWMBl,
    .__abacus_file-tab {
        background: #181b20;
        color: #848c98;
        ;
        cursor: pointer;
        border-bottom: 3px solid #0d0f14;
    }

    .__abacus_drag-bar,
    .__abacus_drag-bar-horizontal {
        background: #1e2227;
    }

    .__abacus_drag-bar-horizontal {
        height: 100%;
        width: 10px;
        border-left: 1px solid #1e2227;
        border-right: 1px solid #1e2227;
        cursor: col-resize;
    }

    .file-tab-bar,
    .hmqpxx {
        background: #0f1014 !important;
    }

    .__abacus_tab-bar .__abacus_tab.__abacus_active {
        background-color: #1e2227;
        color: #848c98;
    }

    .__abacus_tab {
        background: #1e2227;
    }

    .__abacus_tab-bar .__abacus_tab {
        background-color: #0e161c;
    }

    .__abacus_run-bar,
    .__abacus_light-mode {
        background: #23272e;
    }

    .__abacus_console.__abacus_light-mode {
        border: 1px solid #3b454b;
    }


    .StyledButtonKind-sc-1vhfpnt-0,
    .fSozsy,
    .sc-bkbkJK,
    .eraKfR,
    .__abacus_button,
    .__abacus_button-light-grey {
        color: #fff;
    }

    .__abacus_run-bar,
    .__abacus_light-mode {
        background: #23272e;
    }

    .__abacus_run-bar.__abacus_light-mode,
    .__abacus_debug-bar.__abacus_light-mode {
        background-color: #23272e;
        color: #333;
        border-right: #23272e;
    }

    .__abacus_stdout {
        color: #ddd
    }

    .__abacus_clear-console-button {
        color: #fa4d56 !important;
    }

    .__abacus_button.__abacus_runButton {
        background-color: #6fdc8c;
    }
    .__abacus_button.__abacus_stopButton {
        background-color: #fa4d56;
    }

    .StyledButtonKind-sc-1vhfpnt-0.bCsmqx.__abacus_button.__abacus_clear-console-button {
        background: #a40000;
    }

    .__abacus_editor .__abacus_tab-bar {
        border-bottom: 1px solid #23272e;
        ;
        font-size: 12px;
    }

    /* homepage(classes)
TODO: convert assignments and lesson start page */
    #user-page #wrapper #userpage-content {
        background-color: #23272e;
    }

    #user-page {
        background-color: #23272e;
    }
    #user-page #wrapper {
        background-color: var(--bg-surface, #23272e);
        .course-list-tile {
            background-color: var(--bg-surface, #23272e);
            border: none;
        }
    }

    .h1,
    h1 {
        color: #fff;
    }

    #user-page #wrapper .course-list-tile #percentage-passed {
        color: var(--on-bg-color-high, #fff);
    }

    #user-section-name {
        color: var(--on-bg-color-high, #fff);
    }





    /* sliders/resizers */
    .zo {
        background-color: #23272e
    }
    .Do {
        border-left: black;
        border-right: black;
    }

    /* Lesson title*/
    /* lesson title text color, kinda redundant because we changed header/body text i think */
    .Po {
        color: white;
    }
    .J {
        background-color: #23272e;
    }

    /* left navbar/files */
    .t {
        background-color: #28384a;
    }
    .l .c {
        background-color: #28384a;
    }
    .je {
        background-color: #23272e;
    }
    #nav-search-container #nav-search-trigger {
        background-color: #23272e;
    }
    #nav-search-container .fa-search {
        color: white;
    }
    #editor-bottombar-nav {
        background-color: #23272e;
    }

    .l li {
        color: white;
    }

    /* quiz */
    .quiz-questions li {
        background-color: #23272e;
    }
    .take-quiz-page .quiz-questions > li {
        background-color: #23272e;
    }
    .take-quiz-page {
        background-color: #23272e;
    }
    .take-quiz-page .stats-options-container {
        background-color: #23272e;
    }

    /*directions*/
    #directions-modal .directions {
        background-color: #23272e;
    }
    #directions-modal .top {
        background-color: #23272e;
        border-color: #23272e;
    }
    #directions-modal .bottom {
        background-color: #23272e;
        border-color: #23272e;
    }

    /* assignment tab */
    .n {
        background-color: #23272e;
    }

    /* grade tab */
    #lms-grading-tab #current-grade-status .grade-score-container {
        background-color: #23272e;
    }
    #lms-grading-tab #current-grade-status:before {
        background-color: #23272e;
    }

    /* docs tab */
    .loaded {
        background-color: #23272e;
    }

    /* test cases tab 

    TODO: remove table: hilariously useless and redundant
    TODO: convert pass/fail popup to dark
    TODO: steal border colors from other dark mode hehehehehe 

    */
    .sticky-header {
        background-color: #23272e;
    }
    pre.rounded {
        color: white;
    }
    .table-header-sticky {
        background-color: #23272e;
    }
    .ui-widget-content {
        background: #23272e;
        color: #fff;
    }
    .modal-content {
        background-color: #23272e;
    }
    #autograder-modal {
        color: #909090;
        border: 1px solid rgba(0, 0, 0, 0);
    }
    .modal-header {
        border-bottom: none;
    }
    .modal-footer {
        border-top: none;
    }
    
    #tab-bar .tab-pane, #problem-sidebar-content, #left .action {
        background-color: #23272e;
    }
    #all-assignments-page #assignments-page-wrapper, #all-assignments-page #assignments-page-wrapper #course-sec .module-info, #all-assignments-page #assignments-page-wrapper #search-title input, .lesson-sec, .bg-white.no-border.lesson-toggle.minimized, .no-border.bg-white.right.module-toggle.minimized.module-closed, .no-border.bg-white.right.module-toggle.module-closed.expanded {
        background-color: #23272e;
    }    
    #all-assignments-page #assignments-page-wrapper #course-sec .lesson-header .lesson-status {
        border: none;
    }

    
    /* editor */
    .ace_scrollbar .ace_scrollbar-v {
        visibility: hidden;
    }
    
    #ace-github {
        .ace-gruvbox {
            color: #EBDAB4;
            background-color: #1D2021;
        }

        .ace-gruvbox .ace_invisible {
            color: #504945;
        }

        .ace-gruvbox .ace_marker-layer .ace_selection {
            background: rgba(179, 101, 57, 0.75)
        }

        .ace-gruvbox.ace_multiselect .ace_selection.ace_start {
            box-shadow: 0 0 3px 0px #002240;
        }

        .ace-gruvbox .ace_keyword {
            color: #8ec07c;
        }

        .ace-gruvbox .ace_comment {
            font-style: italic;
            color: #928375;
        }

        .ace-gruvbox .ace-statement {
            color: red;
        }

        .ace-gruvbox .ace_variable {
            color: #84A598;
        }

        .ace-gruvbox .ace_variable.ace_language {
            color: #D2879B;
        }

        .ace-gruvbox .ace_constant {
            color: #C2859A;
        }

        .ace-gruvbox .ace_constant.ace_language {
            color: #C2859A;
        }

        .ace-gruvbox .ace_constant.ace_numeric {
            color: #C2859A;
        }

        .ace-gruvbox .ace_string {
            color: #B8BA37;
        }

        .ace-gruvbox .ace_support {
            color: #F9BC41;
        }

        .ace-gruvbox .ace_support.ace_function {
            color: #F84B3C;
        }

        .ace-gruvbox .ace_storage {
            color: #8FBF7F;
        }

        .ace-gruvbox .ace_keyword.ace_operator {
            color: #EBDAB4;
        }

        .ace-gruvbox .ace_punctuation.ace_operator {
            color: yellow;
        }

        .ace-gruvbox .ace_marker-layer .ace_active-line {
            background: #3C3836;
        }

        .ace-gruvbox .ace_marker-layer .ace_selected-word {
            border-radius: 4px;
            border: 8px solid #3f475d;
        }

        .ace-gruvbox .ace_print-margin {
            width: 5px;
            background: #3C3836;
        }

        .ace-gruvbox .ace_indent-guide {
            background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQUFD4z6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC") right repeat-y;
        }

        .ace-gruvbox .ace_indent-guide-active {
            background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
        }
    }
    body {
        color: white;
    }
    pre {
        background-color: #23272e;
    }

    /*TODO: add styling for all code elements*/
    code {
            background-color: #222;
            /* Light gray background */
            color: #20C20E;
            /* Dark text color */
            /*     font-family: monospace; /* Use a monospace font for code appearance */
            padding: 2px 5px;
            /* Add some padding around the code */
            border-radius: 3px;
            /* Optional rounded corners */
            border-color: white;
        }
    pre code {
            background-color: transparent;
            /* Light gray background */
            color: #20C20E;
            /*...

Reviews

No reviews yet.