-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have $form-check-input-border's default derive from $black #33600
Conversation
…f hard-coded black)
Is this because you’ve customized the |
Yea, those screenshots are the result of setting these variable defaults $primary: #FF0000 !default;
$white: #000000 !default;
$gray-100: #1A1A1A !default;
$gray-200: #333333 !default;
$gray-300: #4C4C4C !default;
$gray-400: #666666 !default;
$gray-500: #808080 !default;
$gray-600: #999999 !default;
$gray-700: #B2B2B2 !default;
$gray-800: #CCCCCC !default;
$gray-900: #E6E6E6 !default;
$black: #FFFFFF !default; |
There won't be any difference in the default CSS, but there is an important and noticeable different if you've implemented a dark mode with |
Thanks for the fix! I wonder if you wouldn't mind posting some more info about how you're generating and using the dark theme? Could be a nice guide to add to our docs. |
Thanks @mdo! I've actually been working on an R interface to Bootstrap called bslib::bs_theme(bg = "black", fg = "white") And this, underneath the hood, sets the following variables defaults (via interpolation in CIELAB colour space from $white: #000000 !default;
$gray-100: #1A1A1A !default;
$gray-200: #333333 !default;
$gray-300: #4C4C4C !default;
$gray-400: #666666 !default;
$gray-500: #808080 !default;
$gray-600: #999999 !default;
$gray-700: #B2B2B2 !default;
$gray-800: #CCCCCC !default;
$gray-900: #E6E6E6 !default;
$black: #FFFFFF !default; We've also provided a "real-time theming widget" which enables interactive modification of these and other "main" theming options, for example https://testing-apps.shinyapps.io/themer-demo/ Generally I've found that implementing dark mode themes this way (by just setting And, by the way, I've also made other additions that reduce the need for users to work with utility classes like |
Really like how you're using our contrast function—even used the same trick for background utilities in Boosted (a branded fork of Bootstrap). Reversing the gray scale is a pretty nice idea, this might be documented indeed. |
Before this change, if you implement a dark mode theme using
$grays
, checks and radios aren't very visible:After this change, you'll get better default styling