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.
创建具有个性的独特设计系统的完整工作流程。
bash
npx clawhub@latest install design-system-creation
阅读: ai/skills/design-systems/distinctive-design-systems
在编写 CSS 之前,先记录美学风格:
markdown
| 情感 | 实现方式 |
|---|---|
| [X] | [具体技术] |
| [Y] |
| 美学风格 | 特征 |
|---|---|
| 复古未来主义 | CRT 纹理、发光效果、等宽字体 |
| 温暖赛博朋克 |
阅读: ai/skills/design-systems/distinctive-design-systems
创建三层令牌系统:
css
/ 1. CSS 变量(数据源) /
:root {
--tone-primary: 76, 204, 255;
--primary: 200 90% 65%;
--success: 154 80% 60%;
--destructive: 346 80% 62%;
}
typescript
// 2. Tailwind 配置
colors: {
primary: hsl(var(--primary)),
tone: { primary: rgb(var(--tone-primary)) },
}
typescript
// 3. TypeScript 令牌(可选)
export const colors = {
primary: hsl(var(--primary)),
};
阅读: ai/skills/design-systems/distinctive-design-systems
定义字体和比例:
css
:root {
--font-display: Orbitron, system-ui;
--font-mono: Share Tech Mono, monospace;
--font-sans: Inter, system-ui;
--typo-scale: 0.88; / 移动端 /
}
@media (min-width: 640px) {
:root { --typo-scale: 1; }
}
css
/ 杂志风格数字 /
.metric { font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/ 标签 /
.label { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
阅读: ai/skills/design-systems/design-system-components
使用 CVA 构建分层表面原语:
tsx
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
阅读: ai/skills/design-systems/distinctive-design-systems
定义一致的动画时序:
javascript
// 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,
}
阅读: ai/skills/design-systems/loading-state-patterns
创建符合美学风格的骨架屏组件:
tsx
export function Skeleton({ className }: { className?: string }) {
return (
| 技能 | 用途 |
|---|---|
| distinctive-design-systems | 美学基础、令牌 |
| design-system-components |
styles/
├── globals.css # CSS 变量、基础样式
├── design-tokens.ts # TypeScript 导出
└── theme.css # 组件模式
tailwind.config.ts # 令牌集成
components/
├── ui/
│ ├── surface.tsx # 表面原语
│ ├── skeleton.tsx # 加载状态
│ └── button.tsx # 变体组件
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 design-system-creation-1776419997 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 design-system-creation-1776419997 技能
skillhub install design-system-creation-1776419997
文件大小: 4.41 KB | 发布时间: 2026-4-17 19:49