Lighter Purple Chinchilla for shadcn/ui

Lighter Purple Chinchilla is a shadcn/ui theme built around a vivid blue primary color (#60a5fa) with light blue accents (#bbd2eb). The light mode uses a neutral background (#f7f7f7). Dark mode switches to a vivid violet primary (#a855f7) on a neutral background (#0e0e0e).

Color palette

TokenLightDark
Background
#f7f7f7whitesmoke
#0e0e0eblack
Foreground
#0d020bblack
#fbf9fbsnow
Card
#ffffffwhite
#1a1a1ablack
Card foreground
#0d020bblack
#fbf9fbsnow
Popover
#fdfcfdwhite
#1a1a1ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#60a5facornflowerblue
#a855f7mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a855f7mediumorchid
#60a5facornflowerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddddddgainsboro
#323133darkslategray
Muted foreground
#7e7e7egray
#818181gray
Accent
#bbd2eblightblue
#a855f7mediumorchid
Accent foreground
#020202black
#ffffffwhite
Destructive
#e72353crimson
#e61a1acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#d8ebfflavender
#313131darkslategray
Input
#838383gray
#313131darkslategray
Ring
#60a5facornflowerblue
#a855f7mediumorchid

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card20.37:1AAA
Primary button2.54:1Fail
Secondary button3.95:1AA Large
Muted text2.97:1Fail
Accent13.37:1AAA
Destructive4.39:1AA Large
Dark mode
Text on background18.46:1AAA
Text on card16.69:1AAA
Primary button3.95:1AA Large
Secondary button2.54:1Fail
Muted text3.30:1AA Large
Accent3.95:1AA Large
Destructive4.66:1AA

CSS variables

Paste this into your globals.css to use Lighter Purple Chinchilla in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0 170.538);
  --foreground: oklch(0.122 0.033 333.656);
  --muted: oklch(0.897 0 180);
  --muted-foreground: oklch(0.592 0 164.055);
  --popover: oklch(0.992 0.003 332.044);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.033 333.656);
  --border: oklch(0.932 0.034 250.412);
  --input: oklch(0.611 0 180);
  --primary: oklch(0.714 0.143 254.628);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.233 303.9);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.855 0.043 250.523);
  --accent-foreground: oklch(0.084 0 180);
  --destructive: oklch(0.602 0.224 15.184);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.714 0.143 254.628);
  --chart-1: oklch(0.714 0.143 254.628);
  --chart-2: oklch(0.627 0.233 303.9);
  --chart-3: oklch(0.855 0.043 250.523);
  --chart-4: oklch(0.654 0.216 304.741);
  --chart-5: oklch(0.713 0.148 254.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0 158.199);
  --foreground: oklch(0.984 0.004 332.063);
  --muted: oklch(0.316 0.003 315.984);
  --muted-foreground: oklch(0.605 0 180);
  --popover: oklch(0.218 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.216 0 180);
  --card-foreground: oklch(0.984 0.004 332.063);
  --border: oklch(0.313 0 167.471);
  --input: oklch(0.313 0 180);
  --primary: oklch(0.627 0.233 303.9);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.714 0.143 254.628);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.627 0.233 303.9);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.587 0.23 28.262);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.627 0.233 303.9);
  --chart-1: oklch(0.627 0.233 303.9);
  --chart-2: oklch(0.714 0.143 254.628);
  --chart-3: oklch(0.627 0.233 303.9);
  --chart-4: oklch(0.739 0.13 254.4);
  --chart-5: oklch(0.626 0.239 303.663);
}