Great is a shadcn/ui theme built around a muted deep indigo primary color (#423d57) with muted deep green accents (#52573d). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the muted deep indigo primary (#423d57) on an indigo-tinted background (#05040c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #05040cblack |
| Foreground | #070416black | #ffffffwhite |
| Card | #f8f7fdghostwhite | #05040cblack |
| Card foreground | #070416black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #05040cblack |
| Popover foreground | #070416black | #ffffffwhite |
| Primary | #423d57darkslategray | #423d57darkslategray |
| Primary foreground | #e0dee8gainsboro | #e0dee8gainsboro |
| Secondary | #52573ddarkolivegreen | #52573ddarkolivegreen |
| Secondary foreground | #e6e8degainsboro | #e6e8degainsboro |
| Muted | #e4e5e1gainsboro | #1d1e1ablack |
| Muted foreground | #454936darkslategray | #c5c9b6silver |
| Accent | #52573ddarkolivegreen | #52573ddarkolivegreen |
| Accent foreground | #e6e8degainsboro | #e6e8degainsboro |
| Destructive | #8f390asaddlebrown | #ef681fchocolate |
| Destructive foreground | #fcdfcfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #423d57darkslategray | #423d57darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 7.32:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 9.91:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Great in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 295.411);
--foreground: oklch(0.127 0.042 291.287);
--muted: oklch(0.919 0.005 115.67);
--muted-foreground: oklch(0.397 0.031 117.029);
--popover: oklch(0.978 0.009 295.411);
--popover-foreground: oklch(0.127 0.042 291.287);
--card: oklch(0.978 0.009 295.411);
--card-foreground: oklch(0.127 0.042 291.287);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.045 293.26);
--primary-foreground: oklch(0.905 0.014 295.298);
--secondary: oklch(0.445 0.042 117.325);
--secondary-foreground: oklch(0.927 0.014 115.848);
--accent: oklch(0.445 0.042 117.325);
--accent-foreground: oklch(0.927 0.014 115.848);
--destructive: oklch(0.457 0.129 43.195);
--destructive-foreground: oklch(0.923 0.038 50.156);
--ring: oklch(0.375 0.045 293.26);
--chart-1: oklch(0.375 0.045 293.26);
--chart-2: oklch(0.445 0.042 117.325);
--chart-3: oklch(0.445 0.042 117.325);
--chart-4: oklch(0.477 0.045 117.348);
--chart-5: oklch(0.37 0.053 292.798);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.022 294.558);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.006 116.085);
--muted-foreground: oklch(0.827 0.026 116.165);
--popover: oklch(0.114 0.022 294.558);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.114 0.022 294.558);
--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.375 0.045 293.26);
--primary-foreground: oklch(0.905 0.014 295.298);
--secondary: oklch(0.445 0.042 117.325);
--secondary-foreground: oklch(0.927 0.014 115.848);
--accent: oklch(0.445 0.042 117.325);
--accent-foreground: oklch(0.927 0.014 115.848);
--destructive: oklch(0.676 0.184 43.901);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.375 0.045 293.26);
--chart-1: oklch(0.375 0.045 293.26);
--chart-2: oklch(0.445 0.042 117.325);
--chart-3: oklch(0.445 0.042 117.325);
--chart-4: oklch(0.477 0.045 117.348);
--chart-5: oklch(0.37 0.053 292.798);
}