Local for shadcn/ui

Local is a shadcn/ui theme built around a muted deep green primary color (#363b21) with muted deep green accents (#293b21). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#363b21) on a green-tinted background (#0a0c03).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0a0c03black
Foreground
#070803black
#f9f9f5whitesmoke
Card
#fbfcf8snow
#0e1004black
Card foreground
#030401black
#fbfbf9snow
Popover
#fbfcf8snow
#0e1004black
Popover foreground
#030401black
#fbfbf9snow
Primary
#363b21darkslategray
#363b21darkslategray
Primary foreground
#d1d7b7lightgrey
#d1d7b7lightgrey
Secondary
#3b3321darkslategray
#3b3321darkslategray
Secondary foreground
#d7cdb7silver
#d7cdb7silver
Muted
#e5e2dcgainsboro
#23201ablack
Muted foreground
#5b5549darkolivegreen
#b6b1a4darkgray
Accent
#293b21darkslategray
#293b21darkslategray
Accent foreground
#c1d7b7silver
#c1d7b7silver
Destructive
#c9290dfirebrick
#f03514orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#363b21darkslategray
#363b21darkslategray

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.97:1AAA
Primary button7.84:1AAA
Secondary button7.95:1AAA
Muted text5.72:1AA
Accent7.86:1AAA
Destructive5.50:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.51:1AAA
Primary button7.84:1AAA
Secondary button7.95:1AAA
Muted text7.56:1AAA
Accent7.86:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 114.879);
  --foreground: oklch(0.128 0.016 115.444);
  --muted: oklch(0.914 0.009 86.043);
  --muted-foreground: oklch(0.451 0.021 86.093);
  --popover: oklch(0.99 0.006 114.935);
  --popover-foreground: oklch(0.102 0.013 115.444);
  --card: oklch(0.99 0.006 114.935);
  --card-foreground: oklch(0.102 0.013 115.444);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.339 0.042 117.181);
  --primary-foreground: oklch(0.865 0.043 115.733);
  --secondary: oklch(0.323 0.031 85.815);
  --secondary-foreground: oklch(0.85 0.031 86.095);
  --accent: oklch(0.328 0.049 136.214);
  --accent-foreground: oklch(0.853 0.049 135.682);
  --destructive: oklch(0.544 0.199 31.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.339 0.042 117.181);
  --chart-1: oklch(0.339 0.042 117.181);
  --chart-2: oklch(0.323 0.031 85.815);
  --chart-3: oklch(0.328 0.049 136.214);
  --chart-4: oklch(0.357 0.035 85.783);
  --chart-5: oklch(0.344 0.046 117.391);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.021 115.904);
  --foreground: oklch(0.981 0.005 114.923);
  --muted: oklch(0.246 0.012 86.088);
  --muted-foreground: oklch(0.761 0.018 86.081);
  --popover: oklch(0.166 0.025 116.826);
  --popover-foreground: oklch(0.988 0.004 114.89);
  --card: oklch(0.166 0.025 116.826);
  --card-foreground: oklch(0.988 0.004 114.89);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.339 0.042 117.181);
  --primary-foreground: oklch(0.865 0.043 115.733);
  --secondary: oklch(0.323 0.031 85.815);
  --secondary-foreground: oklch(0.85 0.031 86.095);
  --accent: oklch(0.328 0.049 136.214);
  --accent-foreground: oklch(0.853 0.049 135.682);
  --destructive: oklch(0.622 0.225 31.999);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.339 0.042 117.181);
  --chart-1: oklch(0.339 0.042 117.181);
  --chart-2: oklch(0.323 0.031 85.815);
  --chart-3: oklch(0.328 0.049 136.214);
  --chart-4: oklch(0.357 0.035 85.783);
  --chart-5: oklch(0.344 0.046 117.391);
}