← 返回
内容创作 中文

Design System

Build design systems with tokens, components, and documentation that scale across teams and products.
使用令牌、组件和文档构建跨团队、跨产品的可扩展设计系统。
ivangdavila
内容创作 clawhub v1.0.0 1 版本 99929.8 Key: 无需
★ 1
Stars
📥 1,403
下载
💾 37
安装
1
版本
#latest

概述

Setup

On first use, read setup.md for integration guidelines. All preferences are stored in ~/design-system/memory.md.

When to Use

User needs to create, maintain, or extend a design system. Agent handles token architecture, component patterns, documentation structure, and cross-platform consistency.

Architecture

Memory lives in ~/design-system/. See memory-template.md for structure.

~/design-system/
├── memory.md         # Status + context + decisions
└── tokens/           # Token definitions if exported

Quick Reference

TopicFile
-------------
Setup processsetup.md
Memory templatememory-template.md

Core Rules

1. Tokens First, Components Second

Design tokens are the foundation. Before building any component:

  • Define color tokens (semantic, not raw hex)
  • Define spacing scale (consistent multiplier)
  • Define typography scale (modular)

Components consume tokens. Never hardcode values.

2. Semantic Over Literal Naming

BadGood
-----------
blue-500primary
14pxtext-sm
8pxspace-2

Semantic names survive rebrand. Literal names break everything.

3. Three-Tier Token Architecture

Primitive → Semantic → Component
   ↓           ↓          ↓
 gray-900   text-primary  button-text
  • Primitive: Raw values (colors, sizes)
  • Semantic: Meaning-based (primary, danger, muted)
  • Component: Specific use (button-bg, card-border)

4. Document Decisions, Not Just Specs

Every token and component needs:

  • What: The value or pattern
  • When: Usage context
  • Why: The decision behind it
  • When NOT: Anti-patterns to avoid

5. Platform-Agnostic Source of Truth

Design tokens should export to:

  • CSS custom properties
  • Tailwind config
  • iOS/Android native
  • Figma variables

One source, many outputs. Use Style Dictionary or similar.

6. Component API Consistency

All components follow the same patterns:

  • Same prop naming (variant, size, disabled)
  • Same size scale (sm, md, lg)
  • Same variant names (primary, secondary, ghost)

Predictability beats cleverness.

7. Versioning and Migration

Breaking changes need:

  • Version bump (semver)
  • Migration guide
  • Deprecation warnings before removal
  • Codemods when possible

Common Traps

  • Premature abstraction → Build 3 instances before extracting a pattern
  • Token explosion → 50 grays is not a system, it is chaos
  • Skipping documentation → Undocumented patterns get reimplemented wrong
  • Designing for edge cases first → Cover 80% well before 100% poorly
  • No dark mode strategy → Retrofit is 10x harder than planning upfront
  • Inconsistent spacing → Use a scale (4px base), not arbitrary values
  • Component prop sprawl → More than 10 props means split the component

Security & Privacy

Data that stays local:

  • Design decisions in ~/design-system/
  • Token definitions and component specs

This skill does NOT:

  • Access files outside ~/design-system/
  • Make network requests
  • Store sensitive data

Related Skills

Install with clawhub install if user confirms:

  • css — Styling fundamentals
  • tailwindcss — Utility-first CSS
  • frontend — Frontend development
  • ui — User interface patterns
  • design — Design principles

Feedback

  • If useful: clawhub star design-system
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 11:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 861 📥 200,186
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,822
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,546