| name | DevFocus Dark | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| version | 1.0 | ||||||||||||||||||||
| theme | dark | ||||||||||||||||||||
| colors |
|
||||||||||||||||||||
| typography |
|
||||||||||||||||||||
| fontWeights |
|
||||||||||||||||||||
| spacing |
|
||||||||||||||||||||
| radius |
|
||||||||||||||||||||
| motion |
|
Defines how layout, hierarchy, and components are structured and applied across all outputs.
- High information density
- Low visual noise
- Fast scanning
- Clear hierarchy
- Primary → key actions only
- Secondary → supporting UI
- Surface → base layout
- Surface Variant → containers
- Border → subtle separation
- On Surface → primary text
- Muted → secondary text
- Max 2 accent colors per screen
- No pure white (#FFFFFF) on dark surfaces
- Minimum contrast ratio: 4.5:1
- Display → hero sections
- Headings → structure
- Body → reading content
- Caption → metadata
- Max 3 sizes per screen
- Line height: 1.4–1.6
- Avoid excessive weights
- Desktop: 12 columns
- Tablet: 8 columns
- Mobile: 4 columns
- Use 8px base system
- Internal spacing < external spacing
- Consistent padding across components
- Reusable
- Predictable
- Stateless by default
- Height: 40–48px
- Radius: 8px
Variants:
- Primary
- Secondary
- Ghost
States:
- Default
- Hover
- Active
- Disabled
- Border: 1px
- Background: surface-variant
States:
- Default
- Focus
- Error
- Disabled
- No elevation
- Use contrast instead
- Optional borders
- Centered
- Dimmed overlay
- Clear primary action
- 150–300ms
- Subtle transitions only
- No decorative animation
- Immediate response
- Always show hover/focus states
- WCAG AA (4.5:1)
- Min target: 44px
- Keyboard navigation required
- Visible focus states mandatory
- Size
- Contrast
- Position
- Color
- If everything stands out → nothing stands out
- Inconsistent spacing breaks layout
- Competing colors kill hierarchy
Design rules must be applied differently based on output type:
- High contrast
- Minimal text
- Strong hierarchy
- Structured sections
- Balanced spacing
- Clear reading flow
- Dense information
- Consistent typography
- Reduced visual noise
- Strong visual hierarchy
- Clear CTA placement
- Scannable sections
Before publishing, design must pass:
- Layout hierarchy is clear
- Spacing follows system scale
- Typography is consistent
- Color usage follows rules
- Components follow defined states
If any rule fails: → design must be revised
- Must use token system
- Must include all states
- Must be reusable across ≥2 use cases
- Add tokens, not overrides
- Avoid hardcoded values
A design fails if:
- Layout lacks hierarchy
- Spacing is inconsistent
- Typography scale is broken
- Colors are misused
- Components behave inconsistently
Design is not decoration.
Design is structure.
If structure is inconsistent, the output fails.