Color & Theming articles

Articles on CSS color: oklch, custom properties, gradients, shadows, and backdrop-filter. Each article is a deep dive with code examples, browser-support notes, and practical tips.

color-mix(): blending colors in CSS

Learn color-mix(): syntax, color spaces, percentage control, practical uses for hover states and alpha blending, and design token patterns.

Gradient borders

Three techniques for gradient borders — border-image, background-clip trick, and mask-based approaches.

gradients

Gradient text with background-clip

Create gradient-colored text using background-clip: text and linear-gradient — the technique, its gotchas, and accessible alternatives.

The light-dark() function

Use the CSS light-dark() function to define theme-aware values in a single declaration — simpler than media queries.

theming