Color
Semantic tokens with shadcn names. Components never use a raw hex.
Semantic tokens with shadcn names. Components use these tokens only: never a raw hex, never a Tailwind palette colour (blue-600, gray-100). If a role is missing, add a token; do not inline a value. Light theme only.
Surfaces & text
Neutral structure. 11 tokens; nothing else exists.
--background--card--muted--accent--foreground--muted-foreground--placeholder--disabled--border--edge--inputBrand & focus
Primary blue fills one button per screen and colours text actions that change data.
--primary--primary-hover--primary-active--primary-foreground--primary-soft--primary-subtle--ring--ring-halo--brand-pinkStatus families
5 statuses × 5 roles: base = dot, solid fill, switch on · text = words on soft · soft = badge/callout fill · edge = 1px ring (14 %) · drop = 0 1px 2px shadow (16 %). Text on soft is always the -text token.
| Status | base · text · soft | Badge | Meaning |
|---|---|---|---|
success | Done, approved, paid, complete data. Green (h~150), away from the Cuti teal. | ||
warning | Waiting, expiring soon, needs attention but not broken. | ||
danger | Rejected, error, blocked. Solid --danger only on the final confirm in a dialog (= --destructive). | ||
info | Information, new, on leave today. Cyan (h~220): its own hue, never the primary blue. | ||
neutral | Cancelled, archived, not issued yet, counts (“7 hari lagi”). |
Modules
Identity colour per rail module: the active rail tile (base fill + white solid icon) and icon tiles in that module (soft fill + base icon). Never for buttons, text or a status: approved or pending leave uses success / warning, even on Cuti. Gaji is magenta (h~347) and success is green (h~150), so no module hue sits within ~25° of a status hue it could be read as. Pengaturan and Bantuan use --foreground as their tile.
Effects & files
Effect colours live only inside shadow recipes (see Elevation). File colours tint the icon in file rows.
| Token | Value | Used for |
|---|---|---|
--shadow · --shadow-short | ink 12 % · 9 % | Crisp 0 1px 2px drop of raised surfaces · the card's short 0 3px 4px -2px drop |
--shadow-mid-color | ink 10 % | Payslip paper document only (--shadow-paper) |
--overlay-drop · --overlay-shadow | ink 12 % · 16 % | Sheet, dialog, menu and toast lift |
--backdrop | #0C111E59 | Scrim behind dialogs and sheets (+ 2px blur) |
--knob-shadow · --check-edge | 12 % · 25 % | Switch knob drop · unchecked checkbox ring |
--file-pdf · -image · -sheet · -doc | #D9680F · #9333EA · #15803D · #0284C7 | Icon stroke on a --muted tile in file rows |