Skip to content

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 and 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.

Tokens

Fonts

TokenLightDark
--recit-font-sans"Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serifsame
--recit-font-mono"Red Hat Mono", ui-monospace, SFMono-Regular, monospacesame
--recit-font-heading"Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serifsame
--recit-font-letteringvar(--recit-font-sans)same

Radii

TokenLightDark
--recit-radius-lg0.625remsame
--recit-radius-smcalc(var(--recit-radius-lg) * 0.3)same
--recit-radius-mdcalc(var(--recit-radius-lg) * 0.4)same
--recit-radius-full9999pxsame

Titles of the section blocks of a site page

TokenLightDark
--recit-heading-scale1same
--recit-heading-weight600same

Images of the section blocks

TokenLightDark
--recit-image-radiusvar(--recit-radius-lg)same
--recit-image-bordernonesame
--recit-image-padding0same

Surfaces of the section blocks

TokenLightDark
--recit-surface-radiusvar(--recit-radius-lg)same

Rhythm

TokenLightDark
--recit-section-space2remsame

Main button of the section blocks

TokenLightDark
--recit-action-bginitialsame
--recit-action-textinitialsame
--recit-action-borderinitialsame

Motion

TokenLightDark
--recit-motion-duration150mssame

Focus ring

TokenLightDark
--recit-focus-ring-width2pxsame
--recit-focus-ring-offset2pxsame

Slide

TokenLightDark
--recit-slide-padding4.5remsame
--recit-slide-text-small1.6cqwsame
--recit-slide-text-body1.9cqwsame
--recit-slide-text-heading4cqwsame
--recit-slide-text-title5cqwsame
--recit-slide-text-metric6cqwsame

Elevations

TokenLightDark
--recit-shadow-10 1px 2px 0 rgba(0, 0, 0, 0.05)0 1px 2px 0 rgba(0, 0, 0, 0.4)
--recit-shadow-20 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-30 20px 40px -12px rgba(0, 0, 0, 0.18)0 24px 48px -12px rgba(0, 0, 0, 0.65)
--recit-overlayrgb(0 0 0 / 0.32)rgb(0 0 0 / 0.6)

Brand tones of the default hue

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

Colors

TokenLightDark
--recit-brandoklch(0.442 0.015 285.79)oklch(0.712 0.013 286.07)
--recit-on-brandoklch(1 0 0)oklch(0.152 0.009 285.34)
--recit-accentoklch(0.442 0.015 285.79)oklch(0.712 0.013 286.07)
--recit-on-accentoklch(1 0 0)oklch(0.152 0.009 285.34)
--recit-focus-ringoklch(0.442 0.015 285.79)oklch(0.712 0.013 286.07)
--recit-surface-0oklch(1 0 0)oklch(0.152 0.009 285.34)
--recit-surface-1oklch(1 0 0)oklch(0.198 0.01 285.46)
--recit-surface-2oklch(0.961 0.001 286.38)oklch(0.229 0.012 285.46)
--recit-surface-3oklch(1 0 0)oklch(0.198 0.01 285.46)
--recit-textoklch(0.152 0.009 285.34)oklch(0.985 0 0)
--recit-text-mutedoklch(0.453 0.015 285.81)oklch(0.712 0.013 286.07)
--recit-on-surface-1oklch(0.152 0.009 285.34)oklch(0.985 0 0)
--recit-on-mediaoklch(1 0 0)same
--recit-borderoklch(0.92 0.004 286.32)oklch(0.272 0.015 285.38)
--recit-successoklch(0.627 0.17 149.21)oklch(0.723 0.192 149.58)
--recit-success-bgoklch(0.982 0.018 155.83)oklch(0.266 0.063 152.93)
--recit-success-textoklch(0.527 0.137 150.07)oklch(0.8 0.182 151.71)
--recit-success-borderoklch(0.925 0.081 155.99)oklch(0.448 0.108 151.33)
--recit-warningoklch(0.6658 0.1574 58.32)oklch(0.7686 0.1647 70.08)
--recit-warning-bgoklch(0.987 0.021 95.28)oklch(0.279 0.074 45.64)
--recit-warning-textoklch(0.5553 0.1455 49)oklch(0.8369 0.1644 84.43)
--recit-warning-borderoklch(0.924 0.115 95.75)oklch(0.4732 0.1247 46.2)
--recit-dangeroklch(0.577 0.215 27.33)oklch(0.637 0.208 25.33)
--recit-danger-bgoklch(0.971 0.013 17.38)oklch(0.258 0.089 26.04)
--recit-danger-textoklch(0.505 0.19 27.52)oklch(0.711 0.166 22.22)
--recit-danger-borderoklch(0.885 0.059 18.33)oklch(0.444 0.161 26.9)
--recit-infooklch(0.546 0.215 262.88)oklch(0.623 0.188 259.81)
--recit-info-bgoklch(0.97 0.014 254.6)oklch(0.282 0.087 267.94)
--recit-info-textoklch(0.488 0.217 264.38)oklch(0.714 0.143 254.62)
--recit-info-borderoklch(0.882 0.057 254.13)oklch(0.424 0.181 265.64)
--recit-hue-violetoklch(0.541 0.247 293.01)oklch(0.709 0.159 293.54)
--recit-hue-indigooklch(0.511 0.23 276.97)oklch(0.68 0.158 276.93)
--recit-hue-blueoklch(0.546 0.215 262.88)oklch(0.714 0.143 254.62)
--recit-hue-tealoklch(0.511 0.086 186.39)oklch(0.7845 0.1325 181.91)
--recit-hue-greenoklch(0.527 0.137 150.07)oklch(0.8 0.182 151.71)
--recit-hue-amberoklch(0.5553 0.1455 49)oklch(0.8369 0.1644 84.43)
--recit-hue-orangeoklch(0.5534 0.1739 38.4)oklch(0.758 0.159 55.93)
--recit-hue-redoklch(0.577 0.215 27.33)oklch(0.711 0.166 22.22)
--recit-hue-magentaoklch(0.591 0.257 322.9)oklch(0.748 0.207 322.16)
--recit-hue-skyoklch(0.5 0.1193 242.75)oklch(0.754 0.139 232.66)
--recit-hue-limeoklch(0.5322 0.1405 131.59)oklch(0.849 0.207 128.85)
--recit-hue-graphiteoklch(0.442 0.015 285.79)oklch(0.712 0.013 286.07)

Chart roles and the « No data » hatch

TokenLightDark
--recit-chart-role-alertoklch(0.5999 0.1905 37.88)oklch(0.6442 0.1916 41.69)
--recit-chart-role-solutionoklch(0.5644 0.1102 168.67)oklch(0.6496 0.1338 164.78)
--recit-chart-role-referenceoklch(0.556 0.173 258.75)oklch(0.628 0.175 258.09)
--recit-chart-role-contextoklch(0.452 0.011 258.36)oklch(0.565 0.015 262.35)
--recit-chart-no-dataoklch(0.967 0.001 286.38)oklch(0.21 0.006 285.89)
--recit-chart-no-data-hatchoklch(0.712 0.013 286.07)oklch(0.471 0.014 285.83)

Chart tints

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

The light fill under a line

TokenLightDark
--recit-chart-area-opacity0.1same

Chart scales

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