Skip to content
Design
Command

/design-tokens

You are helping the user choose colors and typography for their product. These design tokens will be used consistently across all screen designs and the application shell.

From plugin
design-os
1.9k10 skills10 commands

Command definition

design-tokens.md

Design Tokens

You are helping the user choose colors and typography for their product. These design tokens will be used consistently across all screen designs and the application shell.

Step 1: Check Prerequisites

First, verify that the product overview exists:

Read `/product/product-overview.md` to understand what the product is.

If it doesn't exist:

"Before defining your design system, you'll need to establish your product vision. Please run `/product-vision` first."

Stop here if the prerequisite is missing.

Step 2: Explain the Process

"Let's define the visual identity for **[Product Name]**.

I'll help you choose: 1. **Colors** — A primary accent, secondary accent, and neutral palette 2. **Typography** — Fonts for headings, body text, and code

These will be applied consistently across all your screen designs and the application shell.

Do you have any existing brand colors or fonts in mind, or would you like suggestions?"

Wait for their response.

Step 3: Choose Colors

Help the user select from Tailwind's built-in color palette. Present options based on their product type:

"For colors, we'll pick from Tailwind's palette so they work seamlessly with your screen designs.

**Primary color** (main accent, buttons, links): Common choices: `blue`, `indigo`, `violet`, `emerald`, `teal`, `amber`, `rose`, `lime`

**Secondary color** (complementary accent, tags, highlights): Should complement your primary — often a different hue or a neutral variation

**Neutral color** (backgrounds, text, borders): Options: `slate` (cool gray), `gray` (pure gray), `zinc` (slightly warm), `neutral`, `stone` (warm gray)

Based on [Product Name], I'd suggest:

  • **Primary:** [suggestion] — [why it fits]
  • **Secondary:** [suggestion] — [why it complements]
  • **Neutral:** [suggestion] — [why it works]

What feels right for your product?"

Use AskUserQuestion to gather their preferences if they're unsure:

  • "What vibe are you going for? Professional, playful, modern, minimal?"
  • "Any colors you definitely want to avoid?"
  • "Light mode, dark mode, or both?"

Step 4: Choose Typography

Help the user select Google Fonts:

"For typography, we'll use Google Fonts for easy web integration.

**Heading font** (titles, section headers): Popular choices: `DM Sans`, `Inter`, `Poppins`, `Manrope`, `Space Grotesk`, `Outfit`

**Body font** (paragraphs, UI text): Often the same as heading, or: `Inter`, `Source Sans 3`, `Nunito Sans`, `Open Sans`

**Mono font** (code, technical content): Options: `IBM Plex Mono`, `JetBrains Mono`, `Fira Code`, `Source Code Pro`

My suggestions for [Product Name]:

  • **Heading:** [suggestion] — [why]
  • **Body:** [suggestion] — [why]
  • **Mono:** [suggestion] — [why]

What do you prefer?"

Step 5: Present Final Choices

Once they've made decisions:

"Here's your design system:

**Colors:**

  • Primary: `[color]`
  • Secondary: `[color]`
  • Neutral: `[color]`

**Typography:**

  • Heading: [Font Name]
  • Body: [Font Name]
  • Mono: [Font Name]

Does this look good? Ready to save it?"

Step 6: Create the Files

Once approved, create two files:

**File 1:** `/product/design-system/colors.json`

{
  "primary": "[color]",
  "secondary": "[color]",
  "neutral": "[color]"
}

**File 2:** `/product/design-system/typography.json`

{
  "heading": "[Font Name]",
  "body": "[Font Name]",
  "mono": "[Font Name]"
}

Step 7: Confirm Completion

Let the user know:

"I've saved your design tokens:

  • `/product/design-system/colors.json`
  • `/product/design-system/typography.json`

**Your palette:**

  • Primary: `[color]` — for buttons, links, key actions
  • Secondary: `[color]` — for tags, highlights, secondary elements
  • Neutral: `[color]` — for backgrounds, text, borders

**Your fonts:**

  • [Heading Font] for headings
  • [Body Font] for body text
  • [Mono Font] for code

These will be used when creating screen designs for your sections.

Next step: Run `/design-shell` to design your application's navigation and layout."

Reference: Tailwind Color Palette

Available colors (each has shades 50-950):

  • **Warm:** `red`, `orange`, `amber`, `yellow`, `lime`
  • **Cool:** `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`
  • **Purple:** `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose`
  • **Neutral:** `slate`, `gray`, `zinc`, `neutral`, `stone`

Reference: Popular Google Font Pairings

  • **Modern & Clean:** DM Sans + DM Sans + IBM Plex Mono
  • **Professional:** Inter + Inter + JetBrains Mono
  • **Friendly:** Nunito Sans + Nunito Sans + Fira Code
  • **Bold & Modern:** Space Grotesk + Inter + Source Code Pro
  • **Editorial:** Playfair Display + Source Sans 3 + IBM Plex Mono
  • **Tech-forward:** JetBrains Mono + Inter + JetBrains Mono

Important Notes

  • Colors should be Tailwind palette names (not hex codes)
  • Fonts should be exact Google Fonts names
  • Keep suggestions contextual to the product type
  • The mono font is optional but recommended for any product with code/technical content
  • Design tokens apply to screen designs only — the Design OS app keeps its own aesthetic
Read more
@buildermethods
Ships withdesign-os

The missing design process between your product idea and your codebase.

Stars on GitHub

Momentum

stars in total
1.9k
Star history of buildermethods/design-os on GitHub, a chart by star-history.com

Other commands on design-os.

data-shape

data-shape

Command

You are helping the user create or update the general shape of their product's data — the core entities ("nouns") and how they…

design-screen

design-screen

Command

You are helping the user create a screen design for a section of their product. The screen design will be a props-based React…

design-shell

design-shell

Command

You are helping the user design the application shell — the persistent navigation and layout that wraps all sections. This is a…

export-product

export-product

Command

You are helping the user export their complete product design as a handoff package for implementation. This generates all files…

product-vision

product-vision

Command

You are helping the user define their product vision for Design OS. This is a conversational process that results in three files:…

More commands from other plugins.

od-contribute
Auto-invoked

od-contribute

Command

Open a first-contribution PR (or bug issue) on nexu-io/open-design — works for non-coders too.

@nexu-io@nexu-ioInstall Command
design-deslop

design-deslop

Command

Strip the signatures that make a UI look AI-generated — flat hierarchy, no focal point, monotone layout, timid palettes, generic…

@dammyjay93@dammyjay93Install Command