Skip to content

Commit

Permalink
feat(media): add inverted colors custom media query (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbontems committed Feb 21, 2024
1 parent 09e70c0 commit e857ce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docsite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3366,6 +3366,7 @@ <h5>Preference Vars</h5>
@custom-media --motionOK (prefers-reduced-motion: no-preference);
@custom-media --motionNotOK (prefers-reduced-motion: reduce);

@custom-media --invertedColors (inverted-colors: inverted);
@custom-media --forcedColors (forced-colors: active);
</code></pre>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/props.media.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@custom-media --highContrast (prefers-contrast: more);
@custom-media --lowContrast (prefers-contrast: less);

@custom-media --invertedColors (inverted-colors: inverted);
@custom-media --forcedColors (forced-colors: active);

@custom-media --portrait (orientation: portrait);
Expand Down
1 change: 1 addition & 0 deletions src/props.media.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const CustomMedia = {
"--highContrast": "(prefers-contrast: more)",
"--lowContrast": "(prefers-contrast: less)",

"--invertedColors": "(inverted-colors: inverted)",
"--forcedColors": "(forced-colors: active)",

"--portrait": "(orientation: portrait)",
Expand Down

0 comments on commit e857ce9

Please sign in to comment.