Initialise is a shadcn/ui theme built around a vivid red primary color (#fd1d0d) with muted light red accents (#d6c3c2). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid red primary (#fd1d0d) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0b0504black |
| Foreground | #110404black | #fdfcfcsnow |
| Card | #fefcfbsnow | #0b0504black |
| Card foreground | #110404black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #0b0504black |
| Popover foreground | #110404black | #fdfcfcsnow |
| Primary | #fd1d0dred | #fd1d0dred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6c3c2silver | #2e2423darkslategray |
| Secondary foreground | #3d2a29darkslategray | #cabbbasilver |
| Muted | #f1eeeewhitesmoke | #110e0eblack |
| Muted foreground | #5b4e4ddimgray | #b2a5a4darkgray |
| Accent | #d6c3c2silver | #2e2423darkslategray |
| Accent foreground | #3d2a29darkslategray | #cabbbasilver |
| Destructive | #650b01maroon | #fe2d16orangered |
| Destructive foreground | #fea49alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fd1d0dred | #fd1d0dred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.06:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Initialise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 22.239);
--foreground: oklch(0.133 0.026 27.612);
--muted: oklch(0.952 0.003 22.251);
--muted-foreground: oklch(0.437 0.017 22.685);
--popover: oklch(0.991 0.002 22.239);
--popover-foreground: oklch(0.133 0.026 27.612);
--card: oklch(0.991 0.002 22.239);
--card-foreground: oklch(0.133 0.026 27.612);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.631 0.249 29.756);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.833 0.022 22.521);
--secondary-foreground: oklch(0.308 0.029 23.489);
--accent: oklch(0.833 0.022 22.521);
--accent-foreground: oklch(0.308 0.029 23.489);
--destructive: oklch(0.326 0.124 31.511);
--destructive-foreground: oklch(0.805 0.11 26.655);
--ring: oklch(0.631 0.249 29.756);
--chart-1: oklch(0.631 0.249 29.756);
--chart-2: oklch(0.833 0.022 22.521);
--chart-3: oklch(0.833 0.022 22.521);
--chart-4: oklch(0.859 0.018 22.461);
--chart-5: oklch(0.636 0.253 29.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 25.393);
--foreground: oklch(0.991 0.002 22.233);
--muted: oklch(0.167 0.005 22.56);
--muted-foreground: oklch(0.732 0.015 22.447);
--popover: oklch(0.124 0.014 25.393);
--popover-foreground: oklch(0.991 0.002 22.233);
--card: oklch(0.124 0.014 25.393);
--card-foreground: oklch(0.991 0.002 22.233);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.631 0.249 29.756);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.272 0.015 22.918);
--secondary-foreground: oklch(0.804 0.017 22.46);
--accent: oklch(0.272 0.015 22.918);
--accent-foreground: oklch(0.804 0.017 22.46);
--destructive: oklch(0.641 0.242 30.502);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.249 29.756);
--chart-1: oklch(0.631 0.249 29.756);
--chart-2: oklch(0.272 0.015 22.918);
--chart-3: oklch(0.272 0.015 22.918);
--chart-4: oklch(0.302 0.018 22.953);
--chart-5: oklch(0.636 0.253 29.742);
}