Variable is a shadcn/ui theme built around a red primary color (#e88289) with muted light red accents (#d9c9ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#e88289) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #160304black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #070404black |
| Card foreground | #120304black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070404black |
| Popover foreground | #120304black | #ffffffwhite |
| Primary | #e88289lightcoral | #e88289lightcoral |
| Primary foreground | #2f090bblack | #2f090bblack |
| Secondary | #e9e2e3gainsboro | #302728darkslategray |
| Secondary foreground | #564345darkslategray | #cabebfsilver |
| Muted | #f1e5e5linen | #1a0e0fblack |
| Muted foreground | #554e4fdarkslategray | #b1aaabdarkgray |
| Accent | #d9c9calightgrey | #432d2fdarkslategray |
| Accent foreground | #422e2fdarkslategray | #dac8calightgrey |
| Destructive | #772808saddlebrown | #db490fchocolate |
| Destructive foreground | #facab7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e88289lightcoral | #e88289lightcoral |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Variable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.039 17.451);
--muted: oklch(0.931 0.013 12.717);
--muted-foreground: oklch(0.432 0.009 12.848);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.128 0.034 16.646);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.034 16.646);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.72 0.125 16.466);
--primary-foreground: oklch(0.21 0.063 20.647);
--secondary: oklch(0.919 0.007 12.579);
--secondary-foreground: oklch(0.404 0.025 13.765);
--accent: oklch(0.849 0.019 12.885);
--accent-foreground: oklch(0.325 0.03 14.41);
--destructive: oklch(0.392 0.118 38.946);
--destructive-foreground: oklch(0.877 0.06 42.662);
--ring: oklch(0.72 0.125 16.466);
--chart-1: oklch(0.72 0.125 16.466);
--chart-2: oklch(0.919 0.007 12.579);
--chart-3: oklch(0.849 0.019 12.885);
--chart-4: oklch(0.943 0.005 12.529);
--chart-5: oklch(0.719 0.131 16.686);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 13.338);
--foreground: oklch(0.992 0.001 12.443);
--muted: oklch(0.183 0.02 14.86);
--muted-foreground: oklch(0.744 0.008 12.638);
--popover: oklch(0.11 0.009 13.338);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.009 13.338);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.72 0.125 16.466);
--primary-foreground: oklch(0.21 0.063 20.647);
--secondary: oklch(0.283 0.013 13.398);
--secondary-foreground: oklch(0.813 0.013 12.769);
--accent: oklch(0.325 0.032 14.537);
--accent-foreground: oklch(0.849 0.02 12.911);
--destructive: oklch(0.605 0.192 37.943);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.72 0.125 16.466);
--chart-1: oklch(0.72 0.125 16.466);
--chart-2: oklch(0.283 0.013 13.398);
--chart-3: oklch(0.325 0.032 14.537);
--chart-4: oklch(0.312 0.015 13.438);
--chart-5: oklch(0.719 0.131 16.686);
}