feat: add Tailwind semantic design tokens

This commit is contained in:
donghyeon-ka
2026-07-25 21:09:07 +09:00
parent a023c3b645
commit 9a92c11792
11 changed files with 491 additions and 28 deletions
+17
View File
@@ -0,0 +1,17 @@
# Design-token styling contract
`src/presentation/styles/theme.css` is the styling SSOT. Components consume
semantic color, spacing, typography, and radius tokens through static Tailwind
classes.
Arbitrary-value policy:
- prefer a named semantic token
- bracket values are allowed only for one-off platform constraints that cannot
be expressed by the current scale
- a repeated bracket value must be promoted into `@theme`
- user-controlled or runtime-composed class strings are forbidden
- class variants must be selected from a closed static map
The removable sample may demonstrate tokens, but product modules must not
import from `src/sample/contract-fixture`.