accent-color: styling native form controls
The accent-color property tints native checkboxes, radio buttons, range sliders, and progress bars to match your brand — one line of CSS.
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.
The accent-color property tints native checkboxes, radio buttons, range sliders, and progress bars to match your brand — one line of CSS.
Create frosted glass, blur overlays, and glassmorphism effects with backdrop-filter. Covers blur, brightness, contrast, and performance considerations.
Every box-shadow technique: layered shadows, OKLCH colors, elevation systems, and performance tips.
Create consistent, accessible color palettes using OKLCH — from primary scales to semantic tokens.
Learn color-mix(): syntax, color spaces, percentage control, practical uses for hover states and alpha blending, and design token patterns.
Build pie charts, progress rings, and color wheels using conic-gradient() — no SVG or canvas needed.
Master all three CSS gradient types with color stops, repeating patterns, hard stops, and smooth interpolation in oklch color space.
Master CSS custom properties: var() with fallbacks, inheritance, @property typed variables, and component token patterns.
Three techniques for gradient borders — border-image, background-clip trick, and mask-based approaches.
Create gradient-colored text using background-clip: text and linear-gradient — the technique, its gotchas, and accessible alternatives.
A complete guide to the oklch() color function — how lightness, chroma, and hue work together for perceptually uniform colors.
Perceptually uniform colors and light-dark() for design systems in 2026.
How to detect and respond to the user's system color preference with CSS. Dark mode without JavaScript.
Register custom properties with @property for type checking, initial values, and animatable color transitions.
Use CSS relative color syntax to create hover states, tints, and shades from a single base color — no preprocessor needed.
Why box-shadow values from light themes look wrong on dark backgrounds, and how to fix them with oklch and layered shadows.
Use the CSS light-dark() function to define theme-aware values in a single declaration — simpler than media queries.