Rediscovery is a shadcn/ui theme built around a deep green primary color (#465a2b) with deep violet accents (#3e2b5a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#465a2b) on a green-tinted background (#0b0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0e07black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0d1109black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0e07black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #465a2bdarkolivegreen | #465a2bdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3e2b5adarkslategray | #3e2b5adarkslategray |
| Secondary foreground | #d9cfe8gainsboro | #d9cfe8gainsboro |
| Muted | #dbd9degainsboro | #232126black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #3e2b5adarkslategray | #3e2b5adarkslategray |
| Accent foreground | #d9cfe8gainsboro | #d9cfe8gainsboro |
| Destructive | #6e300csaddlebrown | #e16219chocolate |
| Destructive foreground | #f7cdb6peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #465a2bdarkolivegreen | #465a2bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 8.25:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 5.97:1 | AA |
Paste this into your globals.css to use Rediscovery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.888 0.007 304.934);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.438 0.074 127.761);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.335 0.081 301.383);
--secondary-foreground: oklch(0.87 0.036 304.477);
--accent: oklch(0.335 0.081 301.383);
--accent-foreground: oklch(0.87 0.036 304.477);
--destructive: oklch(0.389 0.099 46.183);
--destructive-foreground: oklch(0.879 0.057 51.757);
--ring: oklch(0.438 0.074 127.761);
--chart-1: oklch(0.438 0.074 127.761);
--chart-2: oklch(0.335 0.081 301.383);
--chart-3: oklch(0.335 0.081 301.383);
--chart-4: oklch(0.36 0.089 301.298);
--chart-5: oklch(0.443 0.079 127.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.015 125.643);
--foreground: oklch(0.994 0.002 125.074);
--muted: oklch(0.253 0.01 304.513);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.156 0.015 125.643);
--popover-foreground: oklch(0.994 0.002 125.074);
--card: oklch(0.17 0.018 126.449);
--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.438 0.074 127.761);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.335 0.081 301.383);
--secondary-foreground: oklch(0.87 0.036 304.477);
--accent: oklch(0.335 0.081 301.383);
--accent-foreground: oklch(0.87 0.036 304.477);
--destructive: oklch(0.646 0.176 44.833);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.438 0.074 127.761);
--chart-1: oklch(0.438 0.074 127.761);
--chart-2: oklch(0.335 0.081 301.383);
--chart-3: oklch(0.335 0.081 301.383);
--chart-4: oklch(0.36 0.089 301.298);
--chart-5: oklch(0.443 0.079 127.984);
}