Trove is a shadcn/ui theme built around a vivid indigo primary color (#2f0ca1) with vivid green accents (#7ea10c). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid indigo primary (#2f0ca1) on an indigo-tinted background (#08070e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #08070eblack |
| Foreground | #040208black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #08070eblack |
| Card foreground | #040208black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #08070eblack |
| Popover foreground | #040208black | #fcfcfdwhite |
| Primary | #2f0ca1indigo | #2f0ca1indigo |
| Primary foreground | #e9e3fdlavender | #e9e3fdlavender |
| Secondary | #7ea10colive | #7ea10colive |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8eae1beige | #1c1e15black |
| Muted foreground | #555945darkolivegreen | #b5baa6darkgray |
| Accent | #7ea10colive | #7ea10colive |
| Accent foreground | #000000black | #000000black |
| Destructive | #750e0amaroon | #e61b14crimson |
| Destructive foreground | #f9bbb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f0ca1indigo | #2f0ca1indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 9.98:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.01:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 9.98:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 4.63:1 | AA |
Paste this into your globals.css to use Trove in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 296.938);
--foreground: oklch(0.099 0.02 296.554);
--muted: oklch(0.933 0.012 117.319);
--muted-foreground: oklch(0.455 0.033 118.384);
--popover: oklch(0.979 0.008 296.938);
--popover-foreground: oklch(0.099 0.02 296.554);
--card: oklch(0.979 0.008 296.938);
--card-foreground: oklch(0.099 0.02 296.554);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.206 277.813);
--primary-foreground: oklch(0.927 0.036 296.378);
--secondary: oklch(0.66 0.161 123.794);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.161 123.794);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.362 0.137 28.642);
--destructive-foreground: oklch(0.847 0.072 20.954);
--ring: oklch(0.351 0.206 277.813);
--chart-1: oklch(0.351 0.206 277.813);
--chart-2: oklch(0.66 0.161 123.794);
--chart-3: oklch(0.66 0.161 123.794);
--chart-4: oklch(0.702 0.171 123.858);
--chart-5: oklch(0.351 0.21 276.918);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.016 296.161);
--foreground: oklch(0.991 0.002 297.051);
--muted: oklch(0.23 0.017 118.446);
--muted-foreground: oklch(0.78 0.029 117.747);
--popover: oklch(0.134 0.016 296.161);
--popover-foreground: oklch(0.991 0.002 297.051);
--card: oklch(0.134 0.016 296.161);
--card-foreground: oklch(0.991 0.002 297.051);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.206 277.813);
--primary-foreground: oklch(0.927 0.036 296.378);
--secondary: oklch(0.66 0.161 123.794);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.161 123.794);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.589 0.23 29.053);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.206 277.813);
--chart-1: oklch(0.351 0.206 277.813);
--chart-2: oklch(0.66 0.161 123.794);
--chart-3: oklch(0.66 0.161 123.794);
--chart-4: oklch(0.702 0.171 123.858);
--chart-5: oklch(0.351 0.21 276.918);
}