token-workflow

Installation
SKILL.md

Token Workflow

Non-negotiable Rule

Every new --sgds-* design token requires ALL THREE deliverables — never partial:

  1. src/css/utility.css — Tailwind custom property mapping
  2. playground/utility/[name].html — Live HTML demo
  3. stories/utilities/[name].stories.js — Storybook story

Token Architecture

src/themes/root.css             Primitive tokens — base values, no theme variation
src/themes/day.css + night.css  Semantic mappings — theme-aware, references primitives
src/css/utility.css             Tailwind @theme — generates sgds: utility classes
Related skills

More from govtechsg/sgds-web-component

Installs
2
GitHub Stars
12
First Seen
Apr 7, 2026