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#FAFAFA · bg-backgroundPage ground behind cards (with --page-gradient).
--card#FFFFFF · bg-cardCards, panels, dialogs, menus, white buttons, fields.
--muted#F2F2F2 · bg-mutedSunken fills: segmented track, group headers, weekend cells, pressed white button.
--accent#F7F7F8 · bg-accentHover fill of white buttons, rows and menu items. Not a brand colour.
--foreground#0C111E · text-foregroundTitles, values, labels, button text, navigation links. 18.4:1 on white.
--muted-foreground#5B6272 · text-muted-foregroundThe only secondary text colour: descriptions, meta, row labels. 6.4:1.
--placeholder#82868F · text-placeholderExample values in fields, chevrons, empty-state icons, OFF switch track (3.65:1 on white, 3.26:1 on --muted). Never for information the user needs.
--disabled#C5C5C7 · bg-disabledRarely used; disabled controls use opacity, not this colour.
--border#DCDCE1 · border-border1px hairlines between rows and card sections (1.37:1 on white; 1px stays for older eyes). Never around a card.
--edge#0C111E14 (8% ink) · shadow token1px ring around raised controls (cards and modals: --card-edge, 7%). Not the focus ring.
--input#0000006B (42%) · border-inputNot a field edge (every input is raised: shadow-field = shadow-button). Used for dashed drop zones, open top-bar triggers and step rings (3.0:1 on white).

Brand & focus

Primary blue fills one button per screen and colours text actions that change data.

--primary#253CE2 · bg-primaryBlue means "do this" or "here": the one primary button, text actions that change data, focus, the ring of a picked option tile. Never a status.
--primary-hover#1B2DB8 · hover:bg-primary-hoverPrimary button on hover.
--primary-active#1626A1 · active:bg-primary-activePrimary button while pressed.
--primary-foreground#FFFFFF · text-primary-foregroundText and icons on primary and on solid danger.
--primary-soft#E3E7FC · bg-primary-softRingkasan module tint. Not a status fill (info is cyan).
--primary-subtle#F2F3FD · bg-primary-subtleThe active setup step card (the next step). Selected rows and items are grey (--muted), not blue.
--ring= --primary · outline-ringKeyboard focus ring on every control. Always visible.
--ring-halo#253CE226 · —Not used by fields any more (the focus ring has no halo since 2026-12-02). Kept for the token set.
--brand-pink#E91E78 · text-brand-pinkMayar logo mark only. Never on UI controls or text.

Status 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.

Statusbase · text · softBadgeMeaning
success#16A34A · #167A3E · #E2F4E7DisetujuiDone, approved, paid, complete data. Green (h~150), away from the Cuti teal.
warning#D97706 · #92400E · #FDF0DCMenunggu HRWaiting, expiring soon, needs attention but not broken.
danger#DC2626 · #991B1B · #FBE4E4DitolakRejected, error, blocked. Solid --danger only on the final confirm in a dialog (= --destructive).
info#0891B2 · #0E7490 · #CFFAFECutiInformation, new, on leave today. Cyan (h~220): its own hue, never the primary blue.
neutral= placeholder · #3F4654 · #F2F2F5DibatalkanCancelled, 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.

Ringkasan · Beranda--mod-ringkasan #253CE2
-soft #E3E7FC
Karyawan · Profil--mod-karyawan #0369A1
-soft #E0F2FE
Organisasi--mod-organisasi #6D28D9
-soft #EDE9FE
Cuti--mod-cuti #0F766E
-soft #CCFBF1
Gaji · Slip gaji--mod-gaji #B5177F
-soft #FBE6F5
Akses--mod-akses #334155
-soft #E2E8F0

Effects & files

Effect colours live only inside shadow recipes (see Elevation). File colours tint the icon in file rows.

TokenValueUsed for
--shadow · --shadow-shortink 12 % · 9 %Crisp 0 1px 2px drop of raised surfaces · the card's short 0 3px 4px -2px drop
--shadow-mid-colorink 10 %Payslip paper document only (--shadow-paper)
--overlay-drop · --overlay-shadowink 12 % · 16 %Sheet, dialog, menu and toast lift
--backdrop#0C111E59Scrim behind dialogs and sheets (+ 2px blur)
--knob-shadow · --check-edge12 % · 25 %Switch knob drop · unchecked checkbox ring
--file-pdf · -image · -sheet · -doc#D9680F · #9333EA · #15803D · #0284C7Icon stroke on a --muted tile in file rows

Which text colour?

Is it on a solid primary or solid danger fill?├─ Yes → --primary-foreground└─ No   Is it on a status or module soft fill?   ├─ Yes → that family's -text (--success-text …)   └─ No      Is it an action that changes data?      ├─ Yes → --primary (or --danger if destructive)      └─ No         Is it a title, value, label or nav link?         ├─ Yes → --foreground         └─ Default → --muted-foregroundPlaceholder in a field → --placeholder

Which background?

Is it the page itself?├─ Yes → bg-page (--background + --page-gradient)└─ No   Does it show a status or a module identity?   ├─ Yes → --{name}-soft (badge, callout, icon tile)   └─ No      Is it a sunken area (track, group header, weekend)?      ├─ Yes → --muted      └─ No         Is it the chosen / current item (list, menu, "Anda")?         ├─ Yes → --muted (grey, no hue)         └─ No            Is the user hovering a white control or row?            ├─ Yes → --accent            └─ Default → --card (+ the raised recipe)Solid --primary only on the one primary button.Solid --danger only on the final confirm in a dialog.