Descriptive is a shadcn/ui theme built around a vivid green primary color (#27b508) with vivid green accents (#08b53f). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#27b508) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #000000black |
| Foreground | #020401black | #f9fcf8mintcream |
| Card | #f5fbf3whitesmoke | #030303black |
| Card foreground | #000000black | #fcfdfbsnow |
| Popover | #f5fbf3whitesmoke | #030303black |
| Popover foreground | #000000black | #fcfdfbsnow |
| Primary | #27b508limegreen | #27b508limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7eb508olivedrab | #7eb508olivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #dde4cegainsboro | #2a311bdarkslategray |
| Muted foreground | #41443bdarkslategray | #c1c4bbsilver |
| Accent | #08b53flimegreen | #08b53flimegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b31c14firebrick | #e12319crimson |
| Destructive foreground | #fefbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #27b508limegreen | #27b508limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 2.72:1 | Fail |
| Secondary button | 8.51:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 2.72:1 | Fail |
| Destructive | 6.59:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 2.72:1 | Fail |
| Secondary button | 8.51:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 2.72:1 | Fail |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Descriptive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 139.983);
--foreground: oklch(0.099 0.02 138.05);
--muted: oklch(0.907 0.031 121.326);
--muted-foreground: oklch(0.382 0.015 121.43);
--popover: oklch(0.982 0.013 139.979);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.013 139.979);
--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.674 0.221 141.348);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.708 0.184 128.307);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.202 146.383);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.493 0.186 29.119);
--destructive-foreground: oklch(0.99 0.004 20.942);
--ring: oklch(0.674 0.221 141.348);
--chart-1: oklch(0.674 0.221 141.348);
--chart-2: oklch(0.708 0.184 128.307);
--chart-3: oklch(0.674 0.202 146.383);
--chart-4: oklch(0.75 0.196 128.374);
--chart-5: oklch(0.682 0.225 141.425);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.006 139.986);
--muted: oklch(0.301 0.039 123.03);
--muted-foreground: oklch(0.815 0.013 121.025);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.003 139.988);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.003 139.988);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.221 141.348);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.708 0.184 128.307);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.202 146.383);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.583 0.222 29.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.221 141.348);
--chart-1: oklch(0.674 0.221 141.348);
--chart-2: oklch(0.708 0.184 128.307);
--chart-3: oklch(0.674 0.202 146.383);
--chart-4: oklch(0.75 0.196 128.374);
--chart-5: oklch(0.682 0.225 141.425);
}