Skip to content

Make css style dependent of dark mode #1297

Closed Answered by h-enk
papanito asked this question in Support
Discussion options

You must be logged in to vote

Use the Bootstrap Sass mixin color-mode(). For example:

// Put your custom SCSS code here
h1 {
  background-color: yellow;
}

@include color-mode(dark) {
  h1 {
    background-color: lime;
  }
}

See also the Boostrap docs: Building with Sass

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@papanito
Comment options

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