Skip to content

Different color sets for dark and light modes? #787

Answered by markdumay
Aman-Aalam asked this question in Help
Discussion options

You must be logged in to vote

Hinode supports Bootstrap's color modes. I'd suggest to modify the dark variables in the SCSS file(s) as needed. You can copy the file assets/scss/common/_variables-dark.scss to your own repository. This file will then take precedence. Within the stylesheet, you can override the different colors as needed.

For example, the next adjustment assigns the color yellow to the --bs-primary variable in dark mode (#{$prefix} is a variable that defaults to bs):

@if $enable-dark-mode {
    @include color-mode(dark) {
        --#{$prefix}primary: yellow;
    }
}

The result looks like this:

You can check the various color variables in the Bootstrap docs. The Sass stylesheets use a mix of compiled va…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Aman-Aalam
Comment options

Answer selected by Aman-Aalam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants