Timeplus Design System
Generate UI that looks like the Timeplus Console: clean, professional, and
flat, built on a neutral gray scale with a single pink accent (#D53F8C) for
primary actions, the Inter typeface, and a consistent 4px corner radius.
The normative source of truth is DESIGN.md — a
google-labs-code/design.md
token file. Its YAML front matter holds the exact color, typography, spacing,
radius, and component tokens; its prose explains how to apply them. Use the
token values verbatim.
Quick Reference
| Need |
Read |
| Design tokens + rationale (colors, type, layout, shapes, components, do's/don'ts) |
DESIGN.md |
| Copy-paste CSS, Tailwind config, and React components |
references/components.md |
When to Read Reference Files
DESIGN.md — Read first for any Timeplus UI task. Provides the exact
palette (gray-100…gray-900, pink-400/500, red-400/500), the Inter type scale,
the 4px radius rule, the flat/no-shadow elevation model, the 4px-based spacing
scale, per-component tokens and states, and the do's & don'ts.
references/components.md — Read when implementing. Full CSS,
tailwind.config.js color/font extension, CSS custom properties, and React
components for buttons (primary/secondary/destructive), text inputs, toggle
switches, cards, tables, links, dividers, and icons, plus accessibility
(WCAG AA contrast, focus states, touch targets) and asset guidance.
Core Rules (at a glance)
- Font: Inter only — Regular (400) for content, Semi-Bold (600) for headings/controls. Never below 12px.
- Color: Neutral grays carry the UI; pink-500 marks the single primary action; red-500 is for destructive/error only.
- Surfaces: Page background is warm off-white
#F7F6F6; content sits on white cards with a 1px #DAD9DB border.
- Shape: 4px radius everywhere (pill only for toggles). No shadows — separate with borders.
- Spacing: 4px-based scale; 24px container padding, 16px between form fields.
- Buttons: 32px tall. Inputs: 40px tall. Always provide a visible 2px pink focus ring.
Validating changes
After editing DESIGN.md, optionally lint it against the format spec:
npx @google/design.md lint DESIGN.md
You can also export the tokens to Tailwind or W3C DTCG format:
npx @google/design.md export --format css-tailwind DESIGN.md > theme.css
1---2name: timeplus-design3description: Build user interfaces that match the Timeplus Console look and feel. Use this skill when generating, styling, or reviewing UI for a Timeplus product or console-aligned app — buttons, inputs, toggles, tables, cards, layouts — and when you need the exact Timeplus colors, Inter typography scale, 4px-radius flat-surface shapes, spacing scale, and component states. Provides a DESIGN.md (google-labs-code/design.md token format) plus ready-to-adapt CSS, Tailwind, and React implementations.4license: Apache-2.05---67# Timeplus Design System89Generate UI that looks like the **Timeplus Console**: clean, professional, and10flat, built on a neutral gray scale with a single pink accent (`#D53F8C`) for11primary actions, the Inter typeface, and a consistent 4px corner radius.1213The normative source of truth is [`DESIGN.md`](DESIGN.md) — a14[google-labs-code/design.md](https://github.com/google-labs-code/design.md)15token file. Its YAML front matter holds the exact color, typography, spacing,16radius, and component tokens; its prose explains how to apply them. **Use the17token values verbatim.**1819## Quick Reference2021| Need | Read |22|------|------|23| Design tokens + rationale (colors, type, layout, shapes, components, do's/don'ts) | [`DESIGN.md`](DESIGN.md) |24| Copy-paste CSS, Tailwind config, and React components | [`references/components.md`](references/components.md) |2526## When to Read Reference Files2728- **`DESIGN.md`** — Read first for any Timeplus UI task. Provides the exact29 palette (gray-100…gray-900, pink-400/500, red-400/500), the Inter type scale,30 the 4px radius rule, the flat/no-shadow elevation model, the 4px-based spacing31 scale, per-component tokens and states, and the do's & don'ts.32- **`references/components.md`** — Read when implementing. Full CSS,33 `tailwind.config.js` color/font extension, CSS custom properties, and React34 components for buttons (primary/secondary/destructive), text inputs, toggle35 switches, cards, tables, links, dividers, and icons, plus accessibility36 (WCAG AA contrast, focus states, touch targets) and asset guidance.3738## Core Rules (at a glance)3940- **Font:** Inter only — Regular (400) for content, Semi-Bold (600) for headings/controls. Never below 12px.41- **Color:** Neutral grays carry the UI; pink-500 marks the single primary action; red-500 is for destructive/error only.42- **Surfaces:** Page background is warm off-white `#F7F6F6`; content sits on white cards with a 1px `#DAD9DB` border.43- **Shape:** 4px radius everywhere (pill only for toggles). No shadows — separate with borders.44- **Spacing:** 4px-based scale; 24px container padding, 16px between form fields.45- **Buttons:** 32px tall. **Inputs:** 40px tall. Always provide a visible 2px pink focus ring.4647## Validating changes4849After editing `DESIGN.md`, optionally lint it against the format spec:5051```bash52npx @google/design.md lint DESIGN.md53```5455You can also export the tokens to Tailwind or W3C DTCG format:5657```bash58npx @google/design.md export --format css-tailwind DESIGN.md > theme.css59```