Demur is a shadcn/ui theme built around an orange primary color (#e49677) with yellow accents (#e4cc77). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#e49677) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090401black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #090401black | #fdfcfcsnow |
| Primary | #e49677darksalmon | #e49677darksalmon |
| Primary foreground | #220e07black | #220e07black |
| Secondary | #e4778epalevioletred | #e4778epalevioletred |
| Secondary foreground | #22070dblack | #22070dblack |
| Muted | #e4d8dagainsboro | #271b1eblack |
| Muted foreground | #58464adarkslategray | #b9a7abdarkgray |
| Accent | #e4cc77burlywood | #e4cc77burlywood |
| Accent foreground | #221c07black | #221c07black |
| Destructive | #c81a0efirebrick | #d71c0ffirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e49677darksalmon | #e49677darksalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 10.70:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 10.70:1 | AAA |
| Destructive | 5.18:1 | AA |
Paste this into your globals.css to use Demur in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.017 53.943);
--muted: oklch(0.892 0.014 2.506);
--muted-foreground: oklch(0.415 0.024 3.645);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.017 53.943);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.089 0.014 53.943);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.744 0.104 42.311);
--primary-foreground: oklch(0.193 0.037 42.773);
--secondary: oklch(0.699 0.137 7.515);
--secondary-foreground: oklch(0.179 0.048 9.431);
--accent: oklch(0.848 0.109 94.365);
--accent-foreground: oklch(0.228 0.036 94.121);
--destructive: oklch(0.533 0.206 29.729);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.744 0.104 42.311);
--chart-1: oklch(0.744 0.104 42.311);
--chart-2: oklch(0.699 0.137 7.515);
--chart-3: oklch(0.848 0.109 94.365);
--chart-4: oklch(0.724 0.123 6.713);
--chart-5: oklch(0.744 0.109 42.274);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 43.121);
--muted: oklch(0.238 0.02 4.364);
--muted-foreground: oklch(0.745 0.021 2.825);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 43.121);
--card: oklch(0.092 0 180);
--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.744 0.104 42.311);
--primary-foreground: oklch(0.193 0.037 42.773);
--secondary: oklch(0.699 0.137 7.515);
--secondary-foreground: oklch(0.179 0.048 9.431);
--accent: oklch(0.848 0.109 94.365);
--accent-foreground: oklch(0.228 0.036 94.121);
--destructive: oklch(0.56 0.217 29.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.744 0.104 42.311);
--chart-1: oklch(0.744 0.104 42.311);
--chart-2: oklch(0.699 0.137 7.515);
--chart-3: oklch(0.848 0.109 94.365);
--chart-4: oklch(0.724 0.123 6.713);
--chart-5: oklch(0.744 0.109 42.274);
}