Skip to content
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

Add prefers-color-scheme / color-scheme / light-dark() #727

Merged
merged 3 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions feature-group-definitions/color-scheme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: color-scheme
description: The `color-scheme` CSS property sets which color schemes (light or dark) an element uses and may prevent automatic dark mode adjustments by the browser.
spec: https://drafts.csswg.org/css-color-adjust-1/#color-scheme-prop
usage_stats: https://chromestatus.com/metrics/css/timeline/popularity/637
compat_features:
- css.properties.color-scheme
- css.properties.color-scheme.only_dark
- css.properties.color-scheme.only_light
5 changes: 5 additions & 0 deletions feature-group-definitions/light-dark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: light-dark()
description: The `light-dark()` CSS function accepts two colors and uses one depending on the current color scheme.
spec: https://drafts.csswg.org/css-color-5/#light-dark
compat_features:
- css.types.color.light-dark
5 changes: 5 additions & 0 deletions feature-group-definitions/prefers-color-scheme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: prefers-color-scheme
description: The `prefers-color-scheme` CSS media query detects the requested color scheme, light or dark.
spec: https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme
compat_features:
- css.at-rules.media.prefers-color-scheme
Loading