Apprehensive is a shadcn/ui theme built around a vivid green primary color (#6ceb5c) with vivid red accents (#eb5c6c). The light mode uses a neutral background (#f8fcf7). Dark mode keeps the vivid green primary (#6ceb5c) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf7mintcream | #040703black |
| Foreground | #060f05black | #ffffffwhite |
| Card | #f4fbf4whitesmoke | #050b05black |
| Card foreground | #050b04black | #ffffffwhite |
| Popover | #f8fcf7mintcream | #040703black |
| Popover foreground | #060f05black | #ffffffwhite |
| Primary | #6ceb5clightgreen | #6ceb5clightgreen |
| Primary foreground | #041202black | #041202black |
| Secondary | #5c6cebroyalblue | #5c6cebroyalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6e8f4lavender | #0b0c19black |
| Muted foreground | #3b3d4adarkslategray | #b5b7c4silver |
| Accent | #eb5c6cindianred | #eb5c6cindianred |
| Accent foreground | #120204black | #120204black |
| Destructive | #b30c00firebrick | #ff1100red |
| Destructive foreground | #ffe7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6ceb5clightgreen | #6ceb5clightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 12.49:1 | AAA |
| Secondary button | 4.36:1 | AA Large |
| Muted text | 8.80:1 | AAA |
| Accent | 6.04:1 | AA |
| Destructive | 6.02:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 12.49:1 | AAA |
| Secondary button | 4.36:1 | AA Large |
| Muted text | 9.73:1 | AAA |
| Accent | 6.04:1 | AA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Apprehensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 142.084);
--foreground: oklch(0.156 0.027 140.786);
--muted: oklch(0.932 0.017 280.039);
--muted-foreground: oklch(0.362 0.022 279.296);
--popover: oklch(0.988 0.008 142.084);
--popover-foreground: oklch(0.156 0.027 140.786);
--card: oklch(0.981 0.012 142.07);
--card-foreground: oklch(0.14 0.023 140.594);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.838 0.215 141.399);
--primary-foreground: oklch(0.163 0.042 140.038);
--secondary: oklch(0.587 0.19 273.405);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.663 0.177 16.403);
--accent-foreground: oklch(0.128 0.036 12.337);
--destructive: oklch(0.484 0.194 30.052);
--destructive-foreground: oklch(0.947 0.026 22.542);
--ring: oklch(0.838 0.215 141.399);
--chart-1: oklch(0.838 0.215 141.399);
--chart-2: oklch(0.587 0.19 273.405);
--chart-3: oklch(0.663 0.177 16.403);
--chart-4: oklch(0.62 0.173 274.539);
--chart-5: oklch(0.844 0.222 141.401);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.016 140.881);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.027 277.218);
--muted-foreground: oklch(0.782 0.018 279.957);
--popover: oklch(0.121 0.016 140.881);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.019 140.886);
--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.838 0.215 141.399);
--primary-foreground: oklch(0.163 0.042 140.038);
--secondary: oklch(0.587 0.19 273.405);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.663 0.177 16.403);
--accent-foreground: oklch(0.128 0.036 12.337);
--destructive: oklch(0.631 0.255 29.797);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.838 0.215 141.399);
--chart-1: oklch(0.838 0.215 141.399);
--chart-2: oklch(0.587 0.19 273.405);
--chart-3: oklch(0.663 0.177 16.403);
--chart-4: oklch(0.62 0.173 274.539);
--chart-5: oklch(0.844 0.222 141.401);
}