跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/Eldergenix/Codex-Design/design-system-tokens

Design System Tokens Skill for Codex

Organize repeated colors, type sizes, spacing, and radii into semantic CSS variables. It helps projects with existing components bring their light and dark themes and interactive states into alignment.

中文

Install in Codex

Use a Codex environment that can discover project skills. The example can be tested in a local project. Keep the codex-design-core references if you want to use the repository’s fallback design language.

  1. In a temporary directory, run git clone https://github.com/Eldergenix/Codex-Design.git. Enter the clone, run git checkout --detach 99b4b08ff62b8dd3a7a112438c1460fd6a02d09c, and review the pinned SKILL.md.
  2. Copy the entire skills/design-system-tokens folder to .agents/skills/design-system-tokens in your own project, keeping its scripts, templates, and references together.
  3. Open Codex in that project. Choose the skill with /skills or mention $design-system-tokens, then run the example below. Restart Codex if the list does not refresh.

Example task

Provide a sample page with a card, a dialog, and a primary button that use hardcoded background, border, and focus colors. Ask Codex to propose the smallest token map and list what to check in both themes.

What to check

The output maps each relevant role to light and dark values and covers the card, dialog, and button focus. Changing one theme value should update its components without editing each selector.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

When should I add a new color token?

Start by checking whether an existing token already describes the role. A recurring new role can justify a semantic token. Verify its contrast and focus behavior in both themes.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