Scarce for shadcn/ui

Scarce is a shadcn/ui theme built around a muted deep cyan primary color (#21343b) with muted deep orange accents (#3b2721). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the muted deep cyan primary (#21343b) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#030607black
Foreground
#020708black
#f5f9faghostwhite
Card
#f8fbfcghostwhite
#05090ablack
Card foreground
#010304black
#f8fbfcghostwhite
Popover
#fbfdfdwhite
#030607black
Popover foreground
#020708black
#f5f9faghostwhite
Primary
#21343bdarkslategray
#21343bdarkslategray
Primary foreground
#b7cfd7lightsteelblue
#b7cfd7lightsteelblue
Secondary
#3b2721darkslategray
#3b2721darkslategray
Secondary foreground
#d7bfb7silver
#d7bfb7silver
Muted
#ecdfdagainsboro
#251813black
Muted foreground
#51433edarkslategray
#c1b3aesilver
Accent
#3b2721darkslategray
#3b2721darkslategray
Accent foreground
#d7bfb7silver
#d7bfb7silver
Destructive
#a70401darkred
#fe0a06red
Destructive foreground
#ffdcdbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#21343bdarkslategray
#21343bdarkslategray

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.85:1AAA
Primary button7.95:1AAA
Secondary button8.00:1AAA
Muted text7.23:1AAA
Accent8.00:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.23:1AAA
Primary button7.95:1AAA
Secondary button8.00:1AAA
Muted text8.49:1AAA
Accent8.00:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 219.52);
  --foreground: oklch(0.12 0.014 214.074);
  --muted: oklch(0.912 0.016 39.407);
  --muted-foreground: oklch(0.395 0.021 39.279);
  --popover: oklch(0.993 0.002 219.52);
  --popover-foreground: oklch(0.12 0.014 214.074);
  --card: oklch(0.986 0.003 219.533);
  --card-foreground: oklch(0.095 0.011 214.074);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.313 0.027 220.771);
  --primary-foreground: oklch(0.839 0.028 219.807);
  --secondary: oklch(0.296 0.031 39.212);
  --secondary-foreground: oklch(0.822 0.029 39.329);
  --accent: oklch(0.296 0.031 39.212);
  --accent-foreground: oklch(0.822 0.029 39.329);
  --destructive: oklch(0.46 0.187 29.398);
  --destructive-foreground: oklch(0.923 0.039 19.032);
  --ring: oklch(0.313 0.027 220.771);
  --chart-1: oklch(0.313 0.027 220.771);
  --chart-2: oklch(0.296 0.031 39.212);
  --chart-3: oklch(0.296 0.031 39.212);
  --chart-4: oklch(0.326 0.036 39.21);
  --chart-5: oklch(0.314 0.03 220.98);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.008 216.3);
  --foreground: oklch(0.978 0.004 219.539);
  --muted: oklch(0.223 0.023 39.214);
  --muted-foreground: oklch(0.777 0.017 39.382);
  --popover: oklch(0.118 0.008 216.3);
  --popover-foreground: oklch(0.978 0.004 219.539);
  --card: oklch(0.135 0.009 216.303);
  --card-foreground: oklch(0.986 0.003 219.528);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.313 0.027 220.771);
  --primary-foreground: oklch(0.839 0.028 219.807);
  --secondary: oklch(0.296 0.031 39.212);
  --secondary-foreground: oklch(0.822 0.029 39.329);
  --accent: oklch(0.296 0.031 39.212);
  --accent-foreground: oklch(0.822 0.029 39.329);
  --destructive: oklch(0.628 0.255 29.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.313 0.027 220.771);
  --chart-1: oklch(0.313 0.027 220.771);
  --chart-2: oklch(0.296 0.031 39.212);
  --chart-3: oklch(0.296 0.031 39.212);
  --chart-4: oklch(0.326 0.036 39.21);
  --chart-5: oklch(0.314 0.03 220.98);
}