Rotating for shadcn/ui

Rotating is a shadcn/ui theme built around a near-black primary color (#000000) with neutral gray accents (#d4cece). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0505black
Foreground
#040101black
#f9f6f6whitesmoke
Card
#fefbfbsnow
#0b0505black
Card foreground
#040101black
#f9f6f6whitesmoke
Popover
#fefbfbsnow
#0b0505black
Popover foreground
#040101black
#f9f6f6whitesmoke
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d4cecelightgrey
#161313black
Secondary foreground
#3b3535darkslategray
#b3a8a8darkgray
Muted
#e6e0e0gainsboro
#1f1919black
Muted foreground
#625b5bdimgray
#a49d9ddarkgray
Accent
#d4cecelightgrey
#161313black
Accent foreground
#3b3535darkslategray
#b3a8a8darkgray
Destructive
#d32912firebrick
#ef5743tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button7.37:1AAA
Secondary button7.75:1AAA
Muted text5.08:1AA
Accent7.75:1AAA
Destructive5.12:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button7.37:1AAA
Secondary button7.99:1AAA
Muted text6.51:1AA
Accent7.99:1AAA
Destructive6.11:1AA

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.003 17.202);
  --foreground: oklch(0.083 0.013 20.305);
  --muted: oklch(0.911 0.007 17.28);
  --muted-foreground: oklch(0.477 0.01 17.501);
  --popover: oklch(0.991 0.003 17.202);
  --popover-foreground: oklch(0.083 0.013 20.305);
  --card: oklch(0.991 0.003 17.202);
  --card-foreground: oklch(0.083 0.013 20.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.857 0.006 17.276);
  --secondary-foreground: oklch(0.335 0.01 17.64);
  --accent: oklch(0.857 0.006 17.276);
  --accent-foreground: oklch(0.335 0.01 17.64);
  --destructive: oklch(0.561 0.207 30.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.857 0.006 17.276);
  --chart-3: oklch(0.857 0.006 17.276);
  --chart-4: oklch(0.881 0.005 17.253);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 19.26);
  --foreground: oklch(0.975 0.004 17.219);
  --muted: oklch(0.221 0.01 17.922);
  --muted-foreground: oklch(0.702 0.009 17.367);
  --popover: oklch(0.123 0.014 19.26);
  --popover-foreground: oklch(0.975 0.004 17.219);
  --card: oklch(0.123 0.014 19.26);
  --card-foreground: oklch(0.975 0.004 17.219);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.19 0.005 17.57);
  --secondary-foreground: oklch(0.74 0.013 17.456);
  --accent: oklch(0.19 0.005 17.57);
  --accent-foreground: oklch(0.74 0.013 17.456);
  --destructive: oklch(0.657 0.19 30.383);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.19 0.005 17.57);
  --chart-3: oklch(0.19 0.005 17.57);
  --chart-4: oklch(0.223 0.006 17.626);
  --chart-5: oklch(0 0 0);
}