-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Using string literals for design tokens:
// Current: No autocomplete, typo-prone
<div style={{
gap: 'var(--ai-spacing-8)', // ❌ String, no type safety
fontSize: 'var(--ai-font-size-sm)' // ❌ Could typo
}} />
// Should export:
import { spacing, typography } from '@ainativekit/ui/tokens';
<div style={{
gap: spacing[8], // ✅ Autocomplete!
fontSize: typography.body.fontSize
}} />
Metadata
Metadata
Assignees
Labels
No labels