Innocent is a shadcn/ui theme built around a deep green primary color (#476426) with deep green accents (#286426). The light mode uses a neutral background (#fafdf7). Dark mode keeps the deep green primary (#476426) on a green-tinted background (#0b1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #0b1005black |
| Foreground | #0d1604black | #ffffffwhite |
| Card | #f8fcf2floralwhite | #0d1406black |
| Card foreground | #0b1203black | #ffffffwhite |
| Popover | #f8fcf2floralwhite | #0d1406black |
| Popover foreground | #0b1203black | #ffffffwhite |
| Primary | #476426darkolivegreen | #476426darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #646226darkolivegreen | #646226darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeedd8beige | #272711black |
| Muted foreground | #666552dimgray | #adad99darkgray |
| Accent | #286426forestgreen | #286426forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #993000saddlebrown | #ff6219orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #476426darkolivegreen | #476426darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.06:1 | AAA |
| Text on card | 18.35:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 5.01:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 7.54:1 | AAA |
| Text on background | 19.28:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 6.68:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Innocent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 127.227);
--foreground: oklch(0.185 0.038 128.898);
--muted: oklch(0.942 0.029 105.327);
--muted-foreground: oklch(0.502 0.03 105.792);
--popover: oklch(0.986 0.014 127.286);
--popover-foreground: oklch(0.168 0.034 127.773);
--card: oklch(0.986 0.014 127.286);
--card-foreground: oklch(0.168 0.034 127.773);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.465 0.095 130.346);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.484 0.081 107.229);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.448 0.113 142.853);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.463 0.148 39.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.465 0.095 130.346);
--chart-1: oklch(0.465 0.095 130.346);
--chart-2: oklch(0.484 0.081 107.229);
--chart-3: oklch(0.448 0.113 142.853);
--chart-4: oklch(0.521 0.088 107.244);
--chart-5: oklch(0.47 0.1 130.563);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.026 127.667);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.036 106.879);
--muted-foreground: oklch(0.742 0.027 105.433);
--popover: oklch(0.179 0.03 128.715);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.179 0.03 128.715);
--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.465 0.095 130.346);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.484 0.081 107.229);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.448 0.113 142.853);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.692 0.205 40.62);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.465 0.095 130.346);
--chart-1: oklch(0.465 0.095 130.346);
--chart-2: oklch(0.484 0.081 107.229);
--chart-3: oklch(0.448 0.113 142.853);
--chart-4: oklch(0.521 0.088 107.244);
--chart-5: oklch(0.47 0.1 130.563);
}