Duster is a shadcn/ui theme built around a vivid blue primary color (#819eee) with vivid yellow accents (#eed181). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#819eee) on a blue-tinted background (#07090e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07090eblack |
| Foreground | #02050eblack | #fcfcfdwhite |
| Card | #ffffffwhite | #07090eblack |
| Card foreground | #02050eblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #07090eblack |
| Popover foreground | #02050eblack | #fcfcfdwhite |
| Primary | #819eeecornflowerblue | #819eeecornflowerblue |
| Primary foreground | #071436black | #071436black |
| Secondary | #eed181khaki | #eed181khaki |
| Secondary foreground | #362907black | #362907black |
| Muted | #f6f2ealinen | #151209black |
| Muted foreground | #665f4ddimgray | #b2ac99darkgray |
| Accent | #eed181khaki | #eed181khaki |
| Accent foreground | #362907black | #362907black |
| Destructive | #7c2604saddlebrown | #f8652atomato |
| Destructive foreground | #fdc9b5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #819eeecornflowerblue | #819eeecornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 9.52:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 9.52:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 9.52:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 9.52:1 | AAA |
| Destructive | 6.88:1 | AA |
Paste this into your globals.css to use Duster in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.025 258.641);
--muted: oklch(0.962 0.012 90.211);
--muted-foreground: oklch(0.487 0.029 90.424);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.025 258.641);
--card: oklch(1 0 180);
--card-foreground: oklch(0.114 0.025 258.641);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.711 0.121 268.046);
--primary-foreground: oklch(0.204 0.069 265.305);
--secondary: oklch(0.868 0.104 90.143);
--secondary-foreground: oklch(0.29 0.052 88.19);
--accent: oklch(0.868 0.104 90.143);
--accent-foreground: oklch(0.29 0.052 88.19);
--destructive: oklch(0.397 0.126 38.33);
--destructive-foreground: oklch(0.877 0.065 42.634);
--ring: oklch(0.711 0.121 268.046);
--chart-1: oklch(0.711 0.121 268.046);
--chart-2: oklch(0.868 0.104 90.143);
--chart-3: oklch(0.868 0.104 90.143);
--chart-4: oklch(0.881 0.094 90.286);
--chart-5: oklch(0.709 0.126 267.937);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.012 266.985);
--foreground: oklch(0.991 0.001 270.109);
--muted: oklch(0.183 0.017 90.39);
--muted-foreground: oklch(0.744 0.027 90.349);
--popover: oklch(0.138 0.012 266.985);
--popover-foreground: oklch(0.991 0.001 270.109);
--card: oklch(0.138 0.012 266.985);
--card-foreground: oklch(0.991 0.001 270.109);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.711 0.121 268.046);
--primary-foreground: oklch(0.204 0.069 265.305);
--secondary: oklch(0.868 0.104 90.143);
--secondary-foreground: oklch(0.29 0.052 88.19);
--accent: oklch(0.868 0.104 90.143);
--accent-foreground: oklch(0.29 0.052 88.19);
--destructive: oklch(0.686 0.194 39.825);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.711 0.121 268.046);
--chart-1: oklch(0.711 0.121 268.046);
--chart-2: oklch(0.868 0.104 90.143);
--chart-3: oklch(0.868 0.104 90.143);
--chart-4: oklch(0.881 0.094 90.286);
--chart-5: oklch(0.709 0.126 267.937);
}