Skip to content

Dark mode for mark tag (text highlighting) #39139

Discussion options

You must be logged in to vote

Don't you find it too bright too in dark mode?

I'll let the designer answer in the PR since it is more of a design choice.

Does Bootstrap plan to implement a dark mode version of ?

We could indeed have an overridable Sass var (e.g. $mark-bg-dark) with whatever value and then have in our _root.scss:

@if $enable-dark-mode {
  @include color-mode(dark, true) {
    /* ... */
    --#{$prefix}highlight-bg: #{$mark-bg-dark};
  }
}

Created a PR for that (#39141), thanks for pointing that out @angely-dev.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by angely-dev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
2 participants