Dense is a shadcn/ui theme built around a light pink primary color (#e1c6d4) with neutral gray accents (#cbc3c7). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the light pink primary (#e1c6d4) on a pink-tinted background (#0e060a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fasnow | #0e060ablack |
| Foreground | #0c0308black | #f9f5f7whitesmoke |
| Card | #fdf2f7lavenderblush | #12070dblack |
| Card foreground | #080205black | #fbf9fasnow |
| Popover | #fdf6fasnow | #0e060ablack |
| Popover foreground | #0c0308black | #f9f5f7whitesmoke |
| Primary | #e1c6d4thistle | #e1c6d4thistle |
| Primary foreground | #4d283bdarkslategray | #4d283bdarkslategray |
| Secondary | #d9d8d9gainsboro | #3c2a33darkslategray |
| Secondary foreground | #403f40darkslategray | #d5c3ccthistle |
| Muted | #f6eef2whitesmoke | #11090dblack |
| Muted foreground | #725563dimgray | #aa8d9crosybrown |
| Accent | #cbc3c7silver | #523242darkslategray |
| Accent foreground | #312b2edarkslategray | #e4d3dbgainsboro |
| Destructive | #b2400afirebrick | #f37135tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1c6d4thistle | #e1c6d4thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.78:1 | AA |
| Text on background | 18.51:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Dense in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 345.38);
--foreground: oklch(0.121 0.025 345.299);
--muted: oklch(0.957 0.01 345.413);
--muted-foreground: oklch(0.484 0.045 347.438);
--popover: oklch(0.981 0.009 345.38);
--popover-foreground: oklch(0.121 0.025 345.299);
--card: oklch(0.971 0.013 345.502);
--card-foreground: oklch(0.106 0.022 344.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.854 0.035 346.183);
--primary-foreground: oklch(0.333 0.06 349.523);
--secondary: oklch(0.884 0.001 345.173);
--secondary-foreground: oklch(0.37 0.002 345.287);
--accent: oklch(0.825 0.01 345.466);
--accent-foreground: oklch(0.296 0.011 346.08);
--destructive: oklch(0.525 0.159 40.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.035 346.183);
--chart-1: oklch(0.854 0.035 346.183);
--chart-2: oklch(0.884 0.001 345.173);
--chart-3: oklch(0.825 0.01 345.466);
--chart-4: oklch(0.908 0.001 345.166);
--chart-5: oklch(0.852 0.038 346.284);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.019 346.647);
--foreground: oklch(0.975 0.005 345.282);
--muted: oklch(0.152 0.016 347.588);
--muted-foreground: oklch(0.674 0.041 346.679);
--popover: oklch(0.138 0.019 346.647);
--popover-foreground: oklch(0.975 0.005 345.282);
--card: oklch(0.15 0.022 348.153);
--card-foreground: oklch(0.983 0.003 345.235);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.854 0.035 346.183);
--primary-foreground: oklch(0.333 0.06 349.523);
--secondary: oklch(0.31 0.029 347.47);
--secondary-foreground: oklch(0.835 0.023 345.838);
--accent: oklch(0.363 0.052 348.604);
--accent-foreground: oklch(0.882 0.022 345.785);
--destructive: oklch(0.695 0.176 43.053);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.854 0.035 346.183);
--chart-1: oklch(0.854 0.035 346.183);
--chart-2: oklch(0.31 0.029 347.47);
--chart-3: oklch(0.363 0.052 348.604);
--chart-4: oklch(0.338 0.033 347.538);
--chart-5: oklch(0.852 0.038 346.284);
}