Underpants is a shadcn/ui theme built around a deep violet primary color (#150c1c) with deep teal accents (#0c1c15). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#150c1c) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030203black |
| Foreground | #050208black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #030203black |
| Card foreground | #050208black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #030203black |
| Popover foreground | #050208black | #faf9fbghostwhite |
| Primary | #150c1cblack | #150c1cblack |
| Primary foreground | #ae8ecdmediumpurple | #ae8ecdmediumpurple |
| Secondary | #1c150cblack | #1c150cblack |
| Secondary foreground | #cdae8etan | #cdae8etan |
| Muted | #f1f0efwhitesmoke | #100f0eblack |
| Muted foreground | #4d4a47darkslategray | #b8b5b2silver |
| Accent | #0c1c15black | #0c1c15black |
| Accent foreground | #4baa7cmediumseagreen | #4baa7cmediumseagreen |
| Destructive | #a0410esaddlebrown | #eb5f14chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #150c1cblack | #150c1cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Underpants in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 309.077);
--foreground: oklch(0.103 0.021 310.694);
--muted: oklch(0.955 0.002 69.631);
--muted-foreground: oklch(0.411 0.006 69.495);
--popover: oklch(0.99 0.005 309.077);
--popover-foreground: oklch(0.103 0.021 310.694);
--card: oklch(0.99 0.005 309.077);
--card-foreground: oklch(0.103 0.021 310.694);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.176 0.034 307.005);
--primary-foreground: oklch(0.699 0.098 307.634);
--secondary: oklch(0.201 0.02 68.184);
--secondary-foreground: oklch(0.771 0.057 68.687);
--accent: oklch(0.211 0.027 161.94);
--accent-foreground: oklch(0.668 0.115 159.878);
--destructive: oklch(0.496 0.138 43.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.176 0.034 307.005);
--chart-1: oklch(0.176 0.034 307.005);
--chart-2: oklch(0.201 0.02 68.184);
--chart-3: oklch(0.211 0.027 161.94);
--chart-4: oklch(0.238 0.026 67.909);
--chart-5: oklch(0.175 0.037 306.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.01 309.983);
--foreground: oklch(0.983 0.004 309.085);
--muted: oklch(0.171 0.003 69.481);
--muted-foreground: oklch(0.775 0.005 69.582);
--popover: oklch(0.086 0.01 309.983);
--popover-foreground: oklch(0.983 0.004 309.085);
--card: oklch(0.086 0.01 309.983);
--card-foreground: oklch(0.983 0.004 309.085);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.176 0.034 307.005);
--primary-foreground: oklch(0.699 0.098 307.634);
--secondary: oklch(0.201 0.02 68.184);
--secondary-foreground: oklch(0.771 0.057 68.687);
--accent: oklch(0.211 0.027 161.94);
--accent-foreground: oklch(0.668 0.115 159.878);
--destructive: oklch(0.657 0.188 42.762);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.176 0.034 307.005);
--chart-1: oklch(0.176 0.034 307.005);
--chart-2: oklch(0.201 0.02 68.184);
--chart-3: oklch(0.211 0.027 161.94);
--chart-4: oklch(0.238 0.026 67.909);
--chart-5: oklch(0.175 0.037 306.811);
}