Ginseng is a shadcn/ui theme built around a vivid purple primary color (#e13dfa) with muted light purple accents (#d0bad4). The light mode uses a neutral background (#fcf6fd). Dark mode keeps the vivid purple primary (#e13dfa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf6fdghostwhite | #000000black |
| Foreground | #040104black | #f9f5faghostwhite |
| Card | #fbf2fdghostwhite | #030303black |
| Card foreground | #000000black | #fbf8fbsnow |
| Popover | #fbf2fdghostwhite | #030303black |
| Popover foreground | #000000black | #fbf8fbsnow |
| Primary | #e13dfamediumorchid | #e13dfamediumorchid |
| Primary foreground | #040005black | #040005black |
| Secondary | #ded2e0gainsboro | #181618black |
| Secondary foreground | #48344bdarkslategray | #b2adb3darkgray |
| Muted | #e7dee8gainsboro | #201721black |
| Muted foreground | #664e6adimgray | #ad95b1darkgray |
| Accent | #d0bad4thistle | #302531darkslategray |
| Accent foreground | #362338darkslategray | #cabccdsilver |
| Destructive | #711a04maroon | #ec3609orangered |
| Destructive foreground | #fcbbablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e13dfamediumorchid | #e13dfamediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Ginseng in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.011 321.624);
--foreground: oklch(0.083 0.025 323.87);
--muted: oklch(0.91 0.017 321.646);
--muted-foreground: oklch(0.459 0.053 321.893);
--popover: oklch(0.971 0.017 321.641);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.017 321.641);
--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.677 0.28 321.882);
--primary-foreground: oklch(0.079 0.035 324.759);
--secondary: oklch(0.877 0.023 321.664);
--secondary-foreground: oklch(0.358 0.047 321.928);
--accent: oklch(0.816 0.043 321.737);
--accent-foreground: oklch(0.289 0.045 321.981);
--destructive: oklch(0.364 0.125 34.342);
--destructive-foreground: oklch(0.849 0.078 34.488);
--ring: oklch(0.677 0.28 321.882);
--chart-1: oklch(0.677 0.28 321.882);
--chart-2: oklch(0.877 0.023 321.664);
--chart-3: oklch(0.816 0.043 321.737);
--chart-4: oklch(0.902 0.018 321.648);
--chart-5: oklch(0.68 0.285 321.838);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.007 321.613);
--muted: oklch(0.22 0.025 321.885);
--muted-foreground: oklch(0.701 0.048 321.777);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.005 321.606);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.005 321.606);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.677 0.28 321.882);
--primary-foreground: oklch(0.079 0.035 324.759);
--secondary: oklch(0.203 0.004 321.652);
--secondary-foreground: oklch(0.753 0.011 321.632);
--accent: oklch(0.283 0.026 321.841);
--accent-foreground: oklch(0.812 0.028 321.686);
--destructive: oklch(0.616 0.222 33.205);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.28 321.882);
--chart-1: oklch(0.677 0.28 321.882);
--chart-2: oklch(0.203 0.004 321.652);
--chart-3: oklch(0.283 0.026 321.841);
--chart-4: oklch(0.236 0.006 321.658);
--chart-5: oklch(0.68 0.285 321.838);
}