Catalyst is a shadcn/ui theme built around a neutral gray primary color (#748586) with neutral gray accents (#858674). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the neutral gray primary (#748586) on a teal-tinted background (#060e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #060e0eblack |
| Foreground | #010404black | #f9fbfbghostwhite |
| Card | #f8fcfcmintcream | #081112black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fcfdfdwhite | #060e0eblack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #748586slategray | #748586slategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #867485gray | #867485gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9d8e8gainsboro | #271627black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #858674gray | #858674gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #880c0cdarkred | #e11414crimson |
| Destructive foreground | #fbcbcbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #748586slategray | #748586slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 5.43:1 | AA |
| Secondary button | 4.32:1 | AA Large |
| Muted text | 4.90:1 | AA |
| Accent | 5.64:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 5.43:1 | AA |
| Secondary button | 4.32:1 | AA Large |
| Muted text | 6.77:1 | AA |
| Accent | 5.64:1 | AA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Catalyst in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 200.867);
--foreground: oklch(0.1 0.013 198.341);
--muted: oklch(0.9 0.03 327.339);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.994 0.002 200.867);
--popover-foreground: oklch(0.1 0.013 198.341);
--card: oklch(0.987 0.004 200.843);
--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.603 0.019 200.52);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.581 0.033 327.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.026 109.47);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.4 0.156 28.125);
--destructive-foreground: oklch(0.884 0.054 18.214);
--ring: oklch(0.603 0.019 200.52);
--chart-1: oklch(0.603 0.019 200.52);
--chart-2: oklch(0.581 0.033 327.543);
--chart-3: oklch(0.613 0.026 109.47);
--chart-4: oklch(0.607 0.032 327.507);
--chart-5: oklch(0.609 0.027 200.395);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.012 199.837);
--foreground: oklch(0.986 0.002 200.86);
--muted: oklch(0.231 0.041 328.552);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.155 0.012 199.837);
--popover-foreground: oklch(0.986 0.002 200.86);
--card: oklch(0.169 0.014 200.012);
--card-foreground: oklch(0.993 0.001 200.875);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.603 0.019 200.52);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.581 0.033 327.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.026 109.47);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.577 0.229 28.531);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.603 0.019 200.52);
--chart-1: oklch(0.603 0.019 200.52);
--chart-2: oklch(0.581 0.033 327.543);
--chart-3: oklch(0.613 0.026 109.47);
--chart-4: oklch(0.607 0.032 327.507);
--chart-5: oklch(0.609 0.027 200.395);
}