Mindless is a shadcn/ui theme built around a neutral gray primary color (#4d5049) with near-white accents (#e8e9e8). The light mode uses a neutral background (#fdfefb). Dark mode keeps the neutral gray primary (#4d5049) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060703black |
| Foreground | #0f1703black | #fafbf9snow |
| Card | #fdfefbwhite | #060703black |
| Card foreground | #0f1703black | #fafbf9snow |
| Popover | #fdfefbwhite | #060703black |
| Popover foreground | #0f1703black | #fafbf9snow |
| Primary | #4d5049darkslategray | #4d5049darkslategray |
| Primary foreground | #e6e7e4gainsboro | #e6e7e4gainsboro |
| Secondary | #e8e9e8lavender | #1b1f14black |
| Secondary foreground | #4f514ddarkslategray | #b6c2a3darkgray |
| Muted | #ecefe7linen | #151810black |
| Muted foreground | #424937darkslategray | #c1c8b6silver |
| Accent | #e8e9e8lavender | #1b1f14black |
| Accent foreground | #4f514ddarkslategray | #b6c2a3darkgray |
| Destructive | #973207saddlebrown | #ea4e0borangered |
| Destructive foreground | #fde0d3antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d5049darkslategray | #4d5049darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.07:1 | AAA |
| Text on card | 18.07:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 9.00:1 | AAA |
| Muted text | 10.38:1 | AAA |
| Accent | 9.00:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Mindless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 123.683);
--foreground: oklch(0.189 0.04 126.062);
--muted: oklch(0.947 0.011 123.817);
--muted-foreground: oklch(0.392 0.03 124.825);
--popover: oklch(0.994 0.003 123.683);
--popover-foreground: oklch(0.189 0.04 126.062);
--card: oklch(0.994 0.003 123.683);
--card-foreground: oklch(0.189 0.04 126.062);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.425 0.01 124.002);
--primary-foreground: oklch(0.925 0.003 123.685);
--secondary: oklch(0.932 0.001 123.66);
--secondary-foreground: oklch(0.431 0.005 123.823);
--accent: oklch(0.932 0.001 123.66);
--accent-foreground: oklch(0.431 0.005 123.823);
--destructive: oklch(0.462 0.143 39.062);
--destructive-foreground: oklch(0.926 0.037 44.624);
--ring: oklch(0.425 0.01 124.002);
--chart-1: oklch(0.425 0.01 124.002);
--chart-2: oklch(0.932 0.001 123.66);
--chart-3: oklch(0.932 0.001 123.66);
--chart-4: oklch(0.955 0.001 123.653);
--chart-5: oklch(0.431 0.018 124.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 123.143);
--foreground: oklch(0.987 0.003 123.686);
--muted: oklch(0.205 0.016 124.862);
--muted-foreground: oklch(0.823 0.026 124.104);
--popover: oklch(0.125 0.015 123.143);
--popover-foreground: oklch(0.987 0.003 123.686);
--card: oklch(0.125 0.015 123.143);
--card-foreground: oklch(0.987 0.003 123.686);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.425 0.01 124.002);
--primary-foreground: oklch(0.925 0.003 123.685);
--secondary: oklch(0.23 0.02 124.965);
--secondary-foreground: oklch(0.796 0.044 124.473);
--accent: oklch(0.23 0.02 124.965);
--accent-foreground: oklch(0.796 0.044 124.473);
--destructive: oklch(0.634 0.202 38.26);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.425 0.01 124.002);
--chart-1: oklch(0.425 0.01 124.002);
--chart-2: oklch(0.23 0.02 124.965);
--chart-3: oklch(0.23 0.02 124.965);
--chart-4: oklch(0.266 0.025 125.077);
--chart-5: oklch(0.431 0.018 124.266);
}