On this page
  1. color
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

color

Prev: `text-wrap` | Up: typography | Next: `color-scheme`
Rel: typography, Typography & Color Guide
Ref: MDN Web Docs — color
Tags: #public #web #css #properties #typography #tier/core


Syntax & Overview

color: var(--fg);

Sets foreground text color and the value of currentColor.

Notes & Best Practices

Example

.link { color: oklch(52% 0.19 255); }
.link svg { fill: currentColor; }

Linked from

Related notes