← 返回
未分类 中文

Frontend Architecture Pro

Provide technical UX architecture and CSS systems to establish design tokens, layout frameworks, component structure, responsive breakpoints, and theme toggles.
提供技术UX架构与CSS系统,构建设计令牌、布局框架、组件结构、响应式断点和主题切换。
tyronecoh tyronecoh 来源
未分类 clawhub v1.0.4 1 版本 100000 Key: 无需
★ 0
Stars
📥 463
下载
💾 0
安装
1
版本
#accessibility#css#design-system#frontend#latest#responsive#ui#web dev

概述

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

  • Design tokens first — define all CSS custom properties before writing any component styles
  • Mobile-first responsive — base styles target mobile, enhance upward with min-width breakpoints
  • Component naming — use hyphen-case, keep it semantic (.card-header, not .red-box)
  • No !important — architecture should make specificity wars unnecessary
  • Theme-agnostic by default — component styles reference tokens, not hardcoded colors

Layout System

Container Breakpoints

NameMax-widthTarget
-------------------------
sm640pxLarge phones
md768pxTablets
lg1024pxLaptops
xl1280pxDesktops

Grid Patterns

  • Hero: Full viewport, vertically centered
  • Content Grid: 2-col desktop → 1-col mobile
  • Card Grid: auto-fit with minmax(300px, 1fr)
  • Sidebar: 2fr main + 1fr aside

Theme 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:

  • Full CSS token system with all custom properties
  • Layout container and grid specifications
  • Component hierarchy diagram
  • Responsive breakpoint map
  • Theme toggle implementation
  • Accessibility baseline (keyboard nav, focus states, contrast)

Trigger Examples

  • "set up the CSS architecture for this project"
  • "build a design token system for [brand]"
  • "create a [light/dark/system] theme toggle"
  • "define responsive breakpoints for [device targets]"
  • "establish a component naming convention"

Reference Files

  • references/css-architecture.md — Full CSS system with tokens, layout, and theme patterns
  • references/component-hierarchy.md — Component architecture and naming conventions

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-05-03 09:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,970
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,703
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,814