Secret is a shadcn/ui theme built around a vivid yellow primary color (#fcea64) with vivid blue accents (#6476fc). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#fcea64) on a yellow-tinted background (#0c0b03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0c0b03black |
| Foreground | #171503black | #fdfdfcwhite |
| Card | #fdfdfcwhite | #0c0b03black |
| Card foreground | #171503black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #0c0b03black |
| Popover foreground | #171503black | #fdfdfcwhite |
| Primary | #fcea64khaki | #fcea64khaki |
| Primary foreground | #2d2801black | #2d2801black |
| Secondary | #6476fcmediumslateblue | #6476fcmediumslateblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6e6eblavender | #141519black |
| Muted foreground | #494c5fdarkslategray | #a0a2b6darkgray |
| Accent | #6476fcmediumslateblue | #6476fcmediumslateblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #92290csaddlebrown | #ee552btomato |
| Destructive foreground | #fcddd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcea64khaki | #fcea64khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.03:1 | AAA |
| Text on card | 18.03:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 5.52:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 5.52:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 5.52:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 5.52:1 | AA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Secret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 100.362);
--foreground: oklch(0.191 0.034 102.792);
--muted: oklch(0.926 0.006 280.228);
--muted-foreground: oklch(0.421 0.032 279.019);
--popover: oklch(0.994 0.002 100.362);
--popover-foreground: oklch(0.191 0.034 102.792);
--card: oklch(0.994 0.002 100.362);
--card-foreground: oklch(0.191 0.034 102.792);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.927 0.153 101.818);
--primary-foreground: oklch(0.273 0.056 101.784);
--secondary: oklch(0.622 0.199 273.513);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.199 273.513);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.443 0.146 35.066);
--destructive-foreground: oklch(0.92 0.036 35.943);
--ring: oklch(0.927 0.153 101.818);
--chart-1: oklch(0.927 0.153 101.818);
--chart-2: oklch(0.622 0.199 273.513);
--chart-3: oklch(0.622 0.199 273.513);
--chart-4: oklch(0.656 0.179 274.722);
--chart-5: oklch(0.932 0.157 101.801);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.019 103.282);
--foreground: oklch(0.993 0.001 100.342);
--muted: oklch(0.197 0.009 279.581);
--muted-foreground: oklch(0.718 0.028 279.691);
--popover: oklch(0.147 0.019 103.282);
--popover-foreground: oklch(0.993 0.001 100.342);
--card: oklch(0.147 0.019 103.282);
--card-foreground: oklch(0.993 0.001 100.342);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.927 0.153 101.818);
--primary-foreground: oklch(0.273 0.056 101.784);
--secondary: oklch(0.622 0.199 273.513);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.199 273.513);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.65 0.196 35.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.927 0.153 101.818);
--chart-1: oklch(0.927 0.153 101.818);
--chart-2: oklch(0.622 0.199 273.513);
--chart-3: oklch(0.622 0.199 273.513);
--chart-4: oklch(0.656 0.179 274.722);
--chart-5: oklch(0.932 0.157 101.801);
}