Ginseng is a shadcn/ui theme built around a deep teal primary color (#061411) with deep yellow accents (#141106). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the deep teal primary (#061411) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #000000black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f4fbfamintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f4fbfamintcream | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #061411black | #061411black |
| Primary foreground | #34b299lightseagreen | #34b299lightseagreen |
| Secondary | #110614black | #110614black |
| Secondary foreground | #c375d7orchid | #c375d7orchid |
| Muted | #e8daeclavender | #211325black |
| Muted foreground | #524455darkslategray | #b8aabbdarkgray |
| Accent | #141106black | #141106black |
| Accent foreground | #b29934peru | #b29934peru |
| Destructive | #831a02maroon | #f63004orangered |
| Destructive foreground | #fec5b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #061411black | #061411black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 8.00:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Ginseng in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 183.04);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.028 319.453);
--muted-foreground: oklch(0.407 0.033 319.463);
--popover: oklch(0.982 0.008 182.966);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.008 182.966);
--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.176 0.021 179.826);
--primary-foreground: oklch(0.689 0.115 176.258);
--secondary: oklch(0.147 0.036 319.771);
--secondary-foreground: oklch(0.682 0.161 319.379);
--accent: oklch(0.177 0.022 96.484);
--accent-foreground: oklch(0.686 0.121 94.759);
--destructive: oklch(0.397 0.143 33.342);
--destructive-foreground: oklch(0.872 0.067 32.892);
--ring: oklch(0.176 0.021 179.826);
--chart-1: oklch(0.176 0.021 179.826);
--chart-2: oklch(0.147 0.036 319.771);
--chart-3: oklch(0.177 0.022 96.484);
--chart-4: oklch(0.181 0.05 319.303);
--chart-5: oklch(0.177 0.022 179.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 183.134);
--muted: oklch(0.215 0.039 319.44);
--muted-foreground: oklch(0.755 0.028 319.455);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.176 0.021 179.826);
--primary-foreground: oklch(0.689 0.115 176.258);
--secondary: oklch(0.147 0.036 319.771);
--secondary-foreground: oklch(0.682 0.161 319.379);
--accent: oklch(0.177 0.022 96.484);
--accent-foreground: oklch(0.686 0.121 94.759);
--destructive: oklch(0.629 0.235 32.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.176 0.021 179.826);
--chart-1: oklch(0.176 0.021 179.826);
--chart-2: oklch(0.147 0.036 319.771);
--chart-3: oklch(0.177 0.022 96.484);
--chart-4: oklch(0.181 0.05 319.303);
--chart-5: oklch(0.177 0.022 179.692);
}