Preparation is a shadcn/ui theme built around a neutral gray primary color (#2b2e29) with neutral gray accents (#2e292b). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the neutral gray primary (#2b2e29) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #000000black |
| Foreground | #020401black | #fcfdfcwhite |
| Card | #f9fcf8mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdfbsnow | #000000black |
| Popover foreground | #020401black | #fcfdfcwhite |
| Primary | #2b2e29darkslategray | #2b2e29darkslategray |
| Primary foreground | #c3c8c1silver | #c3c8c1silver |
| Secondary | #292b2edarkslategray | #292b2edarkslategray |
| Secondary foreground | #c1c3c8silver | #c1c3c8silver |
| Muted | #dadde1gainsboro | #1e2025black |
| Muted foreground | #5a6372dimgray | #8d96a5lightslategray |
| Accent | #2e292bdarkslategray | #2e292bdarkslategray |
| Accent foreground | #c8c1c3silver | #c8c1c3silver |
| Destructive | #ca1f0cfirebrick | #e7230dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b2e29darkslategray | #2b2e29darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 8.10:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Preparation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 133.624);
--foreground: oklch(0.101 0.02 131.764);
--muted: oklch(0.896 0.007 261.511);
--muted-foreground: oklch(0.497 0.027 261.408);
--popover: oklch(0.994 0.003 133.624);
--popover-foreground: oklch(0.101 0.02 131.764);
--card: oklch(0.988 0.006 133.642);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.296 0.01 133.827);
--primary-foreground: oklch(0.827 0.011 133.688);
--secondary: oklch(0.287 0.007 261.492);
--secondary-foreground: oklch(0.818 0.007 261.511);
--accent: oklch(0.286 0.008 353.395);
--accent-foreground: oklch(0.817 0.009 352.877);
--destructive: oklch(0.539 0.206 30.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.296 0.01 133.827);
--chart-1: oklch(0.296 0.01 133.827);
--chart-2: oklch(0.287 0.007 261.492);
--chart-3: oklch(0.286 0.008 353.395);
--chart-4: oklch(0.317 0.008 261.491);
--chart-5: oklch(0.299 0.015 133.938);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 133.616);
--muted: oklch(0.243 0.01 261.455);
--muted-foreground: oklch(0.67 0.025 261.46);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 133.616);
--card: oklch(0.092 0 180);
--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.296 0.01 133.827);
--primary-foreground: oklch(0.827 0.011 133.688);
--secondary: oklch(0.287 0.007 261.492);
--secondary-foreground: oklch(0.818 0.007 261.511);
--accent: oklch(0.286 0.008 353.395);
--accent-foreground: oklch(0.817 0.009 352.877);
--destructive: oklch(0.595 0.228 30.446);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.296 0.01 133.827);
--chart-1: oklch(0.296 0.01 133.827);
--chart-2: oklch(0.287 0.007 261.492);
--chart-3: oklch(0.286 0.008 353.395);
--chart-4: oklch(0.317 0.008 261.491);
--chart-5: oklch(0.299 0.015 133.938);
}