Secret is a shadcn/ui theme built around a vivid indigo primary color (#0c09ae) with vivid violet accents (#5f09ae). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#0c09ae) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030307black |
| Foreground | #040416black | #f9f9fbghostwhite |
| Card | #fbfbfeghostwhite | #030307black |
| Card foreground | #040416black | #f9f9fbghostwhite |
| Popover | #fbfbfeghostwhite | #030307black |
| Popover foreground | #040416black | #f9f9fbghostwhite |
| Primary | #0c09aemediumblue | #0c09aemediumblue |
| Primary foreground | #ececfelavender | #ececfelavender |
| Secondary | #0959aeteal | #0959aeteal |
| Secondary foreground | #ecf4fealiceblue | #ecf4fealiceblue |
| Muted | #e1e5ealavender | #15191eblack |
| Muted foreground | #424243darkslategray | #bcbdbdsilver |
| Accent | #5f09aerebeccapurple | #5f09aerebeccapurple |
| Accent foreground | #f5ecfeghostwhite | #f5ecfeghostwhite |
| Destructive | #7f110bmaroon | #eb2419crimson |
| Destructive foreground | #fac5c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c09aemediumblue | #0c09aemediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 7.94:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 9.35:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Secret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 287.093);
--foreground: oklch(0.121 0.044 278.757);
--muted: oklch(0.921 0.008 249.736);
--muted-foreground: oklch(0.38 0.001 249.686);
--popover: oklch(0.989 0.004 287.093);
--popover-foreground: oklch(0.121 0.044 278.757);
--card: oklch(0.989 0.004 287.093);
--card-foreground: oklch(0.121 0.044 278.757);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.348 0.23 265.91);
--primary-foreground: oklch(0.948 0.025 286.686);
--secondary: oklch(0.472 0.153 255.61);
--secondary-foreground: oklch(0.965 0.016 249.801);
--accent: oklch(0.414 0.218 297.777);
--accent-foreground: oklch(0.955 0.026 308.836);
--destructive: oklch(0.383 0.144 29.1);
--destructive-foreground: oklch(0.869 0.061 21.89);
--ring: oklch(0.348 0.23 265.91);
--chart-1: oklch(0.348 0.23 265.91);
--chart-2: oklch(0.472 0.153 255.61);
--chart-3: oklch(0.414 0.218 297.777);
--chart-4: oklch(0.5 0.163 255.72);
--chart-5: oklch(0.35 0.234 265.456);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.013 284.835);
--foreground: oklch(0.982 0.003 287.117);
--muted: oklch(0.212 0.012 250.15);
--muted-foreground: oklch(0.797 0.001 249.664);
--popover: oklch(0.103 0.013 284.835);
--popover-foreground: oklch(0.982 0.003 287.117);
--card: oklch(0.103 0.013 284.835);
--card-foreground: oklch(0.982 0.003 287.117);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.348 0.23 265.91);
--primary-foreground: oklch(0.948 0.025 286.686);
--secondary: oklch(0.472 0.153 255.61);
--secondary-foreground: oklch(0.965 0.016 249.801);
--accent: oklch(0.414 0.218 297.777);
--accent-foreground: oklch(0.955 0.026 308.836);
--destructive: oklch(0.602 0.231 29.257);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.348 0.23 265.91);
--chart-1: oklch(0.348 0.23 265.91);
--chart-2: oklch(0.472 0.153 255.61);
--chart-3: oklch(0.414 0.218 297.777);
--chart-4: oklch(0.5 0.163 255.72);
--chart-5: oklch(0.35 0.234 265.456);
}