Rotating for shadcn/ui

Rotating is a shadcn/ui theme built around a muted blue primary color (#6c7184) with muted yellow accents (#847f6c). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted blue primary (#6c7184) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#06080eblack
Foreground
#010204black
#f5f6fawhitesmoke
Card
#f7f8fdghostwhite
#080a11black
Card foreground
#000000black
#f8f9fbghostwhite
Popover
#fbfbfeghostwhite
#06080eblack
Popover foreground
#010204black
#f5f6fawhitesmoke
Primary
#6c7184slategray
#6c7184slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#847f6cgray
#847f6cgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ece8daantiquewhite
#252113black
Muted foreground
#736e59dimgray
#a6a18crosybrown
Accent
#847f6cgray
#847f6cgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a13f12saddlebrown
#eb7b47coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c7184slategray
#6c7184slategray

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.78:1AAA
Primary button4.84:1AA
Secondary button4.02:1AA Large
Muted text4.16:1AA Large
Accent4.02:1AA Large
Destructive6.50:1AA
Dark mode
Text on background18.52:1AAA
Text on card18.76:1AAA
Primary button4.84:1AA
Secondary button4.02:1AA Large
Muted text6.20:1AA
Accent4.02:1AA Large
Destructive7.44:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 273.824);
  --foreground: oklch(0.079 0.016 264.29);
  --muted: oklch(0.93 0.019 94.072);
  --muted-foreground: oklch(0.536 0.032 94.38);
  --popover: oklch(0.99 0.004 273.824);
  --popover-foreground: oklch(0.079 0.016 264.29);
  --card: oklch(0.979 0.007 273.782);
  --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.551 0.03 273.18);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.028 94.303);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.028 94.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.496 0.14 41.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.03 273.18);
  --chart-1: oklch(0.551 0.03 273.18);
  --chart-2: oklch(0.594 0.028 94.303);
  --chart-3: oklch(0.594 0.028 94.303);
  --chart-4: oklch(0.622 0.03 94.305);
  --chart-5: oklch(0.545 0.039 272.929);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.014 270.401);
  --foreground: oklch(0.974 0.005 273.808);
  --muted: oklch(0.248 0.025 94.494);
  --muted-foreground: oklch(0.706 0.03 94.266);
  --popover: oklch(0.136 0.014 270.401);
  --popover-foreground: oklch(0.974 0.005 273.808);
  --card: oklch(0.147 0.016 271.589);
  --card-foreground: oklch(0.982 0.003 273.828);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.551 0.03 273.18);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.028 94.303);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.028 94.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.7 0.153 44.209);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.551 0.03 273.18);
  --chart-1: oklch(0.551 0.03 273.18);
  --chart-2: oklch(0.594 0.028 94.303);
  --chart-3: oklch(0.594 0.028 94.303);
  --chart-4: oklch(0.622 0.03 94.305);
  --chart-5: oklch(0.545 0.039 272.929);
}