Agent skill

Design Tokens

by mobazha in mobazha/mobazha-unified

Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes.

MPL-2.0Auto-check passedFrontend & Design

Install Design Tokens

skills CLI
$ npx skills add mobazha/mobazha-unified --skill design-tokens -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mobazha/mobazha-unified design-tokens --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/design-tokens .claude/skills/design-tokens && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-tokens
GitHub stars
165
Token cost
~2k tokens
SKILL.md length
460 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MPL-2.0

At a glance

Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes.

  • Making design decisions
  • SKILL.md covers 一、色彩系统, 二、排版系统, 三、间距系统 and 四、圆角系统, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Setting up new pages

What it does

Design Tokens is an agent skill from mobazha/mobazha-unified. Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes. Use when making design decisions, setting up new pages, or checking visual consistency, "设计令牌", "设计系统", "色彩系统", "排版", "间距", "圆角", "阴影".

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design tokens, Architecture decision records and Typography. It works with Tailwind CSS. The repository describes itself as: Open-source commerce frontend for storefronts, marketplaces, checkout, and seller management. The licence is MPL-2.0.

When your agent uses it

  • Making design decisions
  • Setting up new pages
  • Checking visual consistency

Example prompts

  • “/design-tokens”

What it can do on your machine

Read from SKILL.md and the folder at commit 156c699. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and css).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design Tokens loads about 2k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 460 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mobazha/mobazha-unified at commit 156c699, republished under its MPL-2.0 licence (© mobazha). 460 words, ~1,980 tokens.

