Skip to content

Integration with the new media query: prefers-color-scheme #1022

Answered by lubber-de
YamiOdymel asked this question in General
Discussion options

You must be logged in to vote

I think, you can achieve this today without any change to the code and keep full IE11 compatibility.

@import url('semantic.css'); /*default for non supporting browsers */
@import url('semantic-my-custom-dark-theme.css') (prefers-color-scheme: dark);
@import url('semantic-my-custom-light-theme.css') (prefers-color-scheme: light);

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
2 replies
@harsh1868-zz
Comment options

@lubber-de
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1022 on October 07, 2020 20:10.