微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎨

独特设计系统全流程构建指南

design-system-creation · vv1.0.0
设计 安全 S+ 级 作者 wpank 公开目录收录
3.7k 下载 778 安装 17.2k 收藏 23.6k 浏览

简介

OpenClaw出品的系统化设计工程方案,通过美学文档+Token架构+CVA组件模式,帮助团队建立超越Tailwind默认风格的独特视觉识别系统。

原始描述

Complete workflow for creating distinctive design systems from scratch. Orchestrates aesthetic documentation, token architecture, components, and motion. Use when starting a new design system or refactoring an existing one. Triggers on create design system, design tokens, design system setup, visual identity, theming.

通过你的 Agent 添加

安装目录:design-system-creation/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/design-system-creation/
Codex CLI~/.codex/skills/design-system-creation/
DeepSeek Harness~/.agents/skills/design-system-creation/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

design-system-creation 是一套六步式设计系统构建方法论,强调"美学先行、令牌驱动、组件分层"。完整覆盖从概念文档到代码落地的全流程:

  1. 美学基础 — 用 Markdown 记录 "The Vibe"、灵感来源、情感映射,强制在写代码前完成视觉定位
  2. 颜色令牌 — 三层架构:CSS 变量 → Tailwind 配置 → TypeScript 导出,确保单点修改全局同步
  3. 排版系统 — 定义字体栈(display/mono/sans)、响应式缩放比例、数字/标签专用样式模式
  4. 表面组件 — 基于 CVA (Class Variance Authority) 构建分层表面(panel/tile/chip),支持玻璃拟态效果
  5. 动效令牌 — 统一动画时长曲线,内置 shimmer、pulse-glow、slide-in 等高频模式
  6. 加载状态 — 与主题风格一致的骨架屏组件,避免默认灰色块破坏视觉一致性

显著优点

  • 方法论完整:不只给代码片段,而是提供从抽象概念到具体实现的思维框架,特别适合设计系统从0到1
  • 反模式清单明确:10 条 "NEVER Do" 直接规避常见设计系统陷阱(如纯黑纯白、跳过令牌硬编码)
  • 技术栈现代:Tailwind + CVA + CSS 变量的组合是当前主流方案,生产就绪
  • 美学导向:强调 "distinctive"(独特性),避免 Bootstrap/Tailwind 默认样式的同质化问题

局限与缺点

  • 无自动化工具:纯文档型技能,不提供 CLI 或代码生成器,需手工复制粘贴修改
  • React 生态偏向:CVA、Tailwind 示例以 React/Next.js 为主,Vue/Svelte 团队需额外适配
  • 缺少设计交付衔接:未提及 Figma/Sketch 设计稿与代码令牌的同步机制(如 Token Studio)
  • 动效复杂度有限:仅覆盖基础 CSS 动画,复杂编排(如 Framer Motion 手势、页面转场)需参考其他技能

适合人群

  • 前端负责人启动新产品线,需建立可维护的视觉体系
  • 已有混乱样式的项目,计划系统性重构为令牌驱动架构
  • 追求品牌差异化、不愿使用现成 UI 库(Ant Design/Material)的团队

常规风险

  • T3 来源:个人开发者维护(wpank),无企业背书,长期更新稳定性存疑
  • 无许可证:未明确开源协议,商用项目需自行联系作者确认
  • 依赖假设:默认用户已熟悉 Tailwind、TypeScript、CVA,新手可能需额外学习成本

技能正文


name: design-system-creation model: reasoning description: Complete workflow for creating distinctive design systems from scratch. Orchestrates aesthetic documentation, token architecture, components, and motion. Use when starting a new design system or refactoring an existing one. Triggers on create design system, design tokens, design system setup, visual identity, theming.

Design System Creation (Meta-Skill)

Complete workflow for creating distinctive design systems with personality.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install design-system-creation

When to Use

  • Starting a new product that needs visual identity
  • Refactoring an existing design with scattered styles
  • Building a component library with design tokens
  • Want to go beyond generic Tailwind/Bootstrap aesthetics

Workflow Overview

1. Aesthetic Foundation   → Document the vibe before code
2. Color Token System     → CSS variables + Tailwind + TypeScript
3. Typography System      → Font stack + scale + patterns
4. Surface Components     → Layered primitives with CVA
5. Motion Tokens          → Consistent animation timing
6. Loading States         → Skeleton + shimmer patterns

Step 1: Aesthetic Foundation

Read: ai/skills/design-systems/distinctive-design-systems

Before writing CSS, document the aesthetic:

## The Vibe
[1-2 sentences describing the visual feel]

## Inspirations
- [Reference 1 - what to take from it]
- [Reference 2 - what to take from it]

## Emotions to Evoke
| Emotion | How It's Achieved |
|---------|-------------------|
| [X] | [specific technique] |
| [Y] | [specific technique] |

