跳到正文
Skillpedia
界面(UI/UX)48k · #6048

ui-tokens

它能做什么

这个工具可以帮你管理设计“令牌”(tokens)。它们就像网站或应用外观的积木,你可以查看、添加或修改这些积木。

适用场景

  • ✓当你想查看所有可用的颜色令牌时。
  • ✓当你需要添加一个新的间距尺寸时。
  • ✓当你想修改某个按钮的颜色时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-tokens/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-tokens/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“显示所有颜色令牌。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会更新一个特殊的数据文件(JSON),其中保存着令牌的定义,同时也会更新网站使用的代码(CSS),让修改在页面上生效。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Design Token Manager

When to Use

Use this skill when you need view, add, or modify design tokens in the StyleSeed design system.

When NOT to use

  • For applying tokens in components → use /ss-component or /ss-pattern
  • For finding token violations in existing code → use /ss-lint
  • For brand-wide color/font choices that don't exist yet — define a skin first, then add tokens
  • For non-CSS token systems (Figma, native iOS/Android) — Tailwind v4 / CSS variables only

Action: $0 | Token type: $1 Arguments: $ARGUMENTS

Token File Locations

Type JSON Source CSS Implementation
Colors tokens/colors.json css/theme.css :root + @theme inline
Typography tokens/typography.json css/fonts.css + css/base.css
Spacing tokens/spacing.json Tailwind utilities (no custom CSS needed)
Radius tokens/radii.json css/theme.css @theme inline
Shadows tokens/shadows.json css/theme.css :root

Instructions

list — Show current tokens

Read and display the requested token file in a formatted table.

add — Add new token

  1. Add the token to the JSON source file (tokens/*.json)
  2. Add the CSS custom property to css/theme.css under :root
  3. If it needs a Tailwind utility, add to the @theme inline block
  4. If it has a dark mode variant, add to the .dark block

update — Modify existing token

  1. Update the value in the JSON source file
  2. Update the CSS custom property in theme.css
  3. Check all components for direct usage that might need updating

Rules

  • Always keep JSON and CSS in sync
  • Use semantic names, not descriptive names (--success not --green-500)
  • Colors should support both light and dark modes
  • New tokens must be added to BOTH the JSON source AND the CSS implementation

Example

User request:

Review this interface with @ui-tokens, identify the highest-impact design problems, and propose an implementation-ready improvement.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题

什么是设计令牌(design tokens)?

它们是可以反复使用的数值,例如颜色、字体和间距,用来定义项目的视觉识别特征。

可以用它来修改字体吗?

可以。你可以管理字体排版相关的令牌。

“保持 JSON 与 CSS 同步”是什么意思?

意思是数据文件(JSON)中的定义和网站代码(CSS)中的实现必须始终保持一致。

详情

作者的原始描述

View, add, or modify design tokens in the StyleSeed design system

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6048
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能