Duster is a shadcn/ui theme built around a vivid pink primary color (#8c0d59) with muted light pink accents (#d6c7d0). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid pink primary (#8c0d59) on a pink-tinted background (#0e060b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #0e060bblack |
| Foreground | #040103black | #fdfcfdwhite |
| Card | #faf5f8whitesmoke | #12080eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf5f8whitesmoke | #12080eblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8c0d59purple | #8c0d59purple |
| Primary foreground | #fbd0eamistyrose | #fbd0eamistyrose |
| Secondary | #d6c7d0thistle | #2d252adarkslategray |
| Secondary foreground | #3e2e37darkslategray | #c8bcc3silver |
| Muted | #f1e9eelinen | #160e13black |
| Muted foreground | #493742darkslategray | #c8b6c1silver |
| Accent | #d6c7d0thistle | #2d252adarkslategray |
| Accent foreground | #3e2e37darkslategray | #c8bcc3silver |
| Destructive | #a21901darkred | #fe4525orangered |
| Destructive foreground | #ffdcd6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c0d59purple | #8c0d59purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 9.87:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Duster in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 340.336);
--foreground: oklch(0.083 0.022 340.421);
--muted: oklch(0.942 0.01 340.485);
--muted-foreground: oklch(0.36 0.031 342.065);
--popover: oklch(0.974 0.007 340.389);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.007 340.389);
--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.426 0.168 351.388);
--primary-foreground: oklch(0.902 0.058 341.624);
--secondary: oklch(0.845 0.02 340.763);
--secondary-foreground: oklch(0.321 0.028 342.13);
--accent: oklch(0.845 0.02 340.763);
--accent-foreground: oklch(0.321 0.028 342.13);
--destructive: oklch(0.459 0.174 31.843);
--destructive-foreground: oklch(0.923 0.039 29.675);
--ring: oklch(0.426 0.168 351.388);
--chart-1: oklch(0.426 0.168 351.388);
--chart-2: oklch(0.845 0.02 340.763);
--chart-3: oklch(0.845 0.02 340.763);
--chart-4: oklch(0.87 0.017 340.665);
--chart-5: oklch(0.43 0.171 351.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.02 341.892);
--foreground: oklch(0.992 0.001 340.253);
--muted: oklch(0.176 0.016 342.199);
--muted-foreground: oklch(0.795 0.025 340.932);
--popover: oklch(0.151 0.023 343.013);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.151 0.023 343.013);
--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.426 0.168 351.388);
--primary-foreground: oklch(0.902 0.058 341.624);
--secondary: oklch(0.274 0.015 341.426);
--secondary-foreground: oklch(0.806 0.017 340.707);
--accent: oklch(0.274 0.015 341.426);
--accent-foreground: oklch(0.806 0.017 340.707);
--destructive: oklch(0.66 0.225 32.31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.426 0.168 351.388);
--chart-1: oklch(0.426 0.168 351.388);
--chart-2: oklch(0.274 0.015 341.426);
--chart-3: oklch(0.274 0.015 341.426);
--chart-4: oklch(0.304 0.017 341.475);
--chart-5: oklch(0.43 0.171 351.816);
}