Proven Directions to Consider

Aesthetic Characteristics
Retro-futuristic CRT textures, glow effects, monospace fonts
Warm cyberpunk Tan/beige base, emerald accents, glass panels
Magazine financial Bold typography, dark theme, gradient text

Step 2: Color Token Architecture

Read: ai/skills/design-systems/distinctive-design-systems

Create the three-layer token system:

/* 1. CSS Variables (source of truth) */
:root {
  --tone-primary: 76, 204, 255;
  --primary: 200 90% 65%;
  --success: 154 80% 60%;
  --destructive: 346 80% 62%;
}
// 2. Tailwind Config
colors: {
  primary: 'hsl(var(--primary))',
  tone: { primary: 'rgb(var(--tone-primary))' },
}
// 3. TypeScript Tokens (optional)
export const colors = {
  primary: 'hsl(var(--primary))',
};

Step 3: Typography System

Read: ai/skills/design-systems/distinctive-design-systems

Define fonts and scale:

:root {
  --font-display: 'Orbitron', system-ui;
  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Inter', system-ui;
  
  --typo-scale: 0.88;  /* Mobile */
}

@media (min-width: 640px) {
  :root { --typo-scale: 1; }
}

Typography Patterns

/* Magazine-style numbers */
.metric { font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Labels */
.label { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

Step 4: Surface Components

Read: ai/skills/design-systems/design-system-components

Build layered surface primitives with CVA:

const surfaceVariants = cva(
  'rounded-lg backdrop-blur-sm transition-colors',
  {
    variants: {
      layer: {
        panel: 'bg-tone-cadet/40 border border-tone-jordy/10',
        tile: 'bg-tone-midnight/60 border border-tone-jordy/5',
        chip: 'bg-tone-cyan/10 border border-tone-cyan/20 rounded-full',
      },
    },
  }
);

export function Surface({ layer, children }: SurfaceProps) {
  return <div className={surfaceVariants({ layer })}>{children}</div>;
}

Step 5: Motion Tokens

Read: ai/skills/design-systems/distinctive-design-systems

Define consistent animation timing:

// tailwind.config.ts
keyframes: {
  'shimmer': { '0%': { backgroundPosition: '200% 0' }, '100%': { backgroundPosition: '-200% 0' } },
  'pulse-glow': { '0%, 100%': { opacity: '1' }, '50%': { opacity: '0.5' } },
  'slide-in': { '0%': { opacity: '0', transform: 'translateY(10px)' }, '100%': { opacity: '1', transform: 'translateY(0)' } },
},
animation: {
  'shimmer': 'shimmer 1.5s ease-in-out infinite',
  'pulse-glow': 'pulse-glow 1.8s ease-in-out infinite',
  'slide-in': 'slide-in 0.2s ease-out',
}

Step 6: Loading States

Read: ai/skills/design-systems/loading-state-patterns

Create skeleton components that match your aesthetic:

export function Skeleton({ className }: { className?: string }) {
  return (
    <div
      className={cn(
        'rounded-md bg-muted animate-shimmer',
        'bg-gradient-to-r from-muted via-muted-foreground/10 to-muted bg-[length:200%_100%]',
        className
      )}
    />
  );
}

Component Skills Reference

Skill Purpose
distinctive-design-systems Aesthetic foundation, tokens
design-system-components Surface primitives, CVA
animated-financial-display Number animations
loading-state-patterns Skeletons, shimmer
financial-data-visualization Chart theming

File Structure

styles/
├── globals.css          # CSS variables, base styles
├── design-tokens.ts     # TypeScript exports
└── theme.css            # Component patterns

tailwind.config.ts       # Token integration

components/
├── ui/
│   ├── surface.tsx      # Surface primitive
│   ├── skeleton.tsx     # Loading states
│   └── button.tsx       # Variant components

NEVER Do

  • Never start with code before documenting aesthetic — Vibes before CSS
  • Never use pure black (#000) as base — Always use tinted blacks for depth
  • Never use pure white (#fff) for text — Use tinted whites that match the palette
  • Never skip design tokens in favor of hardcoded values — Tokens prevent drift
  • Never create components without variant system — Use CVA or similar for consistency
  • Never use Inter/Roboto for headings — Display fonts create distinctiveness
  • Never use default Tailwind colors — Define your own palette
  • Never skip backdrop-filter blur on glass — Glass panels need blur to work
  • Never apply decorative patterns to readable content — Background decoration only
  • Never use high-saturation colors without opacity — Modulate with rgba()

Checklist

  • Document aesthetic foundation (vibe, inspirations, emotions)
  • Create color token system (CSS + Tailwind + TS)
  • Define typography stack and scale
  • Build Surface primitive component
  • Add motion tokens and animations
  • Create loading state components
  • Document anti-patterns (what NOT to do)

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

designfrontenddevelopment-engineeringdocsproductivity

同类 Skill