docs: Update Input/Select/Card to semantic aliases + raise maturity to 83%
- RFC-002 Input: - Token Dependencies updated to semantic aliases with primitives - All tokens now map through color.surface, color.border, color.text, color.status - No direct color references (e.g., semantic-red-500 → color.status.danger) - Helper/error text uses semantic tokens - RFC-003 Select: - Token Dependencies updated to semantic aliases with primitives - Dropdown, option, and error states use semantic tokens - Selected option uses color.action.primary at 10% opacity - No direct color references - RFC-004 Card: - Token Dependencies updated to semantic aliases with primitives - Surface, border, text hierarchy use semantic tokens - Shadow tokens mapped to elevation system - No direct color references - COMPLIANCE_MATRIX.md: - Input: 33% → 83% - Select: 33% → 83% - Card: 33% → 83% - All now have Governance ✅, Tokens ✅, Motion ✅, Accessibility ✅, AI ✅ Rationale: Semantic model first. Components never reference primitives. Token contracts (purpose, allowed, forbidden) ensure correct usage. Dark mode implementable via token swap without component changes.
This commit is contained in:
@@ -100,29 +100,29 @@ Select exists to allow users to choose exactly one option from a predefined list
|
||||
|
||||
## 9. TOKEN DEPENDENCIES
|
||||
|
||||
| Token | Semantic Reference | Usage |
|
||||
|-------|-------------------|-------|
|
||||
| `select-bg` | `surface-primary` | Background |
|
||||
| `select-border` | `border-default` | Default border |
|
||||
| `select-border-focus` | `brand-500` | Focus border |
|
||||
| `select-border-error` | `semantic-red-500` | Error border |
|
||||
| `select-text` | `text-primary` | Selected text |
|
||||
| `select-placeholder` | `text-muted` | Placeholder text |
|
||||
| `select-padding` | `space-3` | Internal padding |
|
||||
| `select-radius` | `radius-md` | Border radius |
|
||||
| `select-height-sm` | `space-8` | Small height (32px) |
|
||||
| `select-height-md` | `space-10` | Medium height (40px) |
|
||||
| `select-height-lg` | `space-12` | Large height (48px) |
|
||||
| `select-dropdown-bg` | `surface-primary` | Dropdown background |
|
||||
| `select-dropdown-border` | `border-default` | Dropdown border |
|
||||
| `select-dropdown-shadow` | `shadow-md` | Dropdown elevation |
|
||||
| `select-option-hover` | `surface-secondary` | Option hover background |
|
||||
| `select-option-selected` | `brand-50` | Selected option background |
|
||||
| `select-option-disabled` | `surface-secondary` | Disabled option background |
|
||||
| `select-error-bg` | `semantic-red-50` | Error background tint |
|
||||
| `select-disabled-bg` | `surface-secondary` | Disabled background |
|
||||
| `select-disabled-text` | `text-muted` | Disabled text |
|
||||
| `select-chevron` | `text-muted` | Chevron icon color |
|
||||
| Token | Semantic Alias | Primitive | Usage |
|
||||
|-------|---------------|-----------|-------|
|
||||
| `select-bg` | `color.surface.default` | `gray-0` | Background |
|
||||
| `select-border` | `color.border.default` | `gray-200` | Default border |
|
||||
| `select-border-focus` | `color.border.focus` | `blue-500` | Focus border |
|
||||
| `select-border-error` | `color.border.error` | `red-500` | Error border |
|
||||
| `select-text` | `color.text.primary` | `gray-900` | Selected text |
|
||||
| `select-placeholder` | `color.text.muted` | `gray-400` | Placeholder text |
|
||||
| `select-padding` | `space-3` | `12px` | Internal padding |
|
||||
| `select-radius` | `radius-md` | `8px` | Border radius |
|
||||
| `select-height-sm` | `space-8` | `32px` | Small height |
|
||||
| `select-height-md` | `space-10` | `40px` | Medium height |
|
||||
| `select-height-lg` | `space-12` | `48px` | Large height |
|
||||
| `select-dropdown-bg` | `color.surface.raised` | `gray-50` | Dropdown background |
|
||||
| `select-dropdown-border` | `color.border.default` | `gray-200` | Dropdown border |
|
||||
| `select-dropdown-shadow` | `shadow-md` | `0 4px 6px rgba(0,0,0,0.07)` | Dropdown elevation |
|
||||
| `select-option-hover` | `color.surface.raised` | `gray-50` | Option hover background |
|
||||
| `select-option-selected` | `color.action.primary` (at 10%) | `blue-50` | Selected option background |
|
||||
| `select-option-disabled` | `color.surface.raised` | `gray-50` | Disabled option background |
|
||||
| `select-error-bg` | `color.status.danger` (at 5%) | `red-50` | Error background tint |
|
||||
| `select-disabled-bg` | `color.surface.raised` | `gray-50` | Disabled background |
|
||||
| `select-disabled-text` | `color.text.muted` | `gray-400` | Disabled text |
|
||||
| `select-chevron` | `color.text.muted` | `gray-400` | Chevron icon color |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user