Classic for shadcn/ui

Classic is a shadcn/ui theme built around a vivid purple primary color (#cb10c5) with muted light purple accents (#d6c7d5). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#cb10c5) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#0d020dblack
#fdfcfdwhite
Card
#fdf7fdsnow
#080208black
Card foreground
#090208black
#ffffffwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#0d020dblack
#fdfcfdwhite
Primary
#cb10c5darkviolet
#cb10c5darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8e3e8gainsboro
#282027darkslategray
Secondary foreground
#534653darkslategray
#c4b5c4silver
Muted
#ebd5ebgainsboro
#2a1429black
Muted foreground
#585658dimgray
#a9a7a9darkgray
Accent
#d6c7d5thistle
#392838darkslategray
Accent foreground
#3e2e3ddarkslategray
#d3c0d2thistle
Destructive
#661205maroon
#ef2a0borangered
Destructive foreground
#fbaea2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cb10c5darkviolet
#cb10c5darkviolet

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.42:1AAA
Primary button4.75:1AA
Secondary button7.00:1AAA
Muted text5.29:1AA
Accent7.82:1AAA
Destructive7.05:1AAA
Dark mode
Text on background20.28:1AAA
Text on card20.51:1AAA
Primary button4.75:1AA
Secondary button8.13:1AAA
Muted text7.16:1AAA
Accent7.96:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 326.582);
  --foreground: oklch(0.122 0.037 328.51);
  --muted: oklch(0.898 0.037 326.893);
  --muted-foreground: oklch(0.455 0.003 326.607);
  --popover: oklch(0.991 0.005 326.582);
  --popover-foreground: oklch(0.122 0.037 328.51);
  --card: oklch(0.982 0.009 326.624);
  --card-foreground: oklch(0.107 0.032 328.376);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.59 0.263 330.002);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.921 0.008 326.613);
  --secondary-foreground: oklch(0.412 0.028 327.116);
  --accent: oklch(0.847 0.025 326.793);
  --accent-foreground: oklch(0.324 0.035 327.427);
  --destructive: oklch(0.334 0.12 31.886);
  --destructive-foreground: oklch(0.821 0.092 28.912);
  --ring: oklch(0.59 0.263 330.002);
  --chart-1: oklch(0.59 0.263 330.002);
  --chart-2: oklch(0.921 0.008 326.613);
  --chart-3: oklch(0.847 0.025 326.793);
  --chart-4: oklch(0.945 0.005 326.59);
  --chart-5: oklch(0.596 0.267 330.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.02 328.008);
  --foreground: oklch(0.992 0.002 326.561);
  --muted: oklch(0.231 0.051 328.264);
  --muted-foreground: oklch(0.732 0.003 326.577);
  --popover: oklch(0.086 0.02 328.008);
  --popover-foreground: oklch(0.992 0.002 326.561);
  --card: oklch(0.108 0.025 328.008);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.59 0.263 330.002);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.255 0.018 327.137);
  --secondary-foreground: oklch(0.791 0.025 326.816);
  --accent: oklch(0.304 0.036 327.518);
  --accent-foreground: oklch(0.829 0.031 326.863);
  --destructive: oklch(0.612 0.232 31.205);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.59 0.263 330.002);
  --chart-1: oklch(0.59 0.263 330.002);
  --chart-2: oklch(0.255 0.018 327.137);
  --chart-3: oklch(0.304 0.036 327.518);
  --chart-4: oklch(0.286 0.021 327.168);
  --chart-5: oklch(0.596 0.267 330.044);
}