# Tokens

Every token except colors, grouped by what it sets. Colors have their own page, [Colors](https://www.werewolf-ui.dev/docs/foundations/colors.md). A value shows for light mode only where it differs from dark.

## Spacing

| Token | Value | Light |
| --- | --- | --- |
| `spacing-2xs` | `2px` |  |
| `spacing-xs` | `4px` |  |
| `spacing-sm` | `8px` |  |
| `spacing-md` | `12px` |  |
| `spacing-lg` | `16px` |  |
| `spacing-xl` | `24px` |  |
| `spacing-2xl` | `32px` |  |
| `spacing-3xl` | `48px` |  |
| `spacing-4xl` | `64px` |  |
| `spacing-5xl` | `96px` |  |
| `spacing-safe-top` | `env(safe-area-inset-top, 0px)` |  |
| `spacing-safe-right` | `env(safe-area-inset-right, 0px)` |  |
| `spacing-safe-bottom` | `env(safe-area-inset-bottom, 0px)` |  |
| `spacing-safe-left` | `env(safe-area-inset-left, 0px)` |  |

## Size

| Token | Value | Light |
| --- | --- | --- |
| `size-element-sm` | `28px` |  |
| `size-element-md` | `32px` |  |
| `size-element-lg` | `36px` |  |
| `size-element-xl` | `44px` |  |
| `size-target-min` | `24px` |  |
| `size-inline-xs` | `16px` |  |
| `size-inline-sm` | `20px` |  |
| `size-inline-md` | `24px` |  |
| `size-icon-sm` | `12px` |  |
| `size-icon-md` | `16px` |  |
| `size-icon-lg` | `20px` |  |
| `size-panel-sidebar` | `256px` |  |
| `size-panel-popover` | `288px` |  |
| `size-panel-sm` | `320px` |  |
| `size-panel-md` | `384px` |  |
| `size-panel-lg` | `448px` |  |

## Radius

| Token | Value | Light |
| --- | --- | --- |
| `radius-none` | `0px` |  |
| `radius-inner` | `6px` |  |
| `radius-item` | `11px` |  |
| `radius-element` | `12px` |  |
| `radius-container` | `16px` |  |
| `radius-page` | `20px` |  |
| `radius-full` | `9999px` |  |
| `corner-smoothing` | `0.6` |  |

## Border and focus ring

| Token | Value | Light |
| --- | --- | --- |
| `color-focus-ring` | `#f5f5f5` | `#111111` |
| `border-width` | `1px` |  |
| `outline-width-focus-ring` | `2px` |  |
| `outline-offset-focus-ring` | `2px` |  |

## Typography

| Token | Value | Light |
| --- | --- | --- |
| `font-family-sans` | `Geist, ui-sans-serif, system-ui, sans-serif` |  |
| `font-family-mono` | `'JetBrains Mono', ui-monospace, monospace` |  |
| `font-size-xs` | `12px` |  |
| `font-size-sm` | `14px` |  |
| `font-size-md` | `16px` |  |
| `font-size-lg` | `18px` |  |
| `font-size-xl` | `20px` |  |
| `font-size-input` | `14px` |  |
| `font-weight-regular` | `400` |  |
| `font-weight-medium` | `500` |  |
| `font-weight-semibold` | `600` |  |
| `heading-1-size` | `32px` |  |
| `heading-1-weight` | `500` |  |
| `heading-1-leading` | `40px` |  |
| `heading-2-size` | `24px` |  |
| `heading-2-weight` | `500` |  |
| `heading-2-leading` | `32px` |  |
| `heading-3-size` | `20px` |  |
| `heading-3-weight` | `500` |  |
| `heading-3-leading` | `28px` |  |
| `body-size` | `14px` |  |
| `body-weight` | `400` |  |
| `body-leading` | `20px` |  |
| `line-height-xs` | `16px` |  |
| `line-height-sm` | `20px` |  |
| `line-height-md` | `24px` |  |
| `line-height-lg` | `28px` |  |
| `line-height-xl` | `28px` |  |
| `line-height-input` | `20px` |  |

## Motion

| Token | Value | Light |
| --- | --- | --- |
| `duration-fast` | `160ms` |  |
| `duration-medium` | `250ms` |  |
| `duration-slow` | `400ms` |  |
| `duration-loop` | `2000ms` |  |
| `duration-spring` | `650ms` |  |
| `ease-standard` | `cubic-bezier(0.2, 0, 0, 1)` |  |
| `ease-enter` | `cubic-bezier(0.05, 0.7, 0.1, 1)` |  |
| `ease-exit` | `cubic-bezier(0.3, 0, 0.8, 0.15)` |  |
| `ease-spring` | `linear(0, 0.001 0.5%, 0.005 1.3%, 0.018 2.5%, 0.03 3.3%, 0.043 4%, 0.058 4.8%, 0.081 5.8%, 0.119 7.2%, 0.161 8.8%, 0.361 15.5%, 0.453 18.8%, 0.499 20.5%, 0.542 22.3%, 0.583 24%, 0.621 25.8%, 0.657 27.5%, 0.689 29.3%, 0.719 31%, 0.747 32.8%, 0.772 34.5%, 0.798 36.5%, 0.819 38.3%, 0.84 40.3%, 0.861 42.5%, 0.88 44.8%, 0.898 47.3%, 0.913 49.8%, 0.927 52.5%, 0.94 55.3%, 0.951 58.3%, 0.96 61.5%, 0.975 68.3%, 0.985 76%, 0.993 86.3%, 0.997 99.8%, 1)` |  |
| `scale-pressed` | `0.96` |  |

## Shadow

| Token | Value | Light |
| --- | --- | --- |
| `shadow-low` | `0px 1px 3px 0px #00000066, inset 0px 1px 0px 0px #ffffff1a` | `0px 1px 2px 0px #0000000f, 0px 1px 3px 0px #0000001a` |
| `shadow-med` | `0px 4px 16px 0px #00000080, inset 0px 1px 0px 0px #ffffff1a` | `0px 2px 4px 0px #0000000f, 0px 8px 16px 0px #0000001a` |
| `shadow-high` | `0px 16px 40px 0px #00000099, inset 0px 1px 0px 0px #ffffff1a` | `0px 4px 8px 0px #00000014, 0px 24px 48px 0px #00000029` |
| `shadow-inset` | `inset 0px 1px 3px 0px #000000b3` | `inset 0px 1px 2px 0px #00000033` |

## Blur and material

| Token | Value | Light |
| --- | --- | --- |
| `color-background-material-thin` | `#111111d9` | `#fafafae6` |
| `color-background-material-thick` | `#181818e6` | `#ffffffd9` |
| `color-background-material-refract` | `#181818e6` | `#ffffffd9` |
| `color-background-material-clear` | `#18181880` | `#ffffff33` |
| `color-border-material-edge` | `#ffffff1f` | `#ffffff59` |
| `color-overlay-highlight-on-material` | `#ffffff29` | `#ffffff80` |
| `blur-sm` | `4px` |  |
| `blur-md` | `12px` |  |
| `blur-lg` | `24px` |  |
| `blur-material-thin` | `8px` |  |
| `blur-material-thick` | `16px` |  |
| `blur-material-refract` | `20px` |  |
| `blur-material-clear` | `6px` |  |
| `saturate-material-thin` | `1.6` |  |
| `saturate-material-thick` | `1.8` |  |
| `saturate-material-refract` | `2` |  |
| `saturate-material-clear` | `2` |  |

## Opacity

| Token | Value | Light |
| --- | --- | --- |
| `opacity-disabled` | `0.4` |  |
| `opacity-pending` | `0.6` |  |
| `opacity-subtle` | `0.3` |  |

## Z-index

| Token | Value | Light |
| --- | --- | --- |
| `z-index-base` | `0` |  |
| `z-index-sticky` | `10` |  |
| `z-index-overlay` | `20` |  |
| `z-index-popover` | `30` |  |
| `z-index-toast` | `40` |  |
| `z-index-tooltip` | `50` |  |

## Hover, pressed and disabled

| Token | Value | Light |
| --- | --- | --- |
| `color-background-disabled` | `#1e1e1e` | `#ededed` |
| `color-text-disabled` | `#484848` | `#b7b7b7` |
| `color-icon-disabled` | `#484848` | `#b7b7b7` |
| `color-overlay-hover` | `#ffffff0f` | `#0000000a` |
| `color-overlay-pressed` | `#ffffff1a` | `#00000014` |
| `color-overlay-hover-on-accent` | `#00000012` | `#ffffff0d` |
| `color-overlay-pressed-on-accent` | `#00000024` | `#ffffff1a` |
| `color-overlay-hover-on-danger` | `#0000001f` |  |
| `color-overlay-pressed-on-danger` | `#0000003b` |  |
| `color-overlay-hover-on-success` | `#ffffff2b` | `#ffffff29` |
| `color-overlay-pressed-on-success` | `#ffffff52` | `#ffffff4f` |
| `color-overlay-hover-on-warning` | `#00000017` | `#ffffff29` |
| `color-overlay-pressed-on-warning` | `#0000002b` | `#ffffff52` |
| `color-overlay-hover-on-info` | `#0000001f` |  |
| `color-overlay-pressed-on-info` | `#0000003d` |  |
