Agent Skillsbitjaru/styleseed › ss-tokens

ss-tokens

GitHub

用于在StyleSeed系统中查看、添加或修改设计令牌。支持颜色、排版、间距等类型,确保JSON源文件与CSS实现同步,遵循语义命名规范并兼容暗色模式。

engine/.claude/skills/ss-tokens/SKILL.md bitjaru/styleseed

触发场景

查看当前设计令牌列表 添加新的设计令牌 修改现有的设计令牌

安装

npx skills add bitjaru/styleseed --skill ss-tokens -g -y
更多选项

非标准路径

npx skills add https://github.com/bitjaru/styleseed/tree/main/engine/.claude/skills/ss-tokens -g -y

不安装直接使用

npx skills use bitjaru/styleseed@ss-tokens

指定 Agent (Claude Code)

npx skills add bitjaru/styleseed --skill ss-tokens -a claude-code -g -y

安装 repo 全部 skill

npx skills add bitjaru/styleseed --all -g -y

预览 repo 内 skill

npx skills add bitjaru/styleseed --list

SKILL.md

Frontmatter
{
    "name": "ss-tokens",
    "description": "View, add, or modify design tokens in the StyleSeed design system",
    "allowed-tools": "Read, Write, Edit, Grep, Glob",
    "argument-hint": "[action: list|add|update] [token-type: color|spacing|shadow|radius|typography]"
}

Design Token Manager

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

版本历史

  • 575d99a 当前 2026-07-05 18:21

同 Skill 集合

engine/.claude/skills/ss-a11y/SKILL.md
engine/.claude/skills/ss-audit/SKILL.md
engine/.claude/skills/ss-component/SKILL.md
engine/.claude/skills/ss-copy/SKILL.md
engine/.claude/skills/ss-feedback/SKILL.md
engine/.claude/skills/ss-flow/SKILL.md
engine/.claude/skills/ss-lint/SKILL.md
engine/.claude/skills/ss-motion/SKILL.md
engine/.claude/skills/ss-page/SKILL.md
engine/.claude/skills/ss-pattern/SKILL.md
engine/.claude/skills/ss-review/SKILL.md
engine/.claude/skills/ss-score/SKILL.md
engine/.claude/skills/ss-setup/SKILL.md
engine/.claude/skills/ss-update/SKILL.md
skills/styleseed-design-review/SKILL.md

元信息

文件数
0
版本
575d99a
Hash
d4ac2068
收录时间
2026-07-05 18:21

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 07:51
浙ICP备14020137号-1 $访客地图$