Shadow
Shadow tokens xs–xl, inner shadow, colored glow, and dark mode depth.
Elevation Scale
xs to xl — increasing depth for surfaces, cards, modals, and overlays.
Token Reference
Click a row to copy the CSS variable name.
| Token | Value | Use when… | |
|---|---|---|---|
| var(--shadow-xs) | 0 1px 2px 0 rgb(0 0 0 / 0.05) | The element needs barely-there lift; e.g. badge, tag | |
| var(--shadow-sm) | 0 1px 3px … + 0 1px 2px … | Small interactive elements; inputs on hover/focus | |
| var(--shadow-md) | 0 4px 16px … + 0 2px 6px … | Cards and panels raised from the page surface | |
| var(--shadow-lg) | 0 20px 40px … + 0 8px 16px … | Dropdowns, popovers, floating menus | |
| var(--shadow-xl) | 0 32px 64px -12px rgb(0 0 0 / 0.18) | Modals and dialogs that sit above everything | |
| var(--shadow-inner) | inset 0 2px 4px 0 rgb(0 0 0 / 0.06) | Input wells, troughs, pressed/active states |
Dark Surface
Shadows remain subtle on dark backgrounds — the token values are unchanged; the surface contrast does the work.
Colored Glow
Brand-colored glow built by composing box-shadow with a color utility. Not a token — compose inline with a Tailwind arbitrary value.
Usage Context
Real UI patterns that map to each token — so you reach for the right depth, not just the next step up.
Badge & chip — barely perceptible lift
Input field on hover / focus
Product Card
Rp 299.000
Card raised from page surface
Dropdown / popover menu
Confirm delete?
This action cannot be undone.
Modal dialog
Pressed / active state, input trough