Dense is a shadcn/ui theme built around a vivid light red primary color (#f89796) with muted light red accents (#ddc6c6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid light red primary (#f89796) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070303black |
| Foreground | #150505black | #faf9f9snow |
| Card | #fefbfbsnow | #070303black |
| Card foreground | #150505black | #faf9f9snow |
| Popover | #fefbfbsnow | #070303black |
| Popover foreground | #150505black | #faf9f9snow |
| Primary | #f89796lightsalmon | #f89796lightsalmon |
| Primary foreground | #560706maroon | #560706maroon |
| Secondary | #e8dedegainsboro | #181111black |
| Secondary foreground | #573d3ddarkslategray | #bba0a0darkgray |
| Muted | #f5f0f0whitesmoke | #0f0a0ablack |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #ddc6c6thistle | #362121darkslategray |
| Accent foreground | #462b2adarkslategray | #d2b7b6silver |
| Destructive | #6b0b06maroon | #f3261borangered |
| Destructive foreground | #faaca8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f89796lightsalmon | #f89796lightsalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Dense in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 18.399);
--foreground: oklch(0.144 0.03 23.007);
--muted: oklch(0.958 0.005 18.448);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(0.991 0.002 18.399);
--popover-foreground: oklch(0.144 0.03 23.007);
--card: oklch(0.991 0.002 18.399);
--card-foreground: oklch(0.144 0.03 23.007);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.777 0.117 21.142);
--primary-foreground: oklch(0.292 0.111 28.359);
--secondary: oklch(0.909 0.011 18.546);
--secondary-foreground: oklch(0.39 0.037 19.99);
--accent: oklch(0.845 0.026 18.837);
--accent-foreground: oklch(0.321 0.041 20.664);
--destructive: oklch(0.338 0.129 29.415);
--destructive-foreground: oklch(0.818 0.093 22.639);
--ring: oklch(0.777 0.117 21.142);
--chart-1: oklch(0.777 0.117 21.142);
--chart-2: oklch(0.909 0.011 18.546);
--chart-3: oklch(0.845 0.026 18.837);
--chart-4: oklch(0.934 0.008 18.491);
--chart-5: oklch(0.776 0.121 21.265);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.014 21.114);
--foreground: oklch(0.984 0.001 18.38);
--muted: oklch(0.153 0.009 19.29);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.107 0.014 21.114);
--popover-foreground: oklch(0.984 0.001 18.38);
--card: oklch(0.107 0.014 21.114);
--card-foreground: oklch(0.984 0.001 18.38);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.777 0.117 21.142);
--primary-foreground: oklch(0.292 0.111 28.359);
--secondary: oklch(0.187 0.011 19.367);
--secondary-foreground: oklch(0.73 0.032 19.071);
--accent: oklch(0.275 0.032 20.397);
--accent-foreground: oklch(0.802 0.032 18.995);
--destructive: oklch(0.618 0.236 29.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.777 0.117 21.142);
--chart-1: oklch(0.777 0.117 21.142);
--chart-2: oklch(0.187 0.011 19.367);
--chart-3: oklch(0.275 0.032 20.397);
--chart-4: oklch(0.218 0.015 19.515);
--chart-5: oklch(0.776 0.121 21.265);
}