Trove is a shadcn/ui theme built around a muted light violet primary color (#d8d3e4) with muted light green accents (#d3e4d8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d8d3e4) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #040307black |
| Foreground | #06020dblack | #ffffffwhite |
| Card | #fcfbfewhite | #040307black |
| Card foreground | #06020dblack | #ffffffwhite |
| Popover | #fcfbfewhite | #040307black |
| Popover foreground | #06020dblack | #ffffffwhite |
| Primary | #d8d3e4gainsboro | #d8d3e4gainsboro |
| Primary foreground | #3c3252darkslategray | #3c3252darkslategray |
| Secondary | #e4d8d3gainsboro | #e4d8d3gainsboro |
| Secondary foreground | #523c32darkolivegreen | #523c32darkolivegreen |
| Muted | #eee9e7linen | #181311black |
| Muted foreground | #605a57dimgray | #a8a29fdarkgray |
| Accent | #d3e4d8gainsboro | #d3e4d8gainsboro |
| Accent foreground | #32523cdarkslategray | #32523cdarkslategray |
| Destructive | #bc0701firebrick | #e90901red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8d3e4gainsboro | #d8d3e4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Trove in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 300.689);
--foreground: oklch(0.106 0.035 300.838);
--muted: oklch(0.938 0.006 46.785);
--muted-foreground: oklch(0.473 0.009 46.641);
--popover: oklch(0.989 0.005 300.689);
--popover-foreground: oklch(0.106 0.035 300.838);
--card: oklch(0.989 0.005 300.689);
--card-foreground: oklch(0.106 0.035 300.838);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.024 300.316);
--primary-foreground: oklch(0.344 0.056 297.974);
--secondary: oklch(0.891 0.015 46.672);
--secondary-foreground: oklch(0.379 0.035 46.003);
--accent: oklch(0.902 0.024 156.024);
--accent-foreground: oklch(0.408 0.053 153.658);
--destructive: oklch(0.501 0.203 29.566);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.024 300.316);
--chart-1: oklch(0.875 0.024 300.316);
--chart-2: oklch(0.891 0.015 46.672);
--chart-3: oklch(0.902 0.024 156.024);
--chart-4: oklch(0.914 0.012 46.715);
--chart-5: oklch(0.873 0.027 300.257);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.015 301.025);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.009 46.389);
--muted-foreground: oklch(0.715 0.008 46.725);
--popover: oklch(0.104 0.015 301.025);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.104 0.015 301.025);
--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.875 0.024 300.316);
--primary-foreground: oklch(0.344 0.056 297.974);
--secondary: oklch(0.891 0.015 46.672);
--secondary-foreground: oklch(0.379 0.035 46.003);
--accent: oklch(0.902 0.024 156.024);
--accent-foreground: oklch(0.408 0.053 153.658);
--destructive: oklch(0.589 0.239 29.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.024 300.316);
--chart-1: oklch(0.875 0.024 300.316);
--chart-2: oklch(0.891 0.015 46.672);
--chart-3: oklch(0.902 0.024 156.024);
--chart-4: oklch(0.914 0.012 46.715);
--chart-5: oklch(0.873 0.027 300.257);
}