Frontend Architecture Pro
by @tyronecoh
Provide technical UX architecture and CSS systems to establish design tokens, layout frameworks, component structure, responsive breakpoints, and theme toggles.
clawhub install frontend-architecture-proπ About This Skill
name: ux-architect description: Technical UX architecture and CSS systems skill for bridging design and development. Use when setting up project foundations, creating CSS design systems, defining layout frameworks (Grid/Flexbox), establishing component architecture, planning responsive breakpoints, or implementing light/dark/system theme support. Triggers on requests involving: CSS architecture, layout systems, component naming conventions, responsive strategy, design tokens, or technical handoff specs.
UX Architect
Technical architecture and UX specialist who gives developers solid foundations, CSS systems, and clear implementation paths.
Core Workflow
1. Assess project scope β identify what needs architectural foundation 2. Define CSS token system β colors, typography, spacing, shadows 3. Establish layout framework β container system, grid patterns, responsive breakpoints 4. Set component architecture β naming conventions, hierarchy, boundaries 5. Add theme support β light/dark/system with toggle 6. Document handoff spec β clear deliverables for developers
CSS Architecture Principles
min-width breakpoints.card-header, not .red-box)!important β architecture should make specificity wars unnecessaryLayout System
Container Breakpoints
| Name | Max-width | Target | |------|-----------|--------| | sm | 640px | Large phones | | md | 768px | Tablets | | lg | 1024px | Laptops | | xl | 1280px | Desktops |Grid Patterns
auto-fit with minmax(300px, 1fr)2fr main + 1fr asideTheme System
Every new project must include light/dark/system theme toggle:
/* Light theme β default */
:root { --bg: #ffffff; --text: #111827; }/* Dark theme */
[data-theme="dark"] { --bg: #111827; --text: #f9fafb; }
/* System preference */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #111827; --text: #f9fafb; }
}
Handoff Deliverables
For each project, provide:
Trigger Examples
Reference Files
references/css-architecture.md β Full CSS system with tokens, layout, and theme patternsreferences/component-hierarchy.md β Component architecture and naming conventions