# Token reference

`@recit/theme` defines the CSS variables that every Récit format reads: the site, the deck, the
presenter console and the film. A stylesheet loaded by `theme.customCss` uses them as they are
(`var(--recit-brand)`); `theme.colors`, `theme.dark`, `theme.fonts` and `theme.radius` set the main
ones from `recit.config` (see [Colors](/theme/colors) and
[Typography and radius](/theme/typography-and-radius)).

The tables below list each variable with its default value. **Dark** is its value under
`data-mantine-color-scheme="dark"`, or « same » when dark mode keeps the light value. A value that
names another variable follows it: change `--recit-radius-lg` and the other radii move with it. The
former names (`--primary`, `--card`…) are deprecated and left out: see
[Custom CSS](/theme/custom-css#deprecated-variables).

## Tokens

### Fonts

| Token                    | Light                                                                                  | Dark |
| ------------------------ | -------------------------------------------------------------------------------------- | ---- |
| `--recit-font-sans`      | `"Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`    | same |
| `--recit-font-mono`      | `"Red Hat Mono", ui-monospace, SFMono-Regular, monospace`                              | same |
| `--recit-font-heading`   | `"Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif` | same |
| `--recit-font-lettering` | `var(--recit-font-sans)`                                                               | same |

### Radii

| Token                 | Light                                | Dark |
| --------------------- | ------------------------------------ | ---- |
| `--recit-radius-lg`   | `0.625rem`                           | same |
| `--recit-radius-sm`   | `calc(var(--recit-radius-lg) * 0.3)` | same |
| `--recit-radius-md`   | `calc(var(--recit-radius-lg) * 0.4)` | same |
| `--recit-radius-full` | `9999px`                             | same |

### Titles of the section blocks of a site page

| Token                    | Light | Dark |
| ------------------------ | ----- | ---- |
| `--recit-heading-scale`  | `1`   | same |
| `--recit-heading-weight` | `600` | same |

### Images of the section blocks

| Token                   | Light                    | Dark |
| ----------------------- | ------------------------ | ---- |
| `--recit-image-radius`  | `var(--recit-radius-lg)` | same |
| `--recit-image-border`  | `none`                   | same |
| `--recit-image-padding` | `0`                      | same |

### Surfaces of the section blocks

| Token                    | Light                    | Dark |
| ------------------------ | ------------------------ | ---- |
| `--recit-surface-radius` | `var(--recit-radius-lg)` | same |

### Rhythm

| Token                   | Light  | Dark |
| ----------------------- | ------ | ---- |
| `--recit-section-space` | `2rem` | same |

### Main button of the section blocks

| Token                   | Light     | Dark |
| ----------------------- | --------- | ---- |
| `--recit-action-bg`     | `initial` | same |
| `--recit-action-text`   | `initial` | same |
| `--recit-action-border` | `initial` | same |

### Motion

| Token                     | Light   | Dark |
| ------------------------- | ------- | ---- |
| `--recit-motion-duration` | `150ms` | same |

### Focus ring

| Token                       | Light | Dark |
| --------------------------- | ----- | ---- |
| `--recit-focus-ring-width`  | `2px` | same |
| `--recit-focus-ring-offset` | `2px` | same |

### Slide

| Token                        | Light    | Dark |
| ---------------------------- | -------- | ---- |
| `--recit-slide-padding`      | `4.5rem` | same |
| `--recit-slide-text-small`   | `1.6cqw` | same |
| `--recit-slide-text-body`    | `1.9cqw` | same |
| `--recit-slide-text-heading` | `4cqw`   | same |
| `--recit-slide-text-title`   | `5cqw`   | same |
| `--recit-slide-text-metric`  | `6cqw`   | same |

### Elevations

| Token              | Light                                                                       | Dark                                    |
| ------------------ | --------------------------------------------------------------------------- | --------------------------------------- |
| `--recit-shadow-1` | `0 1px 2px 0 rgba(0, 0, 0, 0.05)`                                           | `0 1px 2px 0 rgba(0, 0, 0, 0.4)`        |
| `--recit-shadow-2` | `0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05)` | `0 10px 30px -5px rgba(0, 0, 0, 0.5)`   |
| `--recit-shadow-3` | `0 20px 40px -12px rgba(0, 0, 0, 0.18)`                                     | `0 24px 48px -12px rgba(0, 0, 0, 0.65)` |
| `--recit-overlay`  | `rgb(0 0 0 / 0.32)`                                                         | `rgb(0 0 0 / 0.6)`                      |

### Brand tones of the default hue

| Token               | Light                        | Dark |
| ------------------- | ---------------------------- | ---- |
| `--recit-brand-50`  | `oklch(0.985 0.002 285.79)`  | same |
| `--recit-brand-100` | `oklch(0.967 0.0037 285.79)` | same |
| `--recit-brand-200` | `oklch(0.92 0.007 285.79)`   | same |
| `--recit-brand-300` | `oklch(0.871 0.01 285.79)`   | same |
| `--recit-brand-400` | `oklch(0.705 0.013 285.79)`  | same |
| `--recit-brand-500` | `oklch(0.552 0.015 285.79)`  | same |
| `--recit-brand-600` | `oklch(0.442 0.014 285.79)`  | same |
| `--recit-brand-700` | `oklch(0.37 0.012 285.79)`   | same |
| `--recit-brand-800` | `oklch(0.274 0.01 285.79)`   | same |
| `--recit-brand-900` | `oklch(0.21 0.008 285.79)`   | same |
| `--recit-brand-950` | `oklch(0.141 0.006 285.79)`  | same |

### Colors

| Token                    | Light                         | Dark                          |
| ------------------------ | ----------------------------- | ----------------------------- |
| `--recit-brand`          | `oklch(0.442 0.015 285.79)`   | `oklch(0.712 0.013 286.07)`   |
| `--recit-on-brand`       | `oklch(1 0 0)`                | `oklch(0.152 0.009 285.34)`   |
| `--recit-accent`         | `oklch(0.442 0.015 285.79)`   | `oklch(0.712 0.013 286.07)`   |
| `--recit-on-accent`      | `oklch(1 0 0)`                | `oklch(0.152 0.009 285.34)`   |
| `--recit-focus-ring`     | `oklch(0.442 0.015 285.79)`   | `oklch(0.712 0.013 286.07)`   |
| `--recit-surface-0`      | `oklch(1 0 0)`                | `oklch(0.152 0.009 285.34)`   |
| `--recit-surface-1`      | `oklch(1 0 0)`                | `oklch(0.198 0.01 285.46)`    |
| `--recit-surface-2`      | `oklch(0.961 0.001 286.38)`   | `oklch(0.229 0.012 285.46)`   |
| `--recit-surface-3`      | `oklch(1 0 0)`                | `oklch(0.198 0.01 285.46)`    |
| `--recit-text`           | `oklch(0.152 0.009 285.34)`   | `oklch(0.985 0 0)`            |
| `--recit-text-muted`     | `oklch(0.453 0.015 285.81)`   | `oklch(0.712 0.013 286.07)`   |
| `--recit-on-surface-1`   | `oklch(0.152 0.009 285.34)`   | `oklch(0.985 0 0)`            |
| `--recit-on-media`       | `oklch(1 0 0)`                | same                          |
| `--recit-border`         | `oklch(0.92 0.004 286.32)`    | `oklch(0.272 0.015 285.38)`   |
| `--recit-success`        | `oklch(0.627 0.17 149.21)`    | `oklch(0.723 0.192 149.58)`   |
| `--recit-success-bg`     | `oklch(0.982 0.018 155.83)`   | `oklch(0.266 0.063 152.93)`   |
| `--recit-success-text`   | `oklch(0.527 0.137 150.07)`   | `oklch(0.8 0.182 151.71)`     |
| `--recit-success-border` | `oklch(0.925 0.081 155.99)`   | `oklch(0.448 0.108 151.33)`   |
| `--recit-warning`        | `oklch(0.6658 0.1574 58.32)`  | `oklch(0.7686 0.1647 70.08)`  |
| `--recit-warning-bg`     | `oklch(0.987 0.021 95.28)`    | `oklch(0.279 0.074 45.64)`    |
| `--recit-warning-text`   | `oklch(0.5553 0.1455 49)`     | `oklch(0.8369 0.1644 84.43)`  |
| `--recit-warning-border` | `oklch(0.924 0.115 95.75)`    | `oklch(0.4732 0.1247 46.2)`   |
| `--recit-danger`         | `oklch(0.577 0.215 27.33)`    | `oklch(0.637 0.208 25.33)`    |
| `--recit-danger-bg`      | `oklch(0.971 0.013 17.38)`    | `oklch(0.258 0.089 26.04)`    |
| `--recit-danger-text`    | `oklch(0.505 0.19 27.52)`     | `oklch(0.711 0.166 22.22)`    |
| `--recit-danger-border`  | `oklch(0.885 0.059 18.33)`    | `oklch(0.444 0.161 26.9)`     |
| `--recit-info`           | `oklch(0.546 0.215 262.88)`   | `oklch(0.623 0.188 259.81)`   |
| `--recit-info-bg`        | `oklch(0.97 0.014 254.6)`     | `oklch(0.282 0.087 267.94)`   |
| `--recit-info-text`      | `oklch(0.488 0.217 264.38)`   | `oklch(0.714 0.143 254.62)`   |
| `--recit-info-border`    | `oklch(0.882 0.057 254.13)`   | `oklch(0.424 0.181 265.64)`   |
| `--recit-hue-violet`     | `oklch(0.541 0.247 293.01)`   | `oklch(0.709 0.159 293.54)`   |
| `--recit-hue-indigo`     | `oklch(0.511 0.23 276.97)`    | `oklch(0.68 0.158 276.93)`    |
| `--recit-hue-blue`       | `oklch(0.546 0.215 262.88)`   | `oklch(0.714 0.143 254.62)`   |
| `--recit-hue-teal`       | `oklch(0.511 0.086 186.39)`   | `oklch(0.7845 0.1325 181.91)` |
| `--recit-hue-green`      | `oklch(0.527 0.137 150.07)`   | `oklch(0.8 0.182 151.71)`     |
| `--recit-hue-amber`      | `oklch(0.5553 0.1455 49)`     | `oklch(0.8369 0.1644 84.43)`  |
| `--recit-hue-orange`     | `oklch(0.5534 0.1739 38.4)`   | `oklch(0.758 0.159 55.93)`    |
| `--recit-hue-red`        | `oklch(0.577 0.215 27.33)`    | `oklch(0.711 0.166 22.22)`    |
| `--recit-hue-magenta`    | `oklch(0.591 0.257 322.9)`    | `oklch(0.748 0.207 322.16)`   |
| `--recit-hue-sky`        | `oklch(0.5 0.1193 242.75)`    | `oklch(0.754 0.139 232.66)`   |
| `--recit-hue-lime`       | `oklch(0.5322 0.1405 131.59)` | `oklch(0.849 0.207 128.85)`   |
| `--recit-hue-graphite`   | `oklch(0.442 0.015 285.79)`   | `oklch(0.712 0.013 286.07)`   |

### Chart roles and the « No data » hatch

| Token                          | Light                         | Dark                          |
| ------------------------------ | ----------------------------- | ----------------------------- |
| `--recit-chart-role-alert`     | `oklch(0.5999 0.1905 37.88)`  | `oklch(0.6442 0.1916 41.69)`  |
| `--recit-chart-role-solution`  | `oklch(0.5644 0.1102 168.67)` | `oklch(0.6496 0.1338 164.78)` |
| `--recit-chart-role-reference` | `oklch(0.556 0.173 258.75)`   | `oklch(0.628 0.175 258.09)`   |
| `--recit-chart-role-context`   | `oklch(0.452 0.011 258.36)`   | `oklch(0.565 0.015 262.35)`   |
| `--recit-chart-no-data`        | `oklch(0.967 0.001 286.38)`   | `oklch(0.21 0.006 285.89)`    |
| `--recit-chart-no-data-hatch`  | `oklch(0.712 0.013 286.07)`   | `oklch(0.471 0.014 285.83)`   |

### Chart tints

| Token             | Light                         | Dark                          |
| ----------------- | ----------------------------- | ----------------------------- |
| `--recit-chart-1` | `oklch(0.556 0.173 258.75)`   | `oklch(0.628 0.175 258.09)`   |
| `--recit-chart-2` | `oklch(0.5999 0.1905 37.88)`  | `oklch(0.6442 0.1916 41.69)`  |
| `--recit-chart-3` | `oklch(0.5644 0.1102 168.67)` | `oklch(0.6496 0.1338 164.78)` |
| `--recit-chart-4` | `oklch(0.5902 0.1232 75.44)`  | `oklch(0.67 0.143 73.23)`     |
| `--recit-chart-5` | `oklch(0.602 0.141 357.65)`   | `oklch(0.622 0.171 0.84)`     |
| `--recit-chart-6` | `oklch(0.529 0.18 142.5)`     | `oklch(0.554 0.18 142.48)`    |
| `--recit-chart-7` | `oklch(0.527 0.197 283.44)`   | `oklch(0.67 0.145 286.83)`    |
| `--recit-chart-8` | `oklch(0.609 0.191 24.85)`    | `oklch(0.669 0.159 22.31)`    |

### The light fill under a line

| Token                        | Light | Dark |
| ---------------------------- | ----- | ---- |
| `--recit-chart-area-opacity` | `0.1` | same |

### Chart scales

| Token                        | Light                       | Dark                        |
| ---------------------------- | --------------------------- | --------------------------- |
| `--recit-chart-sequential-1` | `oklch(0.745 0.098 253.27)` | `oklch(0.453 0.128 256.27)` |
| `--recit-chart-sequential-2` | `oklch(0.671 0.136 253.81)` | `oklch(0.527 0.15 255.86)`  |
| `--recit-chart-sequential-3` | `oklch(0.575 0.163 255.53)` | `oklch(0.622 0.161 255.05)` |
| `--recit-chart-sequential-4` | `oklch(0.48 0.142 256.13)`  | `oklch(0.717 0.118 253.58)` |
| `--recit-chart-sequential-5` | `oklch(0.385 0.118 256.65)` | `oklch(0.812 0.079 253.4)`  |
| `--recit-chart-diverging-1`  | `oklch(0.433 0.128 256.54)` | `oklch(0.812 0.079 253.4)`  |
| `--recit-chart-diverging-2`  | `oklch(0.622 0.161 255.05)` | same                        |
| `--recit-chart-diverging-3`  | `oklch(0.745 0.098 253.27)` | `oklch(0.48 0.142 256.13)`  |
| `--recit-chart-diverging-4`  | `oklch(0.952 0.004 91.45)`  | `oklch(0.34 0.005 106.67)`  |
| `--recit-chart-diverging-5`  | `oklch(0.759 0.101 22.72)`  | `oklch(0.482 0.148 21.84)`  |
| `--recit-chart-diverging-6`  | `oklch(0.623 0.168 22.08)`  | same                        |
| `--recit-chart-diverging-7`  | `oklch(0.434 0.135 22.1)`   | `oklch(0.813 0.083 22.72)`  |

