Crust is a shadcn/ui theme built around a vivid light teal primary color (#aaf3e3) with muted teal accents (#b3c2be). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#aaf3e3) on a teal-tinted background (#050b09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b09black |
| Foreground | #020907black | #f9fafaghostwhite |
| Card | #ffffffwhite | #050b09black |
| Card foreground | #020907black | #f9fafaghostwhite |
| Popover | #ffffffwhite | #050b09black |
| Popover foreground | #020907black | #f9fafaghostwhite |
| Primary | #aaf3e3paleturquoise | #aaf3e3paleturquoise |
| Primary foreground | #0d5e4ddarkslategray | #0d5e4ddarkslategray |
| Secondary | #d3d5d4lightgrey | #242d2bdarkslategray |
| Secondary foreground | #393c3bdarkslategray | #bbc9c6silver |
| Muted | #dce4e3gainsboro | #1b2321black |
| Muted foreground | #4d5b58darkslategray | #a4b2afdarkgray |
| Accent | #b3c2besilver | #324d47darkslategray |
| Accent foreground | #1e2523black | #d1e1ddgainsboro |
| Destructive | #bd2a14firebrick | #e7381dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aaf3e3paleturquoise | #aaf3e3paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 8.44:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Crust in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.017 181.975);
--muted: oklch(0.913 0.009 181.797);
--muted-foreground: oklch(0.458 0.017 180.976);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.017 181.975);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.017 181.975);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.912 0.076 179.48);
--primary-foreground: oklch(0.433 0.079 173.359);
--secondary: oklch(0.87 0.002 182.004);
--secondary-foreground: oklch(0.353 0.003 181.806);
--accent: oklch(0.801 0.017 181.459);
--accent-foreground: oklch(0.256 0.011 180.84);
--destructive: oklch(0.523 0.186 31.602);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.076 179.48);
--chart-1: oklch(0.912 0.076 179.48);
--chart-2: oklch(0.87 0.002 182.004);
--chart-3: oklch(0.801 0.017 181.459);
--chart-4: oklch(0.893 0.002 182.017);
--chart-5: oklch(0.915 0.079 179.382);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 181.959);
--foreground: oklch(0.985 0.001 182.035);
--muted: oklch(0.246 0.012 180.657);
--muted-foreground: oklch(0.751 0.016 181.482);
--popover: oklch(0.14 0.011 181.959);
--popover-foreground: oklch(0.985 0.001 182.035);
--card: oklch(0.14 0.011 181.959);
--card-foreground: oklch(0.985 0.001 182.035);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.912 0.076 179.48);
--primary-foreground: oklch(0.433 0.079 173.359);
--secondary: oklch(0.289 0.013 180.769);
--secondary-foreground: oklch(0.823 0.015 181.545);
--accent: oklch(0.397 0.034 179.402);
--accent-foreground: oklch(0.896 0.018 181.507);
--destructive: oklch(0.609 0.215 31.624);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.076 179.48);
--chart-1: oklch(0.912 0.076 179.48);
--chart-2: oklch(0.289 0.013 180.769);
--chart-3: oklch(0.397 0.034 179.402);
--chart-4: oklch(0.321 0.015 180.716);
--chart-5: oklch(0.915 0.079 179.382);
}