Revolving for shadcn/ui

Revolving is a shadcn/ui theme built around a muted deep cyan primary color (#172021) with muted deep red accents (#211817). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the muted deep cyan primary (#172021) on a cyan-tinted background (#070d0e).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#070d0eblack
Foreground
#010809black
#f9fafbghostwhite
Card
#f8fbfcghostwhite
#081011black
Card foreground
#010404black
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#081011black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#172021black
#172021black
Primary foreground
#a7bec3silver
#a7bec3silver
Secondary
#211817black
#211817black
Secondary foreground
#c3aca7darkgray
#c3aca7darkgray
Muted
#e7d8d5gainsboro
#2a1b18black
Muted foreground
#5c5757dimgray
#a8a4a3darkgray
Accent
#211817black
#211817black
Accent foreground
#c3aca7darkgray
#c3aca7darkgray
Destructive
#972f0csaddlebrown
#ef6334tomato
Destructive foreground
#fce2d9mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#172021black
#172021black

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.82:1AAA
Primary button8.56:1AAA
Secondary button8.06:1AAA
Muted text5.12:1AA
Accent8.06:1AAA
Destructive6.24:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.87:1AAA
Primary button8.56:1AAA
Secondary button8.06:1AAA
Muted text6.69:1AA
Accent8.06:1AAA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 211.043);
  --foreground: oklch(0.123 0.016 206.723);
  --muted: oklch(0.893 0.017 31.087);
  --muted-foreground: oklch(0.462 0.006 31.07);
  --popover: oklch(0.987 0.004 211.041);
  --popover-foreground: oklch(0.097 0.013 206.723);
  --card: oklch(0.987 0.004 211.041);
  --card-foreground: oklch(0.097 0.013 206.723);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.234 0.013 211.186);
  --primary-foreground: oklch(0.787 0.026 211.071);
  --secondary: oklch(0.222 0.015 31.325);
  --secondary-foreground: oklch(0.762 0.028 31.157);
  --accent: oklch(0.222 0.015 31.325);
  --accent-foreground: oklch(0.762 0.028 31.157);
  --destructive: oklch(0.458 0.145 36.776);
  --destructive-foreground: oklch(0.931 0.031 39.336);
  --ring: oklch(0.234 0.013 211.186);
  --chart-1: oklch(0.234 0.013 211.186);
  --chart-2: oklch(0.222 0.015 31.325);
  --chart-3: oklch(0.222 0.015 31.325);
  --chart-4: oklch(0.253 0.018 31.361);
  --chart-5: oklch(0.235 0.015 211.249);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.151 0.011 210.338);
  --foreground: oklch(0.985 0.001 211.043);
  --muted: oklch(0.241 0.025 31.593);
  --muted-foreground: oklch(0.722 0.005 31.057);
  --popover: oklch(0.165 0.012 211.147);
  --popover-foreground: oklch(0.993 0.001 211.044);
  --card: oklch(0.165 0.012 211.147);
  --card-foreground: oklch(0.993 0.001 211.044);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.234 0.013 211.186);
  --primary-foreground: oklch(0.787 0.026 211.071);
  --secondary: oklch(0.222 0.015 31.325);
  --secondary-foreground: oklch(0.762 0.028 31.157);
  --accent: oklch(0.222 0.015 31.325);
  --accent-foreground: oklch(0.762 0.028 31.157);
  --destructive: oklch(0.669 0.183 38.19);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.234 0.013 211.186);
  --chart-1: oklch(0.234 0.013 211.186);
  --chart-2: oklch(0.222 0.015 31.325);
  --chart-3: oklch(0.222 0.015 31.325);
  --chart-4: oklch(0.253 0.018 31.361);
  --chart-5: oklch(0.235 0.015 211.249);
}