Rotating for shadcn/ui

Rotating is a shadcn/ui theme built around a vivid deep purple primary color (#1f0420) with vivid deep green accents (#052004). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#1f0420) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fefbfewhite
#080208black
Foreground
#080208black
#fdfbfdsnow
Card
#fefbfewhite
#080208black
Card foreground
#080208black
#fdfbfdsnow
Popover
#fefbfewhite
#080208black
Popover foreground
#080208black
#fdfbfdsnow
Primary
#1f0420black
#1f0420black
Primary foreground
#ea68eeviolet
#ea68eeviolet
Secondary
#052004black
#052004black
Secondary foreground
#1ed818limegreen
#1ed818limegreen
Muted
#e2efe1gainsboro
#111e10black
Muted foreground
#4c4d4cdarkslategray
#b2b3b2darkgray
Accent
#052004black
#052004black
Accent foreground
#1ed818limegreen
#1ed818limegreen
Destructive
#b11c0bfirebrick
#f0260forangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f0420black
#1f0420black

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button7.04:1AAA
Secondary button8.96:1AAA
Muted text7.12:1AAA
Accent8.96:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.04:1AAA
Secondary button8.96:1AAA
Muted text8.23:1AAA
Accent8.96:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 324.656);
  --foreground: oklch(0.108 0.026 326.305);
  --muted: oklch(0.938 0.022 144.464);
  --muted-foreground: oklch(0.419 0.003 144.57);
  --popover: oklch(0.991 0.006 324.656);
  --popover-foreground: oklch(0.108 0.026 326.305);
  --card: oklch(0.991 0.006 324.656);
  --card-foreground: oklch(0.108 0.026 326.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.177 0.068 326.634);
  --primary-foreground: oklch(0.723 0.224 326.279);
  --secondary: oklch(0.215 0.063 142.33);
  --secondary-foreground: oklch(0.766 0.253 142.406);
  --accent: oklch(0.215 0.063 142.33);
  --accent-foreground: oklch(0.766 0.253 142.406);
  --destructive: oklch(0.49 0.185 30.501);
  --destructive-foreground: oklch(0.97 0.013 25.105);
  --ring: oklch(0.177 0.068 326.634);
  --chart-1: oklch(0.177 0.068 326.634);
  --chart-2: oklch(0.215 0.063 142.33);
  --chart-3: oklch(0.215 0.063 142.33);
  --chart-4: oklch(0.264 0.08 142.386);
  --chart-5: oklch(0.177 0.07 326.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.025 326.276);
  --foreground: oklch(0.991 0.003 324.64);
  --muted: oklch(0.217 0.031 143.632);
  --muted-foreground: oklch(0.766 0.003 144.596);
  --popover: oklch(0.108 0.025 326.276);
  --popover-foreground: oklch(0.991 0.003 324.64);
  --card: oklch(0.108 0.025 326.276);
  --card-foreground: oklch(0.991 0.003 324.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.177 0.068 326.634);
  --primary-foreground: oklch(0.723 0.224 326.279);
  --secondary: oklch(0.215 0.063 142.33);
  --secondary-foreground: oklch(0.766 0.253 142.406);
  --accent: oklch(0.215 0.063 142.33);
  --accent-foreground: oklch(0.766 0.253 142.406);
  --destructive: oklch(0.611 0.234 30.458);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.177 0.068 326.634);
  --chart-1: oklch(0.177 0.068 326.634);
  --chart-2: oklch(0.215 0.063 142.33);
  --chart-3: oklch(0.215 0.063 142.33);
  --chart-4: oklch(0.264 0.08 142.386);
  --chart-5: oklch(0.177 0.07 326.689);
}