-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Set color-scheme by default #710
Comments
I’m not sure if it’s something that must be added by default. I did some quick test and found that this Also, I believe that a proper dark theme or default font face is something that should be provided by developer, not a default. And Emmet allow developers to customize snippets |
Think my jsfiddle is sufficient. when you use color-scheme: dark then you will style the calendar widget that you can't solve with any other css selector and this is what it would look without it: so it's more than just default background/text color that gets applied. |
IMO on second screenshot it matches better the default page UI. I’m not convinced such CSS should be default for simple HTML skeleton. |
i haven't tried to style the page at all. |
ok, turned out that you can set a meta tag as well. <meta name="color-scheme" content="dark light"> this is actually better. a full demo of all element is here: https://color-scheme-demo.glitch.me/ |
Providing both a dark and a light color scheme should be on anyones radar now and it should not be forgotten by the developer that there are two kind of ppl in this world
i think it would be useful if when you create a new
html:5
or with!
template...then it should include a simple style sheet that is just marly a:
cuz most often ppl
<select>
,<input type=file>
element that is a bit harder to style and hence why they also tend to completely write custom component with select2 and lots of included html, css and javascript cuz it's hard to style the<select>
or the file input element and also changing the color of the button in the file inputcolor-scheme
is that ppl add a dark background and a light text color but things such as the date icon in eg<input type="date">
still inherit the light theme so the calendar icon is dark on a dark backgroundevident by this jsfiddle demo: https://jsfiddle.net/uj1Ltfxs/
so i would wish for a default but tiny and powerful css is added by default so it becomes:
the color-scheme is often overlooked/forgotten and everyone should be using it i think. it takes care of a lot of fixes and reduces the amount of css you really have to write for having both a dark and light theme
while at it i also think the users own system/OS font should be used by default too.
necolas/normalize.css#665
font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif
so something like this:
The text was updated successfully, but these errors were encountered: