Ridge for shadcn/ui

Ridge is a shadcn/ui theme built around a muted deep orange primary color (#38312e) with muted deep violet accents (#312e38). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#38312e) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#ffffffwhite
#070403black
Foreground
#0d0602black
#fbfaf9snow
Card
#fcfcfcsnow
#0a0705black
Card foreground
#090401black
#fdfcfcsnow
Popover
#ffffffwhite
#070403black
Popover foreground
#0d0602black
#fbfaf9snow
Primary
#38312edarkslategray
#38312edarkslategray
Primary foreground
#d1cac7lightgrey
#d1cac7lightgrey
Secondary
#2e3831darkslategray
#2e3831darkslategray
Secondary foreground
#c7d1calightgrey
#c7d1calightgrey
Muted
#dee3dfgainsboro
#1c211eblack
Muted foreground
#586f5fdimgray
#90a798darkseagreen
Accent
#312e38darkslategray
#312e38darkslategray
Accent foreground
#cac7d1lightgrey
#cac7d1lightgrey
Destructive
#a83810brown
#ee7144tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38312edarkslategray
#38312edarkslategray

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.96:1AAA
Primary button7.85:1AAA
Secondary button7.75:1AAA
Muted text4.19:1AA Large
Accent7.98:1AAA
Destructive6.47:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.62:1AAA
Primary button7.85:1AAA
Secondary button7.75:1AAA
Muted text6.33:1AA
Accent7.98:1AAA
Destructive7.09:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.021 59.69);
  --muted: oklch(0.911 0.008 157.093);
  --muted-foreground: oklch(0.519 0.038 155.689);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.021 59.69);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.114 0.018 60.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.32 0.011 48.342);
  --primary-foreground: oklch(0.844 0.009 48.622);
  --secondary: oklch(0.329 0.018 156.091);
  --secondary-foreground: oklch(0.851 0.014 156.916);
  --accent: oklch(0.308 0.019 300.518);
  --accent-foreground: oklch(0.835 0.014 301.213);
  --destructive: oklch(0.499 0.154 37.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.32 0.011 48.342);
  --chart-1: oklch(0.32 0.011 48.342);
  --chart-2: oklch(0.329 0.018 156.091);
  --chart-3: oklch(0.308 0.019 300.518);
  --chart-4: oklch(0.36 0.02 156.057);
  --chart-5: oklch(0.32 0.015 48.231);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.008 53.856);
  --foreground: oklch(0.985 0.002 48.726);
  --muted: oklch(0.242 0.011 156.342);
  --muted-foreground: oklch(0.707 0.035 156.212);
  --popover: oklch(0.115 0.008 53.856);
  --popover-foreground: oklch(0.985 0.002 48.726);
  --card: oklch(0.131 0.009 53.833);
  --card-foreground: oklch(0.992 0.001 48.739);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.32 0.011 48.342);
  --primary-foreground: oklch(0.844 0.009 48.622);
  --secondary: oklch(0.329 0.018 156.091);
  --secondary-foreground: oklch(0.851 0.014 156.916);
  --accent: oklch(0.308 0.019 300.518);
  --accent-foreground: oklch(0.835 0.014 301.213);
  --destructive: oklch(0.69 0.165 39.945);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.32 0.011 48.342);
  --chart-1: oklch(0.32 0.011 48.342);
  --chart-2: oklch(0.329 0.018 156.091);
  --chart-3: oklch(0.308 0.019 300.518);
  --chart-4: oklch(0.36 0.02 156.057);
  --chart-5: oklch(0.32 0.015 48.231);
}