Stylus Black Edition by billycool

Imported from https://github.com/BillyCool/UserStyles/raw/master/Stylus-Black-Edition/stylus-black-edition.user.css

Stylus Black Edition screenshot
Homepage Install Get Stylus Write a review

Details

Authorbillycool

LicenseGPL-3.0-or-later

Created atApril 06, 2021 21:15

Updated atApril 07, 2021 17:54

Applies tostylus

Statistics

Learn how we calculate statistics in the FAQ.

Total views218

Total installs335

Weekly installs35

Weekly updates40

Description

A pitch black userstyle for the Stylus extension.

Notes

Installation

  1. Install the Stylus browser extension (Firefox, Chrome, Opera)

  2. Install the userstyle

  3. Enjoy

    Features

  • Customize background color, comes black by default
  • Customize text color, comes white-ish by default
  • Set a highlight color for various elements
  • Adjust border radius of buttons and inputs

History

Daily snapshots of style statistics.

2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date0.004.408.8013.2017.5021.9026.3030.7035.00Daily countDaily installsDaily updatesDaily views
2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date0.0042.0083.00124.00165.00207.00248.00289.00330.00Total countTotal installsTotal views

Source code

/* ==UserStyle==
@name 「Stylus Black Edition」
@namespace BillyCool
@version 1.0.1
@description A pitch black userstyle for the Stylus extension.
@author BillyCool
@homepageURL https://github.com/BillyCool/UserStyles/tree/master/Stylus-Black-Edition
@updateURL https://github.com/BillyCool/UserStyles/raw/master/Stylus-Black-Edition/stylus-black-edition.user.css
@license GPL-3.0-or-later
@preprocessor stylus

@var color bg-1 "Background color" #000
@var color text-1 "Text color" #E1E1E1
@var color highlight "Highlight color" #FF0000
@var range border-radius "Input/button border radius" [4, 0, 12, 1, "px"]

==/UserStyle== */
@-moz-document regexp('^(moz|chrome)-extension://.*$') {
    /* Variable declarations */
    bg-2 = lightenOrDarken(bg-1);
    text-2 = lightenOrDarken(text-1, 25%);

    /* Helper functions */
    lightenOrDarken(color, amount = 5%) {
        if (dark(color)) {
            return lighten(color, amount);
        } else {
            return darken(color, amount);
        }
    }

    getForegroundColor(color) {
        if (dark(color)) {
            return white;
        } else {
            return black;
        }
    }

    /* Main interface */
    *, *:before, *:after {
        box-shadow: none !important;
    }

    #header {
        color: text-1 !important;
        background: bg-1 !important;
    }

    .section-editor {
        color: text-1 !important;
        background: bg-1 !important;
    }

    a {
        color: text-1 !important;

        &:hover {
            color: highlight !important;
        }
    }

    input, select {
        background: bg-1 !important;
        color: text-1 !important;
        border: 1px solid text-1 !important;
        border-radius: border-radius !important;

        &:focus {
            border-color: highlight !important;
        }

        &.slider {
            border: none !important;
            background: none !important;
        }

        optgroup {
            background: bg-2 !important;
            border-bottom: 1px solid text-1 !important;
        }
    }

    button {
        background: bg-1 !important;
        color: text-1 !important;
        border-radius: border-radius !important;

        &:hover {
            color: highlight !important;
            border-color: highlight !important;
            cursor: pointer !important;
        }
    }

    .dropdown-content {
        border: 1px solid text-1 !important;
        background: bg-1 !important;

        a:hover {
            color: highlight !important;
            background: bg-1 !important;
        }
    }

    .svg-icon, .svg-icon.checked, .select-arrow {
        fill: text-1 !important;

        &:hover {
            fill: highlight !important;
        }
    }

    #filters {
        .filter-selection:hover, label:hover {
            background: bg-1 !important;
        }

        #filters-stats {
            if (!dark(highlight)) {
                color: bg-1 !important;
            } else {
                color: text-1 !important;
            }

            background: highlight !important;
        }
    }

    #stylus-options #options-title, #stylus-popup #installed {
        background: bg-1 !important;
        color: text-1 !important;
    }

    #stylus-options #options, #stylus-popup {
        background: bg-2 !important;
        color: text-1 !important;
    }

    #stylus-manage {
        background: bg-1 !important;
        color: text-1 !important;
    }

    .update:after, .up-to-date:after, .updated:after, .update-note:after {
        background: bg-2 !important;
        border-color: text-1 !important;
    }

    .lint-report-container table {
        color: text-1 !important;
    }

    .search-result {
        background: bg-1 !important;

        .search-result-meta {
            background: bg-2 !important;
        }
    }

    #message-box {
        #message-box-title {
            color: text-1 !important;
            background: bg-1 !important;
            border: 1px solid text-1 !important;
        }

        #message-box-contents {
            color: text-1 !important;
            background: bg-1 !important;
            border-left: 1px solid text-1 !important;
            border-right: 1px solid text-1 !important;

            mark {
                border-color: text-2 !important;
                background: bg-2 !important;
            }
        }

        #message-box-buttons {
            color: text-1 !important;
            background: bg-1 !important;
            border: 1px solid text-1 !important;
            border-top: 0 !important;
        }
    }

    #help-popup {
        background: bg-1 !important;
        border: 1px solid text-1 !important;

        .title {
            color: text-1 !important;
            background: bg-1 !important;
            border-bottom: 1px solid text-1 !important;
        }

        .contents {
            color: text-1 !important;

            .can-close-on-esc {
                padding: 2px !important;
            }

            .keymap-list {
                color: text-1 !important;
            }
        }
    }

    .menu-items-wrapper {
        background: bg-1 !important;
        border: 1px solid text-1 !important;

        .menu-title {
            border-bottom: 1px solid text-1 !important;
        }
    }

    .onoffswitch {
        .slider + span:before {
            background: text-2 !important;
        }

        .slider:checked + span:before {
            background: highlight !important;
        }
    }

    #installed {
        .entry {
            .style-name:hover:before {
                background: linear-gradient(to right, hsla(hue(highlight), 79.6%, 44.1%, 0.2), hsla(hue(highlight), 20%, 10%, 0.05) 50%, transparent);
            }

            &.usercss {
                .style-name-link:after {
                    if (!dark(highlight)) {
                        color: bg-1 !important;
                    } else {
                        color: text-1 !important;
                    }

                    background: highlight !important;
                }
            }
        }
    }

    .all-styles-hidden-by-filters:before, .all-styles-hidden-by-filters:after {
        color: text-1 !important;
    }
    
    .install {
        border: 1px solid highlight !important;
        text-shadow: none !important;
    }
    
    .install::before, .install:active::before, .install:active:hover::before{
        background: bg-1 !important;
        border: none !important;
    }

    /* Code editor */
    .CodeMirror {
        background: bg-1 !important;
        color: text-1 !important;
        line-height: 1.4em !important;
        font-size: 14px !important;

        .CodeMirror-line {
            padding-left: 10px !important;
        }

        .CodeMirror-gutters {
            background: bg-1 !important;
            border-color: highlight !important;
        }

        .CodeMirror-selected, .CodeMirror-activeline-background {
            color: bg-1 !important;
            background: bg-2 !important;
        }

        .CodeMirror-cursor {
            border-color: text-1 !important;
        }

        .cm-meta {
            color: text-1 !important;
        }

        .cm-comment {
            color: text-2 !important;
        }

        .cm-matchhighlight {
            color: getForegroundColor(highlight) !important;
            background: highlight !important;
        }
    }

    #search-replace-dialog {
        color: text-1 !important;
        background: bg-1 !important;

        .CodeMirror-search-field {
            color: text-1 !important;
        }
    }
}

Reviews

No reviews yet.