返回顶部
D

Design System设计系统

Build design systems with tokens, components, and documentation that scale across teams and products.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
805
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Design System

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.

CODEBLOCK0

Quick Reference

TopicFile
Setup processINLINECODE4
Memory template
memory-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
INLINECODE6INLINECODE7
INLINECODE8
text-sm | | 8px | space-2 |

Semantic names survive rebrand. Literal names break everything.

3. Three-Tier Token Architecture

CODEBLOCK1

  • - 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 <slug> if user confirms:
  • - css — Styling fundamentals
  • INLINECODE23 — Utility-first CSS
  • INLINECODE24 — Frontend development
  • INLINECODE25 — User interface patterns
  • INLINECODE26 — Design principles

Feedback

  • - If useful: INLINECODE27
  • Stay updated: INLINECODE28

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 design-system-1776419997 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 design-system-1776419997 技能

通过命令行安装

skillhub install design-system-1776419997

下载

⬇ 下载 Design System v1.0.0(免费)

文件大小: 4.21 KB | 发布时间: 2026-4-17 20:07

v1.0.0 最新 2026-4-17 20:07
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部