1.2 KiB
1.2 KiB
Token Usage Rules
- Components consume semantic tokens such as
--color-text,--color-surface, and--color-action-conversion. Raw palette values are allowed only in token declaration files, approved asset files, and documented data visualizations. - Orange is reserved for demo conversion and tightly related emphasis. Routine primary actions use the primary-action token.
- White normal text may not use orange-600. Light conversion uses orange-700 with white; dark conversion uses orange-400 with dark text.
- Spacing uses the 4 px scale. Optical exceptions require a comment and design approval.
- Interactive targets are 44 × 44 px minimum unless the target is an inline text link with sufficient surrounding line height.
- Use logical properties:
margin-inline,padding-block,inset-inline-start,border-inline-end. Physical left/right properties fail review unless they describe an intrinsically physical asset. - Shadows are neutral. Colored glow is prohibited.
- No global transition is applied during theme changes.
- Text and surfaces must meet WCAG 2.2 AA in both themes. Focus indicators must remain visible in forced-colors mode.
- Product screenshots are not recolored by tokens.