Secretion is a shadcn/ui theme built around a light green primary color (#dfeedd) with muted light green accents (#cadfc8). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the light green primary (#dfeedd) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #020302black |
| Foreground | #041103black | #fcfdfbsnow |
| Card | #f9fcf8mintcream | #020302black |
| Card foreground | #041103black | #fcfdfbsnow |
| Popover | #f9fcf8mintcream | #020302black |
| Popover foreground | #041103black | #fcfdfbsnow |
| Primary | #dfeeddgainsboro | #dfeeddgainsboro |
| Primary foreground | #132211black | #132211black |
| Secondary | #e7efe7beige | #141a14black |
| Secondary foreground | #1a2518black | #a6bca4darkgray |
| Muted | #e1e5e0gainsboro | #1a1f1ablack |
| Muted foreground | #5e655ddimgray | #9ba29adarkgray |
| Accent | #cadfc8lightgrey | #253824darkslategray |
| Accent foreground | #2d4a2bdarkslategray | #bdd3bbsilver |
| Destructive | #9d1602darkred | #f72302orangered |
| Destructive foreground | #ffd8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfeeddgainsboro | #dfeeddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 13.73:1 | AAA |
| Secondary button | 13.51:1 | AAA |
| Muted text | 4.73:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 13.73:1 | AAA |
| Secondary button | 8.69:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Secretion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 143.109);
--foreground: oklch(0.16 0.037 141.227);
--muted: oklch(0.918 0.008 143.092);
--muted-foreground: oklch(0.497 0.015 142.993);
--popover: oklch(0.987 0.005 143.109);
--popover-foreground: oklch(0.16 0.037 141.227);
--card: oklch(0.987 0.005 143.109);
--card-foreground: oklch(0.16 0.037 141.227);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.932 0.027 142.999);
--primary-foreground: oklch(0.231 0.037 142.374);
--secondary: oklch(0.943 0.013 143.068);
--secondary-foreground: oklch(0.248 0.028 142.602);
--accent: oklch(0.882 0.039 142.926);
--accent-foreground: oklch(0.379 0.063 142.34);
--destructive: oklch(0.446 0.17 31.448);
--destructive-foreground: oklch(0.912 0.045 28.26);
--ring: oklch(0.932 0.027 142.999);
--chart-1: oklch(0.932 0.027 142.999);
--chart-2: oklch(0.943 0.013 143.068);
--chart-3: oklch(0.882 0.039 142.926);
--chart-4: oklch(0.965 0.008 143.094);
--chart-5: oklch(0.933 0.029 142.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.01 142.191);
--foreground: oklch(0.993 0.003 143.119);
--muted: oklch(0.231 0.012 142.893);
--muted-foreground: oklch(0.704 0.014 143.043);
--popover: oklch(0.095 0.01 142.191);
--popover-foreground: oklch(0.993 0.003 143.119);
--card: oklch(0.095 0.01 142.191);
--card-foreground: oklch(0.993 0.003 143.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.932 0.027 142.999);
--primary-foreground: oklch(0.231 0.037 142.374);
--secondary: oklch(0.21 0.016 142.765);
--secondary-foreground: oklch(0.771 0.041 142.884);
--accent: oklch(0.318 0.043 142.494);
--accent-foreground: oklch(0.844 0.042 142.902);
--destructive: oklch(0.624 0.242 30.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.932 0.027 142.999);
--chart-1: oklch(0.932 0.027 142.999);
--chart-2: oklch(0.21 0.016 142.765);
--chart-3: oklch(0.318 0.043 142.494);
--chart-4: oklch(0.245 0.021 142.728);
--chart-5: oklch(0.933 0.029 142.986);
}