Community图像github.com

julianoczkowski/design-tokens

根据所选美学理念生成设计令牌文件(CSS 变量或 Tailwind 配置),包含浅色和深色模式调色板、间距比例、字体层级和组件级令牌。适用于开始新项目、建立视觉系统、设置令牌或提及“令牌”或“设计系统”时。

design-tokens 是什么?

julianoczkowski/design-tokens 技能旨在帮助开发者快速生成设计令牌文件,支持 CSS 变量和 Tailwind CSS 配置两种输出格式。用户可以选择一种美学理念(如“极简主义”或“现代波普”),技能会根据该理念自动生成完整的视觉系统,包括浅色模式和深色模式的调色板、统一的间距比例、排版层级以及组件级别的令牌。这对于全新项目或正在建立设计系统的团队非常有用,能够减少手动定义设计变量的重复工作,并确保视觉一致性。该技能适用于所有支持自定义工具(如 Claude Code、Cursor 或 Codex)的 AI 编码环境,并可以通过分析项目上下文(如现有设计文件或配置)智能匹配风格。使用方式简洁,用户只需触发“生成设计令牌”动作并选择偏好即可,最终输出可直接放入项目中进行使用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/julianoczkowski/designer-skills/tree/main/skills/design-tokens

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

design-tokens 是做什么的?

根据所选美学理念生成设计令牌文件(CSS 变量或 Tailwind 配置),包含浅色和深色模式调色板、间距比例、字体层级和组件级令牌。适用于开始新项目、建立视觉系统、设置令牌或提及“令牌”或“设计系统”时。

功能概述

该技能自动创建设计令牌,确保视觉一致性,并支持以下特性:

  • 美学理念:从预设的美学风格中选择,如“极简主义”或“现代波普”。
  • 颜色调色板:生成浅色和深色模式所需的颜色变量(主色、次要色、背景色、文本色等)。
  • 间距比例:基于 4px 或 8px 网格系统生成层级分明的间距值(xs、sm、md、lg、xl 等)。
  • 字体层级:定义标题、正文和代码等不同文本样式的字体大小、行高和字重。
  • 组件级令牌:为按钮、卡片、输入框等常见 UI 组件生成专用令牌。

使用方法

  1. 在您的 AI 编码环境(如 Cursor、Claude Code)中提示该技能。
  2. 技能会自动检测项目结构,询问您期望的输出格式(CSS 变量或 Tailwind 配置)。
  3. 选择美学理念后,技能会生成完整的令牌文件。
  4. 将生成的令牌文件直接放入项目中使用。

输出示例

CSS 变量输出

:root {
  --color-primary: #4A90D9;
  --color-primary-light: #7DB3E6;
  --color-primary-dark: #2C5F8A;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --font-size-body: 16px;
  --font-size-h1: 32px;
  --component-button-padding: var(--spacing-sm) var(--spacing-md);
}

Tailwind 配置输出

module.exports = {
  theme: {
    extend: {
      colors: {
        primary: '#4A90D9',
        'primary-light': '#7DB3E6',
        'primary-dark': '#2C5F8A',
      },
      spacing: {
        xs: '4px',
        sm: '8px',
        md: '16px',
      },
      fontSize: {
        body: '16px',
        h1: '32px',
      },
    },
  },
};

支持的平台

  • Claude Code
  • Cursor
  • Codex
  • 其他支持自定义 AI 工具的开发环境

注意事项

  • 确保您的项目已安装 Tailwind CSS(如选择 Tailwind 输出格式)。
  • 生成的令牌可作为起点,根据具体设计需求进行微调。
  • 若项目中已存在设计令牌,技能会尝试合并而非覆盖。

许可

该项目基于 MIT 许可证发布。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

julianoczkowski/brief-to-tasks

Break a design brief into an ordered checklist of independently buildable tasks using vertical slices. Saves as a markdown checklist. Use when user wants to break down work, create tasks from a brief, plan implementation order, or mentions "tasks" or "breakdown".

julianoczkowski/design-brief

Create a design brief through an interactive interview, codebase exploration, and experience design decisions. Saved as a markdown file in the project. Use when user wants to write a design brief, plan a new feature or page, define a UI direction, or mentions "brief".

julianoczkowski/design-flow

Run the full design-to-build workflow as a guided sequence. Orchestrates all designer skills in order, from grilling through review. Use when user wants to go through the complete design process, start a project from scratch, run the full flow, or mentions "design flow" or "full workflow".

julianoczkowski/design-review

Run a structured design critique against the brief and codebase. Checks visual hierarchy, consistency, responsiveness, accessibility, and aesthetic fidelity. Use when user wants a design review, critique, QA pass, polish pass, or mentions "review" after building.

julianoczkowski/frontend-design

Build distinctive, production-grade frontend interfaces with high design quality, guided by named aesthetic philosophies. Use when building components, pages, or applications. Generates working code with exceptional attention to aesthetic details and creative choices that avoid generic AI output.

julianoczkowski/grill-me

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, challenge an approach, or mentions "grill me".

julianoczkowski/information-architecture

Define the structural layer of a product or site before visual design begins. Covers navigation, content hierarchy, page structure, URL patterns, and user flows. Use when user wants to plan site structure, define navigation, map user flows, organize content, or mentions "IA" or "information architecture".

相关技能