diff --git a/docsite/index.html b/docsite/index.html index 47b861fa..4d61bf92 100644 --- a/docsite/index.html +++ b/docsite/index.html @@ -3365,6 +3365,8 @@
Preference Vars
@custom-media --motionOK (prefers-reduced-motion: no-preference); @custom-media --motionNotOK (prefers-reduced-motion: reduce); + + @custom-media --forcedColors (forced-colors: active); diff --git a/src/props.media.css b/src/props.media.css index 134a983d..47b95cd9 100644 --- a/src/props.media.css +++ b/src/props.media.css @@ -11,6 +11,8 @@ @custom-media --highContrast (prefers-contrast: more); @custom-media --lowContrast (prefers-contrast: less); +@custom-media --forcedColors (forced-colors: active); + @custom-media --portrait (orientation: portrait); @custom-media --landscape (orientation: landscape); diff --git a/src/props.media.js b/src/props.media.js index 64edee88..efd808a5 100644 --- a/src/props.media.js +++ b/src/props.media.js @@ -12,6 +12,8 @@ export const CustomMedia = { "--highContrast": "(prefers-contrast: more)", "--lowContrast": "(prefers-contrast: less)", + "--forcedColors": "(forced-colors: active)", + "--portrait": "(orientation: portrait)", "--landscape": "(orientation: landscape)",