Crate is a shadcn/ui theme built around a deep teal primary color (#0b3d38) with deep red accents (#3d0b10). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the deep teal primary (#0b3d38) on a teal-tinted background (#040c0b).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #040c0bblack |
| Foreground | #010404black | #f6f9f9whitesmoke |
| Card | #f6fdfdmintcream | #040c0bblack |
| Card foreground | #010404black | #f6f9f9whitesmoke |
| Popover | #f6fdfdmintcream | #040c0bblack |
| Popover foreground | #010404black | #f6f9f9whitesmoke |
| Primary | #0b3d38darkslategray | #0b3d38darkslategray |
| Primary foreground | #38dccbturquoise | #38dccbturquoise |
| Secondary | #3d0b10black | #3d0b10black |
| Secondary foreground | #eb8e98lightcoral | #eb8e98lightcoral |
| Muted | #f1eeeewhitesmoke | #110e0eblack |
| Muted foreground | #635a5bdimgray | #a59c9ddarkgray |
| Accent | #3d0b10black | #3d0b10black |
| Accent foreground | #eb8e98lightcoral | #eb8e98lightcoral |
| Destructive | #8b1f04darkred | #f84c20orangered |
| Destructive foreground | #fdcfc4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b3d38darkslategray | #0b3d38darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.08:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Crate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 189.91);
--foreground: oklch(0.1 0.011 189.29);
--muted: oklch(0.952 0.004 10.165);
--muted-foreground: oklch(0.476 0.012 10.667);
--popover: oklch(0.99 0.007 189.91);
--popover-foreground: oklch(0.1 0.011 189.29);
--card: oklch(0.99 0.007 189.91);
--card-foreground: oklch(0.1 0.011 189.29);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.326 0.052 185.119);
--primary-foreground: oklch(0.809 0.132 184.811);
--secondary: oklch(0.242 0.077 19.761);
--secondary-foreground: oklch(0.747 0.113 13.71);
--accent: oklch(0.242 0.077 19.761);
--accent-foreground: oklch(0.747 0.113 13.71);
--destructive: oklch(0.418 0.147 33.894);
--destructive-foreground: oklch(0.892 0.055 34.365);
--ring: oklch(0.326 0.052 185.119);
--chart-1: oklch(0.326 0.052 185.119);
--chart-2: oklch(0.242 0.077 19.761);
--chart-3: oklch(0.242 0.077 19.761);
--chart-4: oklch(0.272 0.09 20.391);
--chart-5: oklch(0.329 0.053 184.946);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 188.942);
--foreground: oklch(0.979 0.003 190.005);
--muted: oklch(0.166 0.006 10.864);
--muted-foreground: oklch(0.701 0.011 10.439);
--popover: oklch(0.143 0.015 188.942);
--popover-foreground: oklch(0.979 0.003 190.005);
--card: oklch(0.143 0.015 188.942);
--card-foreground: oklch(0.979 0.003 190.005);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.326 0.052 185.119);
--primary-foreground: oklch(0.809 0.132 184.811);
--secondary: oklch(0.242 0.077 19.761);
--secondary-foreground: oklch(0.747 0.113 13.71);
--accent: oklch(0.242 0.077 19.761);
--accent-foreground: oklch(0.747 0.113 13.71);
--destructive: oklch(0.656 0.216 34.445);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.326 0.052 185.119);
--chart-1: oklch(0.326 0.052 185.119);
--chart-2: oklch(0.242 0.077 19.761);
--chart-3: oklch(0.242 0.077 19.761);
--chart-4: oklch(0.272 0.09 20.391);
--chart-5: oklch(0.329 0.053 184.946);
}