Furniture for shadcn/ui

Furniture is a shadcn/ui theme built around a muted deep green primary color (#1d2117) with muted deep violet accents (#1b1721). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#1d2117) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fafcf8snow
#030401black
Foreground
#030401black
#ffffffwhite
Card
#f8faf4whitesmoke
#060803black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf8snow
#030401black
Popover foreground
#030401black
#ffffffwhite
Primary
#1d2117black
#1d2117black
Primary foreground
#b8c3a7silver
#b8c3a7silver
Secondary
#1b1721black
#1b1721black
Secondary foreground
#b2a7c3darkgray
#b2a7c3darkgray
Muted
#eae7eelavender
#141118black
Muted foreground
#454346darkslategray
#bab9bcsilver
Accent
#1b1721black
#1b1721black
Accent foreground
#b2a7c3darkgray
#b2a7c3darkgray
Destructive
#9d410bsaddlebrown
#f17b37coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d2117black
#1d2117black

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card20.02:1AAA
Primary button8.85:1AAA
Secondary button7.74:1AAA
Muted text7.99:1AAA
Accent7.74:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.16:1AAA
Primary button8.85:1AAA
Secondary button7.74:1AAA
Muted text9.59:1AAA
Accent7.74:1AAA
Destructive7.63:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 123.724);
  --foreground: oklch(0.104 0.02 122.867);
  --muted: oklch(0.932 0.01 303.477);
  --muted-foreground: oklch(0.387 0.005 303.456);
  --popover: oklch(0.989 0.006 123.724);
  --popover-foreground: oklch(0.104 0.02 122.867);
  --card: oklch(0.983 0.008 123.767);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.241 0.02 124.942);
  --primary-foreground: oklch(0.801 0.04 124.398);
  --secondary: oklch(0.213 0.021 302.133);
  --secondary-foreground: oklch(0.747 0.042 302.816);
  --accent: oklch(0.213 0.021 302.133);
  --accent-foreground: oklch(0.747 0.042 302.816);
  --destructive: oklch(0.492 0.137 44.28);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.241 0.02 124.942);
  --chart-1: oklch(0.241 0.02 124.942);
  --chart-2: oklch(0.213 0.021 302.133);
  --chart-3: oklch(0.213 0.021 302.133);
  --chart-4: oklch(0.243 0.026 302.006);
  --chart-5: oklch(0.244 0.024 125.136);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.013 123.094);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.015 302.39);
  --muted-foreground: oklch(0.787 0.004 303.564);
  --popover: oklch(0.1 0.013 123.094);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.017 123.094);
  --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.241 0.02 124.942);
  --primary-foreground: oklch(0.801 0.04 124.398);
  --secondary: oklch(0.213 0.021 302.133);
  --secondary-foreground: oklch(0.747 0.042 302.816);
  --accent: oklch(0.213 0.021 302.133);
  --accent-foreground: oklch(0.747 0.042 302.816);
  --destructive: oklch(0.708 0.165 47.509);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.241 0.02 124.942);
  --chart-1: oklch(0.241 0.02 124.942);
  --chart-2: oklch(0.213 0.021 302.133);
  --chart-3: oklch(0.213 0.021 302.133);
  --chart-4: oklch(0.243 0.026 302.006);
  --chart-5: oklch(0.244 0.024 125.136);
}