Secret is a shadcn/ui theme built around a vivid deep green primary color (#252a04) with muted light green accents (#dadbcc). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the vivid deep green primary (#252a04) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #030302black |
| Foreground | #141603black | #fbfcf8snow |
| Card | #fbfbf8snow | #030302black |
| Card foreground | #141603black | #fbfcf8snow |
| Popover | #fbfbf8snow | #030302black |
| Popover foreground | #141603black | #fbfcf8snow |
| Primary | #252a04black | #252a04black |
| Primary foreground | #cbe218greenyellow | #cbe218greenyellow |
| Secondary | #dadbcclightgrey | #24251dblack |
| Secondary foreground | #434530darkslategray | #c0c2b2silver |
| Muted | #f4f4f1whitesmoke | #0e0e0bblack |
| Muted foreground | #707359dimgray | #a3a68cdarkgray |
| Accent | #dadbcclightgrey | #24251dblack |
| Accent foreground | #434530darkslategray | #c0c2b2silver |
| Destructive | #d25614chocolate | #eb6924chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252a04black | #252a04black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.73:1 | AAA |
| Text on card | 17.73:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 4.43:1 | AA Large |
| Accent | 7.04:1 | AAA |
| Destructive | 4.12:1 | AA Large |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.53:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Secret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 111.859);
--foreground: oklch(0.194 0.037 114.907);
--muted: oklch(0.966 0.004 111.865);
--muted-foreground: oklch(0.546 0.04 113.124);
--popover: oklch(0.988 0.004 111.859);
--popover-foreground: oklch(0.194 0.037 114.907);
--card: oklch(0.988 0.004 111.859);
--card-foreground: oklch(0.194 0.037 114.907);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.27 0.056 115.961);
--primary-foreground: oklch(0.866 0.196 117.194);
--secondary: oklch(0.887 0.021 112.223);
--secondary-foreground: oklch(0.383 0.034 113.435);
--accent: oklch(0.887 0.021 112.223);
--accent-foreground: oklch(0.383 0.034 113.435);
--destructive: oklch(0.606 0.171 43.108);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.056 115.961);
--chart-1: oklch(0.27 0.056 115.961);
--chart-2: oklch(0.887 0.021 112.223);
--chart-3: oklch(0.887 0.021 112.223);
--chart-4: oklch(0.907 0.017 112.136);
--chart-5: oklch(0.272 0.058 116.051);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 112.523);
--foreground: oklch(0.989 0.005 111.874);
--muted: oklch(0.164 0.007 112.55);
--muted-foreground: oklch(0.716 0.037 112.749);
--popover: oklch(0.098 0.008 112.523);
--popover-foreground: oklch(0.989 0.005 111.874);
--card: oklch(0.098 0.008 112.523);
--card-foreground: oklch(0.989 0.005 111.874);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.27 0.056 115.961);
--primary-foreground: oklch(0.866 0.196 117.194);
--secondary: oklch(0.261 0.014 112.804);
--secondary-foreground: oklch(0.809 0.023 112.305);
--accent: oklch(0.261 0.014 112.804);
--accent-foreground: oklch(0.809 0.023 112.305);
--destructive: oklch(0.671 0.178 44.498);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.27 0.056 115.961);
--chart-1: oklch(0.27 0.056 115.961);
--chart-2: oklch(0.261 0.014 112.804);
--chart-3: oklch(0.261 0.014 112.804);
--chart-4: oklch(0.295 0.017 112.858);
--chart-5: oklch(0.272 0.058 116.051);
}