Skip to content

Theemo / @theemo/theme / ColorContrast

Variable: ColorContrast

ts
const ColorContrast: object;

Defined in: features.ts:10

Color Contrasts

Type declaration

NameTypeDefault valueDescriptionDefined in
Custom"custom"'custom'Indicates that user has notified the system for using a specific set of colors, and the contrast implied by these colors matches neither more nor less. This value will match the color palette specified by users of forced-colors: active. See https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colorsfeatures.ts:25
Less"less"'less'Indicates that user has notified the system that they prefer an interface that has a lower level of contrast.features.ts:18
More"more"'more'Indicates that user has notified the system that they prefer an interface that has a higher level of contrast.features.ts:15
NoPreference"no-preference"'no-preference'Indicates that the user has made no preference known to the system. This keyword value evaluates as false in the Boolean context.features.ts:12

See

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast