Sha256: 85d8c86944404062f315a31089105a7d3163c9d57d6a2afb7143299f0965d71d

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

// Theming code courtesy of Katie McTigue
// Link to blog post: https://medium.com/@katiemctigue/how-to-create-a-dark-mode-in-sass-609f131a3995

// Shades of gray
$white-color: white !default;
$light-gray-color: #ececec !default;
$dark-gray-color: #242424 !default;
$black-color: black !default;

// Colors
$primary-color:  #0077ff !default;
$secondary-color:#ff6200 !default;
$tertiary-color: #ffe100 !default;
$quaternary-color: #c400ff !default;

// Themes
$themes : (
    
    // Lightmode theme
    colormode-light: (
        // Areas
        bg: $white-color,
        text: $black-color,
        hl-area: $light-gray-color,
        hl: $dark-gray-color,

        // Colors
        primary: $primary-color,
        text-on-primary: $white-color,
        secondary: $secondary-color,
        text-on-secondary: $white-color,
        tertiary: $tertiary-color,
        text-on-tertiary: $black-color,
        quaternary: $quaternary-color,
        text-on-quaternary: $white-color
    ),

    // Darkmode theme
    colormode-dark: (
        // Areas
        bg: $black-color,
        text: $white-color,
        hl-area: $dark-gray-color,
        hl: $light-gray-color,

        // Colors
        primary: darken($primary-color, 5%),
        text-on-primary: $white-color,
        secondary: darken($secondary-color, 5%),
        text-on-secondary: $white-color,
        tertiary: darken($tertiary-color, 5%),
        text-on-tertiary: $black-color,
        quaternary: darken($quaternary-color, 5%),
        text-on-quaternary: $white-color,
    )
    
);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-peaceful-gates-2.2.0 _sass/jekyll-theme-peaceful-gates/_theme.scss