Great is a shadcn/ui theme built around a neutral gray primary color (#7c8d87) with neutral gray accents (#8d877c). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7c8d87) on a teal-tinted background (#04100c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04100cblack |
| Foreground | #04110cblack | #ffffffwhite |
| Card | #ffffffwhite | #04100cblack |
| Card foreground | #04110cblack | #ffffffwhite |
| Popover | #ffffffwhite | #04100cblack |
| Popover foreground | #04110cblack | #ffffffwhite |
| Primary | #7c8d87gray | #7c8d87gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #877c8dgray | #877c8dgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebeaeclavender | #151315black |
| Muted foreground | #5a575cdimgray | #a7a3a8darkgray |
| Accent | #8d877cgray | #8d877cgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #81300esaddlebrown | #e9642bchocolate |
| Destructive foreground | #f9d6c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c8d87gray | #7c8d87gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 5.30:1 | AA |
| Muted text | 5.91:1 | AA |
| Accent | 5.91:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 5.30:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 5.91:1 | AA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Great in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.023 171.774);
--muted: oklch(0.937 0.003 314.811);
--muted-foreground: oklch(0.46 0.01 314.725);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.023 171.774);
--card: oklch(1 0 180);
--card-foreground: oklch(0.162 0.023 171.774);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.628 0.022 173.552);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.602 0.029 314.595);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.627 0.018 84.593);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.422 0.12 40.562);
--destructive-foreground: oklch(0.903 0.044 44.556);
--ring: oklch(0.628 0.022 173.552);
--chart-1: oklch(0.628 0.022 173.552);
--chart-2: oklch(0.602 0.029 314.595);
--chart-3: oklch(0.627 0.018 84.593);
--chart-4: oklch(0.629 0.027 314.62);
--chart-5: oklch(0.635 0.03 173.112);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.021 171.969);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.005 314.71);
--muted-foreground: oklch(0.72 0.009 314.769);
--popover: oklch(0.16 0.021 171.969);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.021 171.969);
--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.628 0.022 173.552);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.602 0.029 314.595);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.627 0.018 84.593);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.661 0.179 41.275);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.628 0.022 173.552);
--chart-1: oklch(0.628 0.022 173.552);
--chart-2: oklch(0.602 0.029 314.595);
--chart-3: oklch(0.627 0.018 84.593);
--chart-4: oklch(0.629 0.027 314.62);
--chart-5: oklch(0.635 0.03 173.112);
}