-
Notifications
You must be signed in to change notification settings - Fork 54
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
Dark mode: Add $theme-colors-dark
and $theme-colors-rgb-dark
#2227
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e8861eb
to
b590177
Compare
TBH, not quite sure about the changes in the doc. maybe these should come later. Haven't changed the migration guide as weel for now since the variables might change. |
$theme-colors-dark
and $theme-colors-rgb-dark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few quick comments
21eba76
to
8fce157
Compare
8fce157
to
08e197b
Compare
// scss-docs-start theme-color-dark-variables | ||
$primary-dark: $orange !default; | ||
$secondary-dark: $black !default; | ||
$success-dark: $functional-green-dark !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to override $blue
, $green
, etc. + $colors
or create *-dark
versions of them?
In light mode we have:
$functional-green: #228722 !default;
$green: $functional-green !default;
$success: $green !default;
In dark mode:
$functional-green-dark: #228722 !default;
$success: $functional-green-dark !default;
Description
Description of the main branch once merged:
Palette:
--bs-body-bg
#ffffff
#141414
--bs-body-color
#000000
#eeeeee
--bs-highlight-bg
#000000
#ffffff
--bs-highlight-color
#ffffff
#000000
--bs-secondary-bg
#eeeeee
#333333
--bs-border-color-translucent
#cccccc
#666666
--bs-secondary-color
#666666
#cccccc
--bs-link-hover-color
#f16e00
#ff7900
--bs-primary
#ff7900
#ff7900
--bs-success
#228722
#32c832
--bs-info
#4170d8
#527edb
--bs-warning
#ffcc00
#ffcc00
--bs-danger
#cd3c14
#d53f15
If there's a new color that doesn't fit well in this table and none exist in actual, introduce a new one otherwise, update this description.
Tasks
theme-colors-dark-map
in the documentation (andtheme-colors-rgb-dark
?) wheretheme-colors-map
is displayed Should be fine$theme-colors-dark
in Boosted only (doesn't exist in Bootstrap) Should be finedocs/5.3/utilities/background/
, it shows that we need to add a new text utility: white in light mode, black in dark mode.bg-primary
need to switch between oranges in light and dark mode?bg-dark
need to be#141414
? And in light mode which color? (seesite/data/theme-colors.yml
andcontrast_color
)$body-secondary-color-dark
impacts in terms of usage Should be fine$body-secondary-bg-dark
impacts in terms of usage Should be fine$body-tertiary-color-dark
impacts in terms of usage Not quite sure, need further investigation$body-tertiary-bg-dark
impacts in terms of usage Should be fineTypes of change
Live previews