Authoring best practices for supporting prefers-color-theme: dark
media query
#3063
Labels
question
Issue asking a question
prefers-color-theme: dark
media query
#3063
Operating systems support
light
anddark
color themes, typically the setting is part of appearance or display options and not in the "accessibility" options section.The
light
color theme is typically the default on most operating systems. Authors can identify the color theme setting through the CSS media queryprefers-color-theme
.The
dark
color theme is associated with lower power consumption, less eye strain and considered easier to read or less disruptive in dark settings (e.g. night time). People with some types of visual impairments prefer to use the dark color theme as their default. When the user selects the dark color theme the CSS media query prefers-color-theme is set to dark.Questions:
prefers-color-theme
media query to make web pages more accessible?light
anddark
color themes?The text was updated successfully, but these errors were encountered: