agentsclimarketplace

Design tokens

Skill micserr/sprout-design-agent/skills/design-tokens

Use when applying design tokens, choosing colors, typography, spacing, or surface styles for a product UI. Trigger phrases: "what token should I use", "design token", "color token", "apply tokens", "which color for", "semantic color", "dark mode token", "typography token", "surface token", "what class for", "token for danger", "token for success".From its SKILL.md

Install
npx -y skills add micserr/sprout-design-agent --skill design-tokens

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.0 KB, as published. Nobody here has run it

Overview

This skill maps design intent to the correct token class. The system uses a three-layer architecture — never skip layers or reach into primitives from component code.

For the full token list, see the references folder:

When in doubt about a token value or whether it exists, read the authoritative source first:

  • Authoritative source: guide/toge-design-system/tokens/style.css
  • This skill's reference copy: references/style.css (may lag behind the project's installed version — prefer the project source)

Do not rely on memory for token names. Read the file.


Layer Architecture

Layer 1 — Primitives        --color-{palette}-{shade}               CSS vars only. Never use in components.
Layer 2 — Bridge (semantic)  @layer base :root / .dark              Maps primitives to semantic meaning.
Layer 3 — Utilities          bg-{token}, .text-{token}, .border-*  Use these in components.

Rule: Components always use Layer 3. Layer 1 exists only in references/style.css. Exception: ubas palette — for data visualization only: charts, graphs, progress rings. Status badges, tags, labels, and any UI element that communicates semantic state must use semantic color families (success, danger, caution, etc.), not ubas.


Surface Tokens (quick reference)

In-theme — generate bg-* utilities. Full table in references/color-tokens.md.

ClassUse when
bg-surface-whitePage / canvas background — topmost layer
bg-surface-grayMain gray canvas / app shell
bg-surfaceAlias for surface-gray
bg-surface-adaptiveCards, panels, inputs — translucent elevation overlay
bg-surface-hoverHover state on any surface
bg-surface-pressedPressed / mousedown state
bg-surface-disabledDisabled container
bg-surface-invertedDark surface in light mode (tooltips, dark chips)
bg-surface-inverted-hoverHover on inverted surface
bg-surface-inverted-pressedPressed on inverted surface
bg-surface-activeSelected / active item
bg-surface-active-softSoft selected state

Semantic Color Families (quick reference)

Seven families: brand · success · information · danger · pending · caution · accent

Each has 9 tokens — full list per family in references/color-tokens.md:

ModifierClassUse when
{family}bg-{family}Filled background for this state
{family}-hoverbg-{family}-hoverHover on filled background
{family}-pressedbg-{family}-pressedPressed state on filled background
{family}-subtlebg-{family}-subtleSoft/tinted background
{family}-subtle-hoverbg-{family}-subtle-hoverHover on subtle background
{family}-subtle-pressedbg-{family}-subtle-pressedPressed on subtle background
{family}-texttext-{family}-textText color for this state
{family}-text-hovertext-{family}-text-hoverText on hover
{family}-text-pressedtext-{family}-text-pressedText on press

Control tokens: bg-control · bg-control-hover · bg-control-pressed


Component-Only Tokens (quick reference)

Do not generate Tailwind utilities. Use as classes directly.

Text — full table in references/color-tokens.md: text-strong · text-supporting · text-base · text-weak · text-disabled · text-on-fill-disabled · text-inverted · text-inverted-base · text-inverted-weak · text-inverted-disabled

Border — always pair with border for width:

<div class="border border-base">...</div>

border-strong · border-supporting · border-base · border-base-hover · border-base-pressed · border-weak · border-disabled · border-on-fill-disabled

Outline — same values as border, for outline-color: outline-strong · outline-base · outline-weak · (same modifiers as border)


Dark Mode

Toggle .dark on <html>. Never use media queries. All tokens adapt automatically.

Surface token resolved values (light → dark):

  • bg-surface-white → #fff light / #262b2b (mushroom-950) dark — darkest layer
  • bg-surface-gray → mushroom-50 light / #394141 (mushroom-900) dark
  • bg-surface-adaptive → translucent mushroom-950 overlay light / translucent white overlay dark

→ Full bridge values in references/bridge-dark-mode.md


Typography (quick reference)

Full class list in references/typography.md.

GroupClasses
Bodybody · body-medium · body-md · body-md-medium · body-lg · body-lg-medium
Labellabel-xs · label-xs-medium · label-sm · label-sm-medium
Headingheading-xl · heading-lg · heading-md · heading-sm · heading-xs
Subheadingsubheading-sm · subheading-xs
Utilitycaption · caption-medium · overline · code
Prosetypography (wrapper for long-form content)

Default body: 14px. Always use component classes — never raw text-{size} utilities (e.g., text-sm, text-base, text-lg).


Max-Width Tokens

ClassValueUse for
max-w-content-sm640pxNarrow: forms, auth pages
max-w-content-md1000pxStandard: dashboards, settings
max-w-content-lg1320pxWide: landing pages, full-width tables
max-w-content-full100%Edge-to-edge: full-bleed sections

Token Enforcement

Never use raw color or spacing values in any form — not in Tailwind bracket syntax, not in inline style attributes, not in CSS-in-JS. Always use token classes or CSS custom properties. If no token exists, add /* no token: intentional raw value */ as an inline comment.

Never Use Raw Values

❌ bg-[#251F31]                         → bg-surface-gray or bg-surface-adaptive
❌ text-[#262B2B]                        → text-strong or text-base
❌ border-[#D9DEDE]                      → border border-base or border-weak
❌ shadow-[0_1px_3px_rgba(0,0,0,0.1)]   → use shadow token from surfaces.md
❌ bg-mushroom-100                       → bg-surface-gray (primitive in component code)
❌ text-kangkong-600                     → text-strong / text-{family}-text

Always Map to Tokens

✅ bg-surface-white       → page/canvas background, light mode
✅ bg-surface-adaptive    → cards, panels, inputs — adapts light/dark
✅ bg-surface-gray        → app shell, main canvas
✅ text-strong            → primary text
✅ text-base              → default body text
✅ text-weak              → secondary/supporting text
✅ border border-base     → default border
✅ border border-weak     → subtle divider

No Token Exists?

Leave an inline comment so the intent is explicit and reviewable:

<!-- no token: intentional raw value — chart grid line color, ubas exception -->
<div class="bg-[#F5F5F5]">

Decision Guide

Backgrounds:

  1. Page / app shell → bg-surface-gray
  2. Cards, panels, inputs → bg-surface-adaptive
  3. Modal / overlay canvas → bg-surface-white
  4. Semantic state → bg-{family} or bg-{family}-subtle
  5. Never: bg-mushroom-100 (primitive in component code)

Text:

  1. Use component-only classes: text-strong, text-base, text-weak, etc.
  2. Semantic state text: text-{family}-text
  3. Never: text-kangkong-600 (primitive in component code)

Borders:

  1. border border-base — default
  2. border border-weak — subtle divider
  3. border border-strong — high emphasis / focus ring
  4. Never: border-mushroom-300 (primitive in component code)

Choosing a semantic family:

IntentFamily
Primary actions, brand identitybrand
Positive outcome, saved, completesuccess
Error, destructive action, deletedanger
Warning, needs attentioncaution
Loading, in review, not yet completepending
Info, help, neutral noticeinformation
Highlights, secondary brandaccent

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.