css/functions/color
Prev: math | Up: functions | Next: at_rules
Rel: Color & Value Functions Guide
Ref: MDN Web Docs — CSS Value Functions
Tags: #public #web #css #functions #color #index
Overview
Custom property resolution, perceptually uniform color spaces, mixing, and adaptive theming.
Core (#tier/core)
- `var()` — Substitutes a CSS custom property value with an optional fallback.
- `oklch()` — Perceptually uniform Lightness-Chroma-Hue color space with wide P3 gamut support.
- `light-dark()` — Returns the first color in light
color-schemeand the second in darkcolor-scheme.
Standard (#tier/standard)
- `color-mix()` — Blends two colors in a chosen color space to derive hover/border/surface variants dynamically.
- `linear-gradient()` — Generates a smooth gradient
<image>usable inbackground-image.
Linked from
Related notes
- tuts/css/functions Linked here; links to this page; shared tags: #css, #functions, #index, #web
- tuts/css/functions/color/color-mix Linked here; links to this page; shared tags: #color, #css, #functions, #web
- tuts/css/functions/color/light-dark Linked here; links to this page; shared tags: #color, #css, #functions, #web
- tuts/css/functions/color/linear-gradient Linked here; links to this page; shared tags: #color, #css, #functions, #web
- tuts/css/functions/color/oklch Linked here; links to this page; shared tags: #color, #css, #functions, #web
- tuts/css/functions/color/var Linked here; links to this page; shared tags: #color, #css, #functions, #web
- tuts/css/functions/math Linked here; links to this page; shared tags: #css, #functions, #index, #web
- tuts/css/functions/color_and_value_functions Linked here; shared tags: #color, #css, #functions, #web
- tuts/css/at_rules Linked here; shared tags: #css, #index, #web
- tuts/css/functions/math/repeat links to this page; shared tags: #css, #functions, #web