Octet is a shadcn/ui theme built around a vivid green primary color (#a8f485) with vivid green accents (#85f499). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid green primary (#a8f485) on a neutral background (#040802).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #040802black |
| Foreground | #040802black | #f9fbf9mintcream |
| Card | #f9fcf8mintcream | #040802black |
| Card foreground | #040802black | #f9fbf9mintcream |
| Popover | #f9fcf8mintcream | #040802black |
| Popover foreground | #040802black | #f9fbf9mintcream |
| Primary | #a8f485palegreen | #a8f485palegreen |
| Primary foreground | #194206darkgreen | #194206darkgreen |
| Secondary | #e0f485khaki | #e0f485khaki |
| Secondary foreground | #374206darkgreen | #374206darkgreen |
| Muted | #eff1e4beige | #181b0eblack |
| Muted foreground | #4a4b44darkslategray | #babbb4silver |
| Accent | #85f499lightgreen | #85f499lightgreen |
| Accent foreground | #064211darkgreen | #064211darkgreen |
| Destructive | #801b05maroon | #ec3209orangered |
| Destructive foreground | #fdc6balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8f485palegreen | #a8f485palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.60:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 9.04:1 | AAA |
| Accent | 8.60:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Octet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 135.452);
--foreground: oklch(0.126 0.024 133.602);
--muted: oklch(0.953 0.017 115.152);
--muted-foreground: oklch(0.409 0.012 115.354);
--popover: oklch(0.987 0.005 135.452);
--popover-foreground: oklch(0.126 0.024 133.602);
--card: oklch(0.987 0.005 135.452);
--card-foreground: oklch(0.126 0.024 133.602);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.894 0.163 136.475);
--primary-foreground: oklch(0.335 0.098 138.17);
--secondary: oklch(0.93 0.139 117.719);
--secondary-foreground: oklch(0.356 0.08 120.17);
--accent: oklch(0.88 0.162 148.281);
--accent-foreground: oklch(0.33 0.098 145.358);
--destructive: oklch(0.394 0.139 33.393);
--destructive-foreground: oklch(0.872 0.065 32.874);
--ring: oklch(0.894 0.163 136.475);
--chart-1: oklch(0.894 0.163 136.475);
--chart-2: oklch(0.93 0.139 117.719);
--chart-3: oklch(0.88 0.162 148.281);
--chart-4: oklch(0.937 0.124 117.362);
--chart-5: oklch(0.898 0.168 136.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.02 133.898);
--foreground: oklch(0.986 0.003 135.442);
--muted: oklch(0.214 0.024 116.89);
--muted-foreground: oklch(0.79 0.01 115.058);
--popover: oklch(0.124 0.02 133.898);
--popover-foreground: oklch(0.986 0.003 135.442);
--card: oklch(0.124 0.02 133.898);
--card-foreground: oklch(0.986 0.003 135.442);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.894 0.163 136.475);
--primary-foreground: oklch(0.335 0.098 138.17);
--secondary: oklch(0.93 0.139 117.719);
--secondary-foreground: oklch(0.356 0.08 120.17);
--accent: oklch(0.88 0.162 148.281);
--accent-foreground: oklch(0.33 0.098 145.358);
--destructive: oklch(0.613 0.225 32.61);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.163 136.475);
--chart-1: oklch(0.894 0.163 136.475);
--chart-2: oklch(0.93 0.139 117.719);
--chart-3: oklch(0.88 0.162 148.281);
--chart-4: oklch(0.937 0.124 117.362);
--chart-5: oklch(0.898 0.168 136.519);
}