Sébastien Rigaux

Tech watch

← All links

Design tokens

Named color, typography and spacing values shared across components.

Illustration of a button with a trash icon alongside SVG and CSS code snippets.

Lea Verou proposes treating icons as CSS design tokens: custom properties assign them to pseudo-elements, where SVG masks render them without adding markup. Components can then select or override an icon based on state, theme, or context, while keeping definitions centralized in the design system.

There are trade-offs: masking mainly suits monochrome icons, URLs and registered properties behave inconsistently across browsers, and Safari needs workarounds. The post explains these constraints and introduces @nudeui/icons, a package that brings the system together.

Lea VerouFound via Frontend Focus

Tool

Refero Styles: AI-ready design system library

styles.refero.designPermalink
Preview of the Refero Styles website style library

Refero Styles offers a browsable collection of over 2,000 design systems from well-known product sites, each paired with a DESIGN.md file readable by AIs like Cursor, Claude, or ChatGPT. The tool lets you inspect colors, typography, spacing, and components, then reuse these styles in your own projects or AI prompts. It’s a practical resource to give visual context to an assistant or speed up interface design inspired by market references.

Refero