Bootstrap: Dark/Light Mode Mixins

Created on 19 Oct 2019  路  5Comments  路  Source: twbs/bootstrap

I'd like to help push forward with #27514 by implementing a mix-in for dark mode or light mode that can be used by users and throughout the Bootstrap source code. I will file a pull request with my improvements when I'm finished (if this sounds OK).

css has-pr

All 5 comments

If I can. I see that You are planning to add dark theme to bootstrap which is great.
But I also see that You are connecting dark theme with prefers-color-scheme.
I think it suppose to be independent. Some users might want to have dark theme while having light system theme. Or maybe dark theme would be tirggered during day and night?

@piernik I'm simply just writing a mixin for Sass for the media query. If someone wanted to force the theme, they could write the theme as a class and @extend it in the @include dark-scheme {}.

@juniorRubyist I'm not sure your suggestion. Can you create a PR or show demo on https://www.sassmeister.com/ for clarity?

@ysds #29552

@juniorRubyist thanks, I missed it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IamManchanda picture IamManchanda  路  3Comments

knownasilya picture knownasilya  路  3Comments

matsava picture matsava  路  3Comments

devdelimited picture devdelimited  路  3Comments

alvarotrigo picture alvarotrigo  路  3Comments