Lord for shadcn/ui

Lord is a shadcn/ui theme built around a yellow primary color (#d8cda6) with green accents (#cad8a6). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#d8cda6) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfbf8snow
#040301black
Foreground
#151105black
#f8f8f7whitesmoke
Card
#fcfbf8snow
#040301black
Card foreground
#151105black
#f8f8f7whitesmoke
Popover
#fcfbf8snow
#040301black
Popover foreground
#151105black
#f8f8f7whitesmoke
Primary
#d8cda6palegoldenrod
#d8cda6palegoldenrod
Primary foreground
#352f17darkslategray
#352f17darkslategray
Secondary
#d8b4a6tan
#d8b4a6tan
Secondary foreground
#352017black
#352017black
Muted
#efe9e6linen
#191310black
Muted foreground
#54514fdarkslategray
#b0acabdarkgray
Accent
#cad8a6silver
#cad8a6silver
Accent foreground
#2d3517darkslategray
#2d3517darkslategray
Destructive
#831302maroon
#fc4327orangered
Destructive foreground
#fec2b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8cda6palegoldenrod
#d8cda6palegoldenrod

Contrast

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

Light mode
Text on background18.24:1AAA
Text on card18.24:1AAA
Primary button8.43:1AAA
Secondary button8.05:1AAA
Muted text6.53:1AA
Accent8.51:1AAA
Destructive6.63:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button8.43:1AAA
Secondary button8.05:1AAA
Muted text8.20:1AAA
Accent8.51:1AAA
Destructive3.51:1AA Large

CSS variables

Paste this into your globals.css to use Lord in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 93.921);
  --foreground: oklch(0.178 0.024 95.402);
  --muted: oklch(0.937 0.007 43.058);
  --muted-foreground: oklch(0.436 0.005 43.025);
  --popover: oklch(0.989 0.005 93.921);
  --popover-foreground: oklch(0.178 0.024 95.402);
  --card: oklch(0.989 0.005 93.921);
  --card-foreground: oklch(0.178 0.024 95.402);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.053 94.397);
  --primary-foreground: oklch(0.305 0.039 94.382);
  --secondary: oklch(0.799 0.046 42.72);
  --secondary-foreground: oklch(0.268 0.037 42.328);
  --accent: oklch(0.859 0.068 120.689);
  --accent-foreground: oklch(0.313 0.05 122.308);
  --destructive: oklch(0.392 0.148 31.724);
  --destructive-foreground: oklch(0.865 0.071 28.571);
  --ring: oklch(0.848 0.053 94.397);
  --chart-1: oklch(0.848 0.053 94.397);
  --chart-2: oklch(0.799 0.046 42.72);
  --chart-3: oklch(0.859 0.068 120.689);
  --chart-4: oklch(0.823 0.04 42.769);
  --chart-5: oklch(0.852 0.057 94.419);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 97.441);
  --foreground: oklch(0.979 0.002 93.885);
  --muted: oklch(0.191 0.011 42.711);
  --muted-foreground: oklch(0.748 0.004 43.075);
  --popover: oklch(0.098 0.009 97.441);
  --popover-foreground: oklch(0.979 0.002 93.885);
  --card: oklch(0.098 0.009 97.441);
  --card-foreground: oklch(0.979 0.002 93.885);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.848 0.053 94.397);
  --primary-foreground: oklch(0.305 0.039 94.382);
  --secondary: oklch(0.799 0.046 42.72);
  --secondary-foreground: oklch(0.268 0.037 42.328);
  --accent: oklch(0.859 0.068 120.689);
  --accent-foreground: oklch(0.313 0.05 122.308);
  --destructive: oklch(0.655 0.224 31.659);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.053 94.397);
  --chart-1: oklch(0.848 0.053 94.397);
  --chart-2: oklch(0.799 0.046 42.72);
  --chart-3: oklch(0.859 0.068 120.689);
  --chart-4: oklch(0.823 0.04 42.769);
  --chart-5: oklch(0.852 0.057 94.419);
}