Secret is a shadcn/ui theme built around a deep violet primary color (#401862) with muted light violet accents (#c5bdcc). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep violet primary (#401862) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #050208black |
| Foreground | #08030dblack | #faf8fbghostwhite |
| Card | #faf8fcghostwhite | #08030cblack |
| Card foreground | #050208black | #fcfcfdwhite |
| Popover | #fdfcfdwhite | #050208black |
| Popover foreground | #08030dblack | #faf8fbghostwhite |
| Primary | #401862midnightblue | #401862midnightblue |
| Primary foreground | #d8beefthistle | #d8beefthistle |
| Secondary | #d9d6dbgainsboro | #262527darkslategray |
| Secondary foreground | #403c44darkslategray | #bfbec1silver |
| Muted | #e8e6ealavender | #171519black |
| Muted foreground | #504856darkslategray | #b0a9b7darkgray |
| Accent | #c5bdccsilver | #38333ddarkslategray |
| Accent foreground | #2c2631darkslategray | #d1cdd5lightgrey |
| Destructive | #811808maroon | #f03619orangered |
| Destructive foreground | #fbc8c1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #401862midnightblue | #401862midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Secret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 309.761);
--foreground: oklch(0.114 0.031 311.413);
--muted: oklch(0.928 0.005 309.728);
--muted-foreground: oklch(0.414 0.025 309.183);
--popover: oklch(0.991 0.002 309.761);
--popover-foreground: oklch(0.114 0.031 311.413);
--card: oklch(0.982 0.005 309.736);
--card-foreground: oklch(0.1 0.027 311.861);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.312 0.124 304.496);
--primary-foreground: oklch(0.839 0.073 308.927);
--secondary: oklch(0.881 0.007 309.709);
--secondary-foreground: oklch(0.363 0.014 309.402);
--accent: oklch(0.809 0.023 309.504);
--accent-foreground: oklch(0.279 0.022 309.003);
--destructive: oklch(0.394 0.142 31.582);
--destructive-foreground: oklch(0.876 0.059 28.427);
--ring: oklch(0.312 0.124 304.496);
--chart-1: oklch(0.312 0.124 304.496);
--chart-2: oklch(0.881 0.007 309.709);
--chart-3: oklch(0.809 0.023 309.504);
--chart-4: oklch(0.905 0.005 309.726);
--chart-5: oklch(0.312 0.128 304.105);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.023 311.515);
--foreground: oklch(0.983 0.004 309.744);
--muted: oklch(0.2 0.008 309.398);
--muted-foreground: oklch(0.745 0.022 309.495);
--popover: oklch(0.102 0.023 311.515);
--popover-foreground: oklch(0.983 0.004 309.744);
--card: oklch(0.117 0.026 311.234);
--card-foreground: oklch(0.991 0.002 309.764);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.312 0.124 304.496);
--primary-foreground: oklch(0.839 0.073 308.927);
--secondary: oklch(0.268 0.003 309.673);
--secondary-foreground: oklch(0.803 0.004 309.737);
--accent: oklch(0.331 0.019 309.219);
--accent-foreground: oklch(0.854 0.012 309.643);
--destructive: oklch(0.623 0.225 31.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.312 0.124 304.496);
--chart-1: oklch(0.312 0.124 304.496);
--chart-2: oklch(0.268 0.003 309.673);
--chart-3: oklch(0.331 0.019 309.219);
--chart-4: oklch(0.299 0.004 309.667);
--chart-5: oklch(0.312 0.128 304.105);
}