TFMKIT Logo
Design System

TFMKIT Design System

One visual language for every page on the site. This is the living documentation of that language — every swatch, specimen and component below is rendered from the same tokens and components the product uses, so this page can never drift from reality.

How it fits together

Three layers, one direction of flow: tokens define values, UnoCSS shortcuts apply them, components consume them.

Tokens

src/lib/design-system/tokens.ts — the typed single source of truth: colors, type scale, spacing, shadows, easing.

Shortcuts

uno.config.ts — named utilities like card, btn-primary, heading-section mapped 1:1 to tokens.

Components

src/lib/design-system/components/ — typed Svelte components (Button, Card, Badge…) built on the shortcuts.

The rules

Enforced by eslint-design-system.cjs — these run as custom ESLint rules, not just convention.

  1. No hardcoded hex colors — use designTokens.colors.* or UnoCSS color utilities.
  2. No arbitrary spacing — use the spacing scale or UnoCSS spacing utilities.
  3. Typed props only — new components take interfaces from $lib/design-system/types.
  4. Shortcuts over raw utilities — write card, not rounded-2xl border p-6 ….
  5. Theme-aware always — every color utility needs its dark: counterpart.
Import tokens and components