Domain is a shadcn/ui theme built around a muted yellow primary color (#aea984) with muted green accents (#9fae84). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#aea984) on a yellow-tinted background (#0f0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0e06black |
| Foreground | #090802black | #faf9f4whitesmoke |
| Card | #ffffffwhite | #0f0e06black |
| Card foreground | #090802black | #faf9f4whitesmoke |
| Popover | #ffffffwhite | #0f0e06black |
| Popover foreground | #090802black | #faf9f4whitesmoke |
| Primary | #aea984rosybrown | #aea984rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #ae9384rosybrown | #ae9384rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6d9d1gainsboro | #2e2119black |
| Muted foreground | #4e4946darkslategray | #b9b4b1silver |
| Accent | #9fae84darkseagreen | #9fae84darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #bd4505firebrick | #fa7229tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aea984rosybrown | #aea984rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 8.79:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 8.88:1 | AAA |
| Destructive | 5.22:1 | AA |
| Text on background | 18.39:1 | AAA |
| Text on card | 18.39:1 | AAA |
| Primary button | 8.79:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 8.88:1 | AAA |
| Destructive | 7.49:1 | AAA |
Paste this into your globals.css to use Domain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.02 103.434);
--muted: oklch(0.892 0.018 52.315);
--muted-foreground: oklch(0.409 0.008 52.329);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.02 103.434);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.02 103.434);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.729 0.051 100.25);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.684 0.04 51.84);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.729 0.062 124.276);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.55 0.166 41.315);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.051 100.25);
--chart-1: oklch(0.729 0.051 100.25);
--chart-2: oklch(0.684 0.04 51.84);
--chart-3: oklch(0.729 0.062 124.276);
--chart-4: oklch(0.709 0.036 51.924);
--chart-5: oklch(0.736 0.058 100.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.017 101.223);
--foreground: oklch(0.983 0.007 99.441);
--muted: oklch(0.261 0.025 51.372);
--muted-foreground: oklch(0.773 0.007 52.465);
--popover: oklch(0.16 0.017 101.223);
--popover-foreground: oklch(0.983 0.007 99.441);
--card: oklch(0.16 0.017 101.223);
--card-foreground: oklch(0.983 0.007 99.441);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.729 0.051 100.25);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.684 0.04 51.84);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.729 0.062 124.276);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.705 0.184 44.736);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.729 0.051 100.25);
--chart-1: oklch(0.729 0.051 100.25);
--chart-2: oklch(0.684 0.04 51.84);
--chart-3: oklch(0.729 0.062 124.276);
--chart-4: oklch(0.709 0.036 51.924);
--chart-5: oklch(0.736 0.058 100.337);
}