Overview
The Web standards: rules for HTML and CSS.
- Always Use Design Tokens For Colors - colors only from the project's token layer, which wraps the design system in one place, never raw hex, prefer existing colors
- Dark Mode Through Tokens - a fill that follows the color mode comes from a token with a dark value, or is a transparent cutout, never a literal override
- Hidden Attribute Loses To Display - a hidden-toggled element's display rule yields to
[hidden], and its closed state is verified by what is painted - SCSS Shared Partial Imports - shared SCSS partials via
@use '@styles/<name>', no alias - Transitions Only On User Toggle - transitions only on user toggles, never on load or resize