token-usage

Installation
SKILL.md

Skill: IDS Token Usage

Purpose

Guide AI agents on correctly using IDS design tokens in React components and CSS. This skill covers import patterns, common mistakes, and practical usage rules for each token category.

When to Use

  • Generating React components that need colours, spacing, typography, or border-radius values
  • Writing custom CSS or inline styles for IDS-based applications
  • Reviewing or fixing design token usage in existing code
  • Choosing between component props, CSS variables, and the cssVars JS object
  • Answering questions about available token values and naming conventions

Workflow

  1. Check if a component prop handles it — Most IDS components accept IressCSSProps (e.g. p, m, gap, bg, color, textStyle). Use props before reaching for tokens directly.
  2. Identify the token category — Is it colour, spacing, typography, or radius?
  3. Choose the right import — Use cssVars for inline styles, CSS variables for stylesheets. See the import patterns below.
Related skills
Installs
34
First Seen
Mar 4, 2026