Download SKILL.mdSave it as .claude/skills/design-tokens/SKILL.md (or your agent's skills folder).
name
design-tokens
description
Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes. Use when making design decisions, setting up new pages, or checking visual consistency, "设计令牌", "设计系统", "色彩系统", "排版", "间距", "圆角", "阴影".

设计令牌系统

Mobazha 项目的视觉设计基础,统一色彩、排版、间距、圆角、阴影等设计决策。

定义位置:apps/web/src/app/globals.css(CSS 变量)+ packages/core/theme/(主题配置)

一、色彩系统

6 个主题
主题设计意图主色调
Classic经典清新,默认主题青绿色
Crypto科技感,加密货币用户深蓝+紫
Business专业商务深蓝+灰
Cyberpunk赛博朋克,年轻用户霓虹粉+紫
Nature自然环保深绿+棕
Luxury奢华高端金+黑

每个主题有 light 和 dark 两种模式,通过 CSS 变量切换。

语义色映射
语义CSS 变量Tailwind 类名使用场景
品牌主色--theme-primarytext-primary, bg-primaryCTA、链接、价格、选中态
辅助色--theme-secondarytext-secondary次要按钮、标签
强调色--theme-accenttext-accent装饰、渐变
成功--color-successtext-success, bg-success/10完成、通过、在线
警告--color-warningtext-warning注意、即将过期
错误--color-destructivetext-destructive删除、错误、失败
信息--color-infotext-info, bg-info/10提示、帮助
文字色层级
层级Tailwind用途
一级text-foreground标题、重要内容
二级text-muted-foreground正文、描述
三级text-muted-foreground/70辅助信息、时间戳
四级text-muted-foreground/50占位符、禁用态
反色text-primary-foreground主色按钮上的文字
表面色层级
层级Tailwind用途
底层bg-background页面背景
卡片bg-card卡片、对话框
悬浮bg-muted菜单、Tooltip
强调bg-primary/10选中态、高亮

二、排版系统

字号 Scale
级别移动端桌面端Tailwind使用场景
Display28px36pxtext-2xl md:text-4xlMe 页大标题
H122px28pxtext-xl md:text-2xl页面主标题
H218px22pxtext-lg md:text-xl区域标题
H316px18pxtext-base md:text-lg卡片标题
Body14px16pxtext-sm md:text-base正文内容
Caption12px14pxtext-xs md:text-sm时间戳、标签
Micro10px12pxtext-[10px] md:text-xs徽章、状态
字重
字重Tailwind使用场景
Regular (400)font-normal正文、描述
Medium (500)font-medium小标题、标签、导航项
Semibold (600)font-semibold卡片标题、按钮、价格
Bold (700)font-bold页面标题、重要数据
行高
内容类型Tailwind值
紧凑(标题)leading-tight1.25
正常(正文)leading-normal1.5
宽松(阅读)leading-relaxed1.625
字体
css
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', monospace;

三、间距系统

基础网格:8px
Token值Tailwind使用场景
0.5x4px1 (p-1, gap-1)最小间距、图标内边距
1x8px2 (p-2, gap-2)图标与文字间距
1.5x12px3 (p-3, gap-3)移动端卡片标准内边距
2x16px4 (p-4, gap-4)桌面端卡片标准内边距、页面边距
3x24px6 (p-6, gap-6)区域分隔
4x32px8 (p-8, gap-8)大区域分隔
6x48px12 (p-12)页面区域间距
响应式间距
场景移动端桌面端写法
卡片内边距12px16pxp-3 md:p-4 或 p-responsive
列表项间距10px12pxpy-2.5 md:py-3
元素间距12px16pxgap-3 md:gap-4 或 gap-responsive
页面水平边距16px24pxpx-4 md:px-6
Show full SKILL.md (189 more words)Show less

四、圆角系统

Token值Tailwind使用场景
Small4pxrounded小标签、徽章
Medium8pxrounded-lg输入框、按钮
Large12pxrounded-xl卡片、对话框
XLarge16pxrounded-2xl大卡片、底部面板
Full9999pxrounded-full头像、图标按钮

原则:容器越大,圆角越大。

五、阴影/层级系统

ElevationTailwind使用场景
Level 0无阴影内嵌元素、列表项
Level 1shadow-sm卡片静止状态
Level 2shadow-md浮动按钮、下拉菜单
Level 3shadow-lg卡片 hover 状态、模态框
Level 4shadow-xlToast、Tooltip
tsx
// 桌面端卡片 hover 提升效果
<Card className="shadow-sm hover:shadow-lg transition-shadow duration-200">

六、图标尺寸

尺寸Tailwind使用场景
16pxw-4 h-4行内图标、输入框图标
20pxw-5 h-5按钮图标、导航图标
24pxw-6 h-6标准独立图标
32pxw-8 h-8功能入口图标
44pxw-11 h-11列表头像(最小触摸目标)
60pxw-[60px] h-[60px]大头像

图标库:Lucide React(lucide-react)

七、断点

名称宽度Tailwind 前缀场景
Mobile< 768px(默认)手机竖屏
Tablet>= 768pxmd:平板、手机横屏
Desktop>= 1024pxlg:小型笔记本
Large>= 1440pxxl: / 2xl:大屏显示器

八、品牌区域渐变变量

Hero 等品牌展示区域使用专用 CSS 变量,每套主题有不同的配色:

变量用途ClassicCryptoBusinessCyberpunkNatureLuxury
--hero-gradient-from渐变起始(深色)slateblackslatezincstoneblack
--hero-gradient-via渐变中间(主题色)cyangreenbluepurplegreenamber
--hero-gradient-to渐变结束(深色)slateblackslatezincstoneblack
--hero-accent主强调色cyan-400green-400blue-400pink-400lime-400amber-400
--hero-accent-secondary辅强调色teal-400emerald-400sky-400violet-400green-400yellow-400
--hero-glow光晕/阴影色cyan-500green-500blue-500pink-500lime-500amber-500

使用示例:

tsx
// 渐变背景
<section className="bg-gradient-to-br from-[var(--hero-gradient-from)] via-[var(--hero-gradient-via)] to-[var(--hero-gradient-to)]">

// 渐变文字
<span className="bg-gradient-to-r from-[var(--hero-accent)] to-[var(--hero-accent-secondary)] bg-clip-text text-transparent">

// 光晕效果
<div className="bg-[var(--hero-glow)]/20 rounded-full blur-3xl" />

快速检查清单

  • 颜色是否使用语义变量(而非硬编码)?
  • 字号是否来自 Scale 表(而非随意值)?
  • 间距是否遵循 8px 网格(4px 仅用于微调)?
  • 圆角是否与容器大小匹配?
  • 阴影层级是否正确(静止 sm、悬浮 lg)?
  • 图标尺寸是否来自标准尺寸(16/20/24/32)?
  • 响应式写法是否 mobile-first(p-3 md:p-4)?

相关功能文档

  • 主题系统 — 6 种预设主题配置、CSS 变量完整列表、亮暗模式切换、防闪烁处理

© mobazha, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/design-tokens of mobazha/mobazha-unified.

Open the folder on GitHubat commit 156c699

Compare with similar skills

Design Tokens next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design Tokens compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design Tokens this skillmobazha/mobazha-unified165—~2kAutomated safety check: PassMPL-2.0
Design SystemOhh-889/skyroc79511 repos~1.7kAutomated safety check: PassMIT
Scalar Design Systemscalar/scalar16k—~2.7kAutomated safety check: PassMIT
Tailwind V4 Shadcnever-works/ever-works1622 repos~3.8kAutomated safety check: PassMIT
Using Ouds Web Version Major MinorOrange-OpenSource/Orange-Boosted-Bootstrap222—~4.2kAutomated safety check: PassMIT
Design Token Generatordylanfeltus/skills179—~2.9kAutomated safety check: PassMIT

Similar skills

  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed
  • Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.

    16k GitHub stars~2.7k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Tailwind V4 Shadcn

    ever-works/ever-works

    Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.

    162 GitHub starsUsed in 2 repos~3.8k tokens
    Frontend & DesignAuto-check passed
  • Using Ouds Web Version Major Minor

    Orange-OpenSource/Orange-Boosted-Bootstrap

    Provides comprehensive knowledge of the OUDS Web library (Orange Unified Design System for Web), a Bootstrap-based CSS/JS framework for building Orange-branded web interfaces.

    222 GitHub stars~4.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Design Token Generator

    dylanfeltus/skills

    Generates type scales, color palettes, spacing systems, WCAG contrast checks and dark mode palettes from formulas, as CSS custom properties, a Tailwind config or JSON tokens.

    179 GitHub stars~2.9k tokensUpdated 23 days ago
    Frontend & DesignAuto-check passed
  • Glycemicgpt UI Foundation

    lumose-health/GlycemicGPT

    A skill your agent uses when adding or changing GlycemicGPT web UI structure, shared styling, Tailwind classes, semantic theme tokens, typography, base primitives, product UI components, TextInput…

    141 GitHub stars~707 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed

More from mobazha/mobazha-unified

All 29 skills in this repo
  • A11y Guide

    mobazha/mobazha-unified

    Accessibility guide for Mobazha following WCAG 2.1 AA standards including color contrast, reduced motion, ARIA patterns, keyboard navigation, focus management, and screen reader testing.

    165 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed
  • API Reference

    mobazha/mobazha-unified

    Look up Mobazha backend API endpoints, request/response formats, and field mappings.

    165 GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • Code Review

    mobazha/mobazha-unified

    Review code for quality, architecture consistency, and adherence to Mobazha project standards using confidence-based filtering.

    165 GitHub stars~464 tokensUpdated 8 days ago
    Auto-check passed
  • Code Simplifier

    mobazha/mobazha-unified

    Simplify and refine recently written code for clarity, consistency, and maintainability while preserving all functionality.

    165 GitHub stars~601 tokensUpdated 8 days ago
    Auto-check passed
  • Commit Helper

    mobazha/mobazha-unified

    Generate commit messages and run pre-commit validation following Mobazha conventions.

    165 GitHub stars~735 tokensUpdated 8 days ago
    Auto-check passed
  • Component Dev

    mobazha/mobazha-unified

    Create and modify UI components following Mobazha conventions including directory structure, spacing standards, accessibility, and testing.

    165 GitHub stars~638 tokensUpdated 8 days ago
    Auto-check passed

Works with

Questions about Design Tokens

What does Design Tokens do?

Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes. Design Tokens is an agent skill from mobazha/mobazha-unified. Comprehensive design token system for Mobazha including color system, typography scale, spacing grid, border radius, elevation, and icon sizes.

When should I use Design Tokens?

Design Tokens fits situations like: making design decisions; setting up new pages; checking visual consistency.

How do I install Design Tokens in Claude Code?

Run `npx skills add mobazha/mobazha-unified --skill design-tokens -a claude-code`. Or copy the skill folder (.cursor/skills/design-tokens in mobazha/mobazha-unified) into .claude/skills/design-tokens in your project. Claude Code loads it when a task matches its description.

How do I install Design Tokens in Codex?

Run `npx skills add mobazha/mobazha-unified --skill design-tokens -a codex`. Or copy the skill folder (.cursor/skills/design-tokens in mobazha/mobazha-unified) into .agents/skills/design-tokens in your project. Codex loads it when a task matches its description.

Can I use Design Tokens in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mobazha/mobazha-unified --skill design-tokens -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-tokens, .gemini/skills/design-tokens, .github/skills/design-tokens and .opencode/skills/design-tokens in your project.

What does Design Tokens need to run?

SKILL.md names no scripts, command-line tools or credentials: Design Tokens is instructions for the agent only.

Does Design Tokens access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Design Tokens safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Design Tokens use?

Design Tokens is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design Tokens use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Design Tokens?

Skills that share tags, products or a category with Design Tokens: Design System (Ohh-889/skyroc, 795 stars), Scalar Design System (scalar/scalar, 16k stars), Tailwind V4 Shadcn (ever-works/ever-works, 162 stars) and Using Ouds Web Version Major Minor (Orange-OpenSource/Orange-Boosted-Bootstrap, 222 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design Tokens?

mobazha (a GitHub organization) maintains it in mobazha/mobazha-unified, which has 165 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 3, 2026.

Source: mobazha/mobazha-unified on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.