Arid for shadcn/ui

Arid is a shadcn/ui theme built around a muted deep yellow primary color (#201c13) with neutral gray accents (#e6e6e5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted deep yellow primary (#201c13) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#100c04black
#ffffffwhite
Card
#fcfbf8snow
#030303black
Card foreground
#0c0903black
#ffffffwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#100c04black
#ffffffwhite
Primary
#201c13black
#201c13black
Primary foreground
#c7bb9etan
#c7bb9etan
Secondary
#e6e6e5gainsboro
#1b1913black
Secondary foreground
#4e4d4bdarkslategray
#bfb6a1darkgray
Muted
#eeece7linen
#181611black
Muted foreground
#464239darkslategray
#c6c2b9silver
Accent
#e6e6e5gainsboro
#1b1913black
Accent foreground
#4e4d4bdarkslategray
#bfb6a1darkgray
Destructive
#dd5308chocolate
#f87630tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#201c13black
#201c13black

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.20:1AAA
Primary button8.89:1AAA
Secondary button6.74:1AA
Muted text8.46:1AAA
Accent6.74:1AA
Destructive3.94:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.89:1AAA
Secondary button8.73:1AAA
Muted text10.19:1AAA
Accent8.73:1AAA
Destructive7.60:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 87.432);
  --foreground: oklch(0.158 0.019 89.933);
  --muted: oklch(0.943 0.006 87.455);
  --muted-foreground: oklch(0.381 0.016 87.564);
  --popover: oklch(0.994 0.002 87.432);
  --popover-foreground: oklch(0.158 0.019 89.933);
  --card: oklch(0.988 0.005 87.444);
  --card-foreground: oklch(0.142 0.017 92.4);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.019 87.487);
  --primary-foreground: oklch(0.794 0.042 87.569);
  --secondary: oklch(0.924 0.001 87.425);
  --secondary-foreground: oklch(0.421 0.004 87.465);
  --accent: oklch(0.924 0.001 87.425);
  --accent-foreground: oklch(0.421 0.004 87.465);
  --destructive: oklch(0.62 0.187 41.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.019 87.487);
  --chart-1: oklch(0.229 0.019 87.487);
  --chart-2: oklch(0.924 0.001 87.425);
  --chart-3: oklch(0.924 0.001 87.425);
  --chart-4: oklch(0.947 0.001 87.424);
  --chart-5: oklch(0.231 0.021 87.436);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.009 87.569);
  --muted-foreground: oklch(0.814 0.013 87.496);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.229 0.019 87.487);
  --primary-foreground: oklch(0.794 0.042 87.569);
  --secondary: oklch(0.213 0.012 87.566);
  --secondary-foreground: oklch(0.778 0.031 87.562);
  --accent: oklch(0.213 0.012 87.566);
  --accent-foreground: oklch(0.778 0.031 87.562);
  --destructive: oklch(0.708 0.177 45.397);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.229 0.019 87.487);
  --chart-1: oklch(0.229 0.019 87.487);
  --chart-2: oklch(0.213 0.012 87.566);
  --chart-3: oklch(0.213 0.012 87.566);
  --chart-4: oklch(0.249 0.016 87.557);
  --chart-5: oklch(0.231 0.021 87.436);
}