Good is a shadcn/ui theme built around a vivid violet primary color (#5010da) with vivid green accents (#10da50). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid violet primary (#5010da) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020104black |
| Foreground | #000000black | #f7f5f9whitesmoke |
| Card | #fcfcfdwhite | #020104black |
| Card foreground | #000000black | #f7f5f9whitesmoke |
| Popover | #fcfcfdwhite | #020104black |
| Popover foreground | #000000black | #f7f5f9whitesmoke |
| Primary | #5010dablueviolet | #5010dablueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #da5010chocolate | #da5010chocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8ded9gainsboro | #261c17black |
| Muted foreground | #4c3f38darkslategray | #c7b9b3silver |
| Accent | #10da50limegreen | #10da50limegreen |
| Accent foreground | #021c0ablack | #021c0ablack |
| Destructive | #cb0e01firebrick | #e41001red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5010dablueviolet | #5010dablueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 7.63:1 | AAA |
| Accent | 9.53:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 8.74:1 | AAA |
| Accent | 9.53:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Good in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 300.727);
--foreground: oklch(0 0 0);
--muted: oklch(0.906 0.013 46.701);
--muted-foreground: oklch(0.379 0.022 46.295);
--popover: oklch(0.991 0.002 300.727);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 300.727);
--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.448 0.257 282.788);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.612 0.185 40.182);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.775 0.23 146.674);
--accent-foreground: oklch(0.202 0.049 151.707);
--destructive: oklch(0.532 0.213 29.91);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.257 282.788);
--chart-1: oklch(0.448 0.257 282.788);
--chart-2: oklch(0.612 0.185 40.182);
--chart-3: oklch(0.775 0.23 146.674);
--chart-4: oklch(0.641 0.194 40.089);
--chart-5: oklch(0.45 0.262 281.914);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.013 301.041);
--foreground: oklch(0.973 0.005 300.676);
--muted: oklch(0.237 0.018 46.135);
--muted-foreground: oklch(0.795 0.018 46.614);
--popover: oklch(0.082 0.013 301.041);
--popover-foreground: oklch(0.973 0.005 300.676);
--card: oklch(0.082 0.013 301.041);
--card-foreground: oklch(0.973 0.005 300.676);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.448 0.257 282.788);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.612 0.185 40.182);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.775 0.23 146.674);
--accent-foreground: oklch(0.202 0.049 151.707);
--destructive: oklch(0.581 0.234 29.837);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.257 282.788);
--chart-1: oklch(0.448 0.257 282.788);
--chart-2: oklch(0.612 0.185 40.182);
--chart-3: oklch(0.775 0.23 146.674);
--chart-4: oklch(0.641 0.194 40.089);
--chart-5: oklch(0.45 0.262 281.914);
}