Shady is a shadcn/ui theme built around a blue primary color (#173b82) with yellow accents (#825e17). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#173b82) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070ablack |
| Foreground | #020409black | #ffffffwhite |
| Card | #fcfcfcsnow | #07090eblack |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #fcfcfcsnow | #07090eblack |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #173b82midnightblue | #173b82midnightblue |
| Primary foreground | #d4e0f7lavender | #d4e0f7lavender |
| Secondary | #825e17saddlebrown | #825e17saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1dcd0gainsboro | #2f291edarkslategray |
| Muted foreground | #484642darkslategray | #bdbbb7silver |
| Accent | #825e17saddlebrown | #825e17saddlebrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a10c0cdarkred | #ef2525crimson |
| Destructive foreground | #fde3e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #173b82midnightblue | #173b82midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 5.87:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 5.87:1 | AA |
| Destructive | 6.69:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 5.87:1 | AA |
| Muted text | 7.52:1 | AAA |
| Accent | 5.87:1 | AA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Shady in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.018 254.073);
--muted: oklch(0.894 0.016 84.588);
--muted-foreground: oklch(0.394 0.007 84.586);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.014 254.073);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.014 254.073);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.371 0.128 262.178);
--primary-foreground: oklch(0.904 0.035 264.384);
--secondary: oklch(0.508 0.096 79.857);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.096 79.857);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.451 0.178 28.428);
--destructive-foreground: oklch(0.936 0.029 17.682);
--ring: oklch(0.371 0.128 262.178);
--chart-1: oklch(0.371 0.128 262.178);
--chart-2: oklch(0.508 0.096 79.857);
--chart-3: oklch(0.508 0.096 79.857);
--chart-4: oklch(0.543 0.103 79.704);
--chart-5: oklch(0.37 0.132 262.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.01 259.751);
--foreground: oklch(1 0 180);
--muted: oklch(0.284 0.021 84.436);
--muted-foreground: oklch(0.793 0.006 84.569);
--popover: oklch(0.139 0.012 261.273);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.012 261.273);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.371 0.128 262.178);
--primary-foreground: oklch(0.904 0.035 264.384);
--secondary: oklch(0.508 0.096 79.857);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.096 79.857);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.61 0.232 27.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.371 0.128 262.178);
--chart-1: oklch(0.371 0.128 262.178);
--chart-2: oklch(0.508 0.096 79.857);
--chart-3: oklch(0.508 0.096 79.857);
--chart-4: oklch(0.543 0.103 79.704);
--chart-5: oklch(0.37 0.132 262.142);
}