Furniture for shadcn/ui

Furniture is a shadcn/ui theme built around a deep indigo primary color (#1d1e44) with deep violet accents (#2f1d44). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#1d1e44) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#06060fblack
Foreground
#000000black
#f5f5fawhitesmoke
Card
#ffffffwhite
#06060fblack
Card foreground
#000000black
#f5f5fawhitesmoke
Popover
#ffffffwhite
#06060fblack
Popover foreground
#000000black
#f5f5fawhitesmoke
Primary
#1d1e44midnightblue
#1d1e44midnightblue
Primary foreground
#b3b5dflightsteelblue
#b3b5dflightsteelblue
Secondary
#1d3244darkslategray
#1d3244darkslategray
Secondary foreground
#b3cbdflightsteelblue
#b3cbdflightsteelblue
Muted
#dbe3ebgainsboro
#141d24black
Muted foreground
#575f66dimgray
#99a1a8darkgray
Accent
#2f1d44midnightblue
#2f1d44midnightblue
Accent foreground
#c8b3dfthistle
#c8b3dfthistle
Destructive
#963403saddlebrown
#fa5705orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1e44midnightblue
#1d1e44midnightblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.02:1AAA
Secondary button7.88:1AAA
Muted text5.02:1AA
Accent7.96:1AAA
Destructive7.53:1AAA
Dark mode
Text on background18.59:1AAA
Text on card18.59:1AAA
Primary button8.02:1AAA
Secondary button7.88:1AAA
Muted text6.53:1AA
Accent7.96:1AAA
Destructive3.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.013 244.266);
  --muted-foreground: oklch(0.48 0.015 244.482);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.257 0.071 278.691);
  --primary-foreground: oklch(0.786 0.06 283.371);
  --secondary: oklch(0.308 0.043 246.19);
  --secondary-foreground: oklch(0.831 0.038 244.667);
  --accent: oklch(0.274 0.073 303.47);
  --accent-foreground: oklch(0.8 0.065 306.119);
  --destructive: oklch(0.462 0.141 40.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.257 0.071 278.691);
  --chart-1: oklch(0.257 0.071 278.691);
  --chart-2: oklch(0.308 0.043 246.19);
  --chart-3: oklch(0.274 0.073 303.47);
  --chart-4: oklch(0.337 0.049 246.278);
  --chart-5: oklch(0.254 0.076 278.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 280.842);
  --foreground: oklch(0.971 0.007 284.679);
  --muted: oklch(0.224 0.018 245.148);
  --muted-foreground: oklch(0.705 0.014 244.332);
  --popover: oklch(0.126 0.022 280.842);
  --popover-foreground: oklch(0.971 0.007 284.679);
  --card: oklch(0.126 0.022 280.842);
  --card-foreground: oklch(0.971 0.007 284.679);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.257 0.071 278.691);
  --primary-foreground: oklch(0.786 0.06 283.371);
  --secondary: oklch(0.308 0.043 246.19);
  --secondary-foreground: oklch(0.831 0.038 244.667);
  --accent: oklch(0.274 0.073 303.47);
  --accent-foreground: oklch(0.8 0.065 306.119);
  --destructive: oklch(0.67 0.211 39.427);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.257 0.071 278.691);
  --chart-1: oklch(0.257 0.071 278.691);
  --chart-2: oklch(0.308 0.043 246.19);
  --chart-3: oklch(0.274 0.073 303.47);
  --chart-4: oklch(0.337 0.049 246.278);
  --chart-5: oklch(0.254 0.076 278.046);
}