Elevation

Line vs raised; the exact shadow recipes.

Every raised thing has an ink edge ring (8 %) and a crisp 0 1px 2px drop (ink 12 %), never pure black. A card is one step higher (one short 0 3px 4px -2px drop). An overlay adds one short drop: 4 px for menus, 6 px for modals. Never a big, soft blur, never a lit top edge. Paper has no shadow token type, so each recipe is a CSS token in globals.css and a Tailwind class. Copy the class; never write a new box-shadow.

Line vs raised

The one rule that decides most edges.

Line · --input

Only fields you type in: Input, Textarea, search. White with a 1px inner line at 42 % (3.0:1), no drop. Why: older users must find the box before they can type.

Nama lengkap

Raised · --shadow-button

Everything you click: buttons, Select and DateField triggers, ChoiceCard/RadioCard, chosen-file rows. Why: a raised surface reads as “press me”, a line reads as “type here”.

Istri

Recipes

Levels: page (no shadow) → raised button → card (one short drop more) → menu → modal.

Batal
--shadow-buttonshadow-buttonWhite buttons, icon buttons, Select/DateField triggers, option cards, chosen-file rows, segmented selected option.
0 0 0 1px var(--edge), 0 1px 2px var(--shadow)edge = ink 8 %, drop = ink 12 %. pressed: 0 0 0 1px var(--edge) + fill --muted (drop removed)
--shadow-cardshadow-cardCards, tiles, tables, list cards.
0 0 0 1px var(--card-edge), 0 1px 2px var(--shadow), 0 3px 4px -2px var(--shadow-short)one step above a button: the same ring (7 %) and crisp drop, plus one short drop
--shadow-fieldshadow-fieldFields you TYPE in: Input, Textarea, search, PasswordInput. Raised like the Select trigger (alias of --shadow-button).
var(--shadow-button)focus: --shadow-focus · error: --shadow-error
--shadow-focusshadow-focusA focused field, or an open Select/DateField trigger (replaces its edge).
inset 0 0 0 1px var(--ring), 0 0 0 1px var(--ring), 0 1px 2px transparentbuttons use outline 2px --ring, offset 2px instead
--shadow-errorshadow-errorA field or trigger with an error. The message below uses --danger-text.
inset 0 0 0 2px var(--danger)no drop, also on raised triggers
Disetujui
--shadow-badge-{status}inline styleBadges and soft chips: edge + drop from the badge's own colour.
0 0 0 1px var(--{status}-edge), 0 1px 2px var(--{status}-drop)status ∈ success · warning · danger · info · neutral
--shadow-menushadow-menuMenu, popover, select list, date popup, toast (toasts use their status edge).
0 0 0 1px var(--edge), 0 1px 2px var(--overlay-drop), 0 4px 8px -4px var(--overlay-shadow)crisp: ring + 1px drop + one short drop. No big soft blur. (--shadow-overlay = alias)
--shadow-modalshadow-modalDialog and Sheet (480 panel).
0 0 0 1px var(--card-edge), 0 1px 2px var(--overlay-drop), 0 6px 8px -4px var(--overlay-shadow)one step above a menu: a 6 px short drop instead of 4 px
Simpan
--shadow-primaryshadow-primaryThe blue primary button only.
0 0 0 1px var(--card), 0 1px 2px var(--shadow)a 1px ring in the surface colour + the crisp drop. No lit top edge. pressed: none. Solid danger confirm: none.
--shadow-papershadow-paperThe payslip paper document on its sunken tray. Nothing else.
0 0 0 1px var(--edge), 0 6px 8px -4px var(--shadow-mid-color)

Backdrop

Behind dialogs and sheets only.

css
background: var(--backdrop); /* #0C111E at 35 % */backdrop-filter: blur(2px);/* Tailwind: bg-backdrop backdrop-blur-[2px] */