Insistent is a shadcn/ui theme built around a vivid deep green primary color (#065b0f) with vivid deep teal accents (#065b39). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#065b0f) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020803black |
| Foreground | #061407black | #fbfdfcwhite |
| Card | #ffffffwhite | #020803black |
| Card foreground | #061407black | #fbfdfcwhite |
| Popover | #ffffffwhite | #020803black |
| Popover foreground | #061407black | #fbfdfcwhite |
| Primary | #065b0fdarkgreen | #065b0fdarkgreen |
| Primary foreground | #9bf8a4palegreen | #9bf8a4palegreen |
| Secondary | #285b06darkgreen | #285b06darkgreen |
| Secondary foreground | #c0f89bpalegreen | #c0f89bpalegreen |
| Muted | #e2e8degainsboro | #1b2117black |
| Muted foreground | #4f514ddarkslategray | #b0b2aedarkgray |
| Accent | #065b39darkslategray | #065b39darkslategray |
| Accent foreground | #9bf8d3aquamarine | #9bf8d3aquamarine |
| Destructive | #b21406firebrick | #f94939tomato |
| Destructive foreground | #feedeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #065b0fdarkgreen | #065b0fdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 6.65:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 6.65:1 | AA |
| Muted text | 7.67:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Insistent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.033 146.634);
--muted: oklch(0.924 0.016 132.487);
--muted-foreground: oklch(0.431 0.006 132.457);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.033 146.634);
--card: oklch(1 0 180);
--card-foreground: oklch(0.172 0.033 146.634);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.409 0.13 143.608);
--primary-foreground: oklch(0.9 0.145 146.584);
--secondary: oklch(0.418 0.122 136.822);
--secondary-foreground: oklch(0.919 0.134 133.628);
--accent: oklch(0.415 0.093 159.103);
--accent-foreground: oklch(0.911 0.104 166.754);
--destructive: oklch(0.487 0.19 30.131);
--destructive-foreground: oklch(0.959 0.019 23.786);
--ring: oklch(0.409 0.13 143.608);
--chart-1: oklch(0.409 0.13 143.608);
--chart-2: oklch(0.418 0.122 136.822);
--chart-3: oklch(0.415 0.093 159.103);
--chart-4: oklch(0.463 0.136 137.005);
--chart-5: oklch(0.413 0.133 143.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.023 147.286);
--foreground: oklch(0.993 0.003 148.559);
--muted: oklch(0.239 0.022 133.093);
--muted-foreground: oklch(0.76 0.005 132.407);
--popover: oklch(0.122 0.023 147.286);
--popover-foreground: oklch(0.993 0.003 148.559);
--card: oklch(0.122 0.023 147.286);
--card-foreground: oklch(0.993 0.003 148.559);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.409 0.13 143.608);
--primary-foreground: oklch(0.9 0.145 146.584);
--secondary: oklch(0.418 0.122 136.822);
--secondary-foreground: oklch(0.919 0.134 133.628);
--accent: oklch(0.415 0.093 159.103);
--accent-foreground: oklch(0.911 0.104 166.754);
--destructive: oklch(0.657 0.215 29.313);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.409 0.13 143.608);
--chart-1: oklch(0.409 0.13 143.608);
--chart-2: oklch(0.418 0.122 136.822);
--chart-3: oklch(0.415 0.093 159.103);
--chart-4: oklch(0.463 0.136 137.005);
--chart-5: oklch(0.413 0.133 143.542);
}