Domain for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button8.79:1AAA
Secondary button7.33:1AAA
Muted text6.40:1AA
Accent8.88:1AAA
Destructive5.22:1AA
Dark mode
Text on background18.39:1AAA
Text on card18.39:1AAA
Primary button8.79:1AAA
Secondary button7.33:1AAA
Muted text7.58:1AAA
Accent8.88:1AAA
Destructive7.49:1AAA

CSS variables

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);
}