Secret is a shadcn/ui theme built around a teal primary color (#8ce3cf) with red accents (#e38ca0). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#8ce3cf) on a teal-tinted background (#040c0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040c0ablack |
| Foreground | #030c0ablack | #f9fbfamintcream |
| Card | #ffffffwhite | #040c0ablack |
| Card foreground | #030c0ablack | #f9fbfamintcream |
| Popover | #ffffffwhite | #040c0ablack |
| Popover foreground | #030c0ablack | #f9fbfamintcream |
| Primary | #8ce3cfaquamarine | #8ce3cfaquamarine |
| Primary foreground | #0c3129darkslategray | #0c3129darkslategray |
| Secondary | #e38ca0palevioletred | #e38ca0palevioletred |
| Secondary foreground | #310c15black | #310c15black |
| Muted | #eedde1mistyrose | #221115black |
| Muted foreground | #605c5ddimgray | #a39fa0darkgray |
| Accent | #e38ca0palevioletred | #e38ca0palevioletred |
| Accent foreground | #310c15black | #310c15black |
| Destructive | #87330dsaddlebrown | #ea5c1achocolate |
| Destructive foreground | #fadaccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ce3cfaquamarine | #8ce3cfaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 5.04:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Secret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.017 180.26);
--muted: oklch(0.912 0.019 1.541);
--muted-foreground: oklch(0.48 0.005 1.251);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.017 180.26);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.017 180.26);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.855 0.09 177.49);
--primary-foreground: oklch(0.285 0.045 174.559);
--secondary: oklch(0.736 0.108 4.963);
--secondary-foreground: oklch(0.221 0.061 9.383);
--accent: oklch(0.736 0.108 4.963);
--accent-foreground: oklch(0.221 0.061 9.383);
--destructive: oklch(0.437 0.124 41.415);
--destructive-foreground: oklch(0.912 0.041 46.406);
--ring: oklch(0.855 0.09 177.49);
--chart-1: oklch(0.855 0.09 177.49);
--chart-2: oklch(0.736 0.108 4.963);
--chart-3: oklch(0.736 0.108 4.963);
--chart-4: oklch(0.763 0.096 4.35);
--chart-5: oklch(0.86 0.093 177.326);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.015 180.547);
--foreground: oklch(0.986 0.002 180.896);
--muted: oklch(0.203 0.029 4.813);
--muted-foreground: oklch(0.705 0.005 1.14);
--popover: oklch(0.142 0.015 180.547);
--popover-foreground: oklch(0.986 0.002 180.896);
--card: oklch(0.142 0.015 180.547);
--card-foreground: oklch(0.986 0.002 180.896);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.855 0.09 177.49);
--primary-foreground: oklch(0.285 0.045 174.559);
--secondary: oklch(0.736 0.108 4.963);
--secondary-foreground: oklch(0.221 0.061 9.383);
--accent: oklch(0.736 0.108 4.963);
--accent-foreground: oklch(0.221 0.061 9.383);
--destructive: oklch(0.651 0.189 41.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.855 0.09 177.49);
--chart-1: oklch(0.855 0.09 177.49);
--chart-2: oklch(0.736 0.108 4.963);
--chart-3: oklch(0.736 0.108 4.963);
--chart-4: oklch(0.763 0.096 4.35);
--chart-5: oklch(0.86 0.093 177.326);
}