# Elevation

### Shadows

Restrained, layered shadows. Every elevation starts with a solid 1px hairline ring; in dark mode the ring becomes a low-alpha white edge that dissolves into the shadow.

| Token | CSS variable | Utility | Light | Dark | Description |
| --- | --- | --- | --- | --- | --- |
| `shadow.hairline` | `--fndn-shadow-hairline` | `shadow-hairline` | `0 0 0 1px {color.line}` | `0 0 0 1px {color.line}` |  |
| `shadow.btn` | `--fndn-shadow-btn` | `shadow-btn` | `0 0 0 1px {color.line-strong}, 0 1px 2px 0 oklch(0 0 0 / 0.05)` | `0 0 0 1px oklch(1 0 0 / 0.1), 0 1px 2px 0 oklch(0 0 0 / 0.3)` |  |
| `shadow.card` | `--fndn-shadow-card` | `shadow-card` | `0 0 0 1px {color.line}, 0 1px 2px 0 oklch(0 0 0 / 0.06), 0 2px 4px 0 oklch(0 0 0 / 0.04)` | `0 0 0 1px oklch(1 0 0 / 0.11), 0 1px 2px 0 oklch(0 0 0 / 0.2), 0 2px 6px 0 oklch(0 0 0 / 0.2)` |  |
| `shadow.raised` | `--fndn-shadow-raised` | `shadow-raised` | `0 0 0 1px {color.line}, 0 2px 4px 0 oklch(0 0 0 / 0.05), 0 4px 8px 0 oklch(0 0 0 / 0.05), 0 8px 16px 0 oklch(0 0 0 / 0.04)` | `0 0 0 1px oklch(1 0 0 / 0.13), 0 2px 10px 0 oklch(0 0 0 / 0.22)` |  |
| `shadow.overlay` | `--fndn-shadow-overlay` | `shadow-overlay` | `0 0 0 1px {color.line}, 0 4px 8px 0 oklch(0 0 0 / 0.05), 0 8px 16px 0 oklch(0 0 0 / 0.06), 0 16px 32px 0 oklch(0 0 0 / 0.06)` | `0 0 0 1px oklch(1 0 0 / 0.15), 0 8px 28px 0 oklch(0 0 0 / 0.34)` |  |

### Stacking

Stacking order of the layers that float over the page. base.css puts them on the engine's positioners with !important, because Zag writes `--z-index` inline.

| Token | CSS variable | Utility | Value | Description |
| --- | --- | --- | --- | --- |
| `z.popup` | `--fndn-z-popup` | `z-popup` | `50` | Selects, menus, popovers, hover cards, suggestion lists. |
| `z.dialog` | `--fndn-z-dialog` | `z-dialog` | `60` | Dialog and drawer backdrop and window. A popup opened while one is open goes one above it. |
| `z.toast` | `--fndn-z-toast` | `z-toast` | `65` | Toasts: above a dialog (a toast raised from one must be seen), under tooltips (a toast's buttons have tooltips). |
| `z.tooltip` | `--fndn-z-tooltip` | `z-tooltip` | `70` | Tooltips, above everything. |
