More actions
Proton One (talk | contribs) Created page with "; Description : Design variables allow consistency by adjusting the light and dark themes to account for the physiological difference in color perception between black-on-white and white-on-black ; Dependencies: :; Used by :: {{T|co}} ; Syntax : {{T|Design var|text color}}<!-- = is the = sign --> :; Parameters <!-- delete if N/A --> ::; text color ::: If a replacement design variable exists, injects it. If not, passes the color unchanged. ; Sample <!-- delete if N..." |
Proton One (talk | contribs) m consistency ➙ visual consistency |
||
| Line 1: | Line 1: | ||
; Description | ; Description | ||
: Design variables allow consistency by adjusting the light and dark themes to account for the physiological difference in color perception between black-on-white and white-on-black | : Design variables allow visual consistency by adjusting the light and dark themes to account for the physiological difference in color perception between black-on-white and white-on-black | ||
; Dependencies: | ; Dependencies: | ||
Revision as of 03:00, 3 December 2025
- Description
- Design variables allow visual consistency by adjusting the light and dark themes to account for the physiological difference in color perception between black-on-white and white-on-black
- Dependencies
-
- Used by
- {{co}}
- Syntax
- {{Design var|<text color>}}
- Parameters
-
- text color
- If a replacement design variable exists, injects it. If not, passes the color unchanged.
- Sample
{{Design var|red}}- gives...
var(--color-syntax-red)
{{Design var|magenta}}- gives...
magenta
{{Design var|#abcdef}}- gives...
#abcdef