Unfolded is a shadcn/ui theme built around a deep red primary color (#470a1a) with deep teal accents (#0a4738). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#470a1a) on a red-tinted background (#0f0508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0508black |
| Foreground | #000000black | #fbf8f9snow |
| Card | #fcfcfcsnow | #13070ablack |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0f0508black |
| Popover foreground | #000000black | #fbf8f9snow |
| Primary | #470a1amaroon | #470a1amaroon |
| Primary foreground | #f094ablightpink | #f094ablightpink |
| Secondary | #0a4738darkslategray | #0a4738darkslategray |
| Secondary foreground | #3be3b9turquoise | #3be3b9turquoise |
| Muted | #d3e9e3gainsboro | #162c27darkslategray |
| Muted foreground | #414e4bdarkslategray | #b1bebbsilver |
| Accent | #0a4738darkslategray | #0a4738darkslategray |
| Accent foreground | #3be3b9turquoise | #3be3b9turquoise |
| Destructive | #821608maroon | #d9240dfirebrick |
| Destructive foreground | #fbc7c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #470a1amaroon | #470a1amaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 6.49:1 | AA |
| Muted text | 6.83:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 6.49:1 | AA |
| Muted text | 7.68:1 | AAA |
| Accent | 6.49:1 | AA |
| Destructive | 4.98:1 | AA |
Paste this into your globals.css to use Unfolded in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.024 179.092);
--muted-foreground: oklch(0.411 0.017 178.619);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.266 0.091 11.917);
--primary-foreground: oklch(0.767 0.113 3.913);
--secondary: oklch(0.358 0.065 171.216);
--secondary-foreground: oklch(0.822 0.147 171.53);
--accent: oklch(0.358 0.065 171.216);
--accent-foreground: oklch(0.822 0.147 171.53);
--destructive: oklch(0.394 0.145 31.047);
--destructive-foreground: oklch(0.874 0.061 27.057);
--ring: oklch(0.266 0.091 11.917);
--chart-1: oklch(0.266 0.091 11.917);
--chart-2: oklch(0.358 0.065 171.216);
--chart-3: oklch(0.358 0.065 171.216);
--chart-4: oklch(0.402 0.074 170.878);
--chart-5: oklch(0.267 0.093 12.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.021 1.085);
--foreground: oklch(0.983 0.003 359.961);
--muted: oklch(0.273 0.03 176.13);
--muted-foreground: oklch(0.791 0.015 179.321);
--popover: oklch(0.136 0.021 1.085);
--popover-foreground: oklch(0.983 0.003 359.961);
--card: oklch(0.148 0.024 2.735);
--card-foreground: oklch(0.991 0.002 359.913);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.266 0.091 11.917);
--primary-foreground: oklch(0.767 0.113 3.913);
--secondary: oklch(0.358 0.065 171.216);
--secondary-foreground: oklch(0.822 0.147 171.53);
--accent: oklch(0.358 0.065 171.216);
--accent-foreground: oklch(0.822 0.147 171.53);
--destructive: oklch(0.569 0.215 30.872);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.091 11.917);
--chart-1: oklch(0.266 0.091 11.917);
--chart-2: oklch(0.358 0.065 171.216);
--chart-3: oklch(0.358 0.065 171.216);
--chart-4: oklch(0.402 0.074 170.878);
--chart-5: oklch(0.267 0.093 12.506);
}