Wretched is a shadcn/ui theme built around a light blue primary color (#d4dee8) with light orange accents (#e8ded4). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light blue primary (#d4dee8) on a blue-tinted background (#05080b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #05080bblack |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f8fafcghostwhite | #060a0eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fafcghostwhite | #060a0eblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d4dee8gainsboro | #d4dee8gainsboro |
| Primary foreground | #30445adarkslategray | #30445adarkslategray |
| Secondary | #e8ded4gainsboro | #e8ded4gainsboro |
| Secondary foreground | #5a4630darkolivegreen | #5a4630darkolivegreen |
| Muted | #f2ede8linen | #17120dblack |
| Muted foreground | #494036darkslategray | #c9c0b6silver |
| Accent | #e8ded4gainsboro | #e8ded4gainsboro |
| Accent foreground | #5a4630darkolivegreen | #5a4630darkolivegreen |
| Destructive | #ba4c0dchocolate | #ef681achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d4dee8gainsboro | #d4dee8gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 8.74:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 5.07:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 10.36:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Wretched in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 249.666);
--foreground: oklch(0.088 0.012 240.007);
--muted: oklch(0.949 0.009 69.557);
--muted-foreground: oklch(0.378 0.021 69.006);
--popover: oklch(0.984 0.003 249.683);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.003 249.683);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.018 249.829);
--primary-foreground: oklch(0.38 0.045 250.693);
--secondary: oklch(0.906 0.017 69.454);
--secondary-foreground: oklch(0.408 0.043 68.015);
--accent: oklch(0.906 0.017 69.454);
--accent-foreground: oklch(0.408 0.043 68.015);
--destructive: oklch(0.555 0.156 43.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.018 249.829);
--chart-1: oklch(0.895 0.018 249.829);
--chart-2: oklch(0.906 0.017 69.454);
--chart-3: oklch(0.906 0.017 69.454);
--chart-4: oklch(0.928 0.013 69.506);
--chart-5: oklch(0.894 0.019 249.846);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.01 243.931);
--foreground: oklch(0.992 0.001 249.658);
--muted: oklch(0.187 0.013 68.741);
--muted-foreground: oklch(0.811 0.017 69.432);
--popover: oklch(0.142 0.012 246.822);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.012 246.822);
--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.895 0.018 249.829);
--primary-foreground: oklch(0.38 0.045 250.693);
--secondary: oklch(0.906 0.017 69.454);
--secondary-foreground: oklch(0.408 0.043 68.015);
--accent: oklch(0.906 0.017 69.454);
--accent-foreground: oklch(0.408 0.043 68.015);
--destructive: oklch(0.675 0.185 44.688);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.895 0.018 249.829);
--chart-1: oklch(0.895 0.018 249.829);
--chart-2: oklch(0.906 0.017 69.454);
--chart-3: oklch(0.906 0.017 69.454);
--chart-4: oklch(0.928 0.013 69.506);
--chart-5: oklch(0.894 0.019 249.846);
}