Change for shadcn/ui

Change is a shadcn/ui theme built around a deep pink primary color (#561038) with deep blue accents (#103856). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#561038) on a pink-tinted background (#0c0308).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0308black
Foreground
#0e0208black
#ffffffwhite
Card
#ffffffwhite
#0c0308black
Card foreground
#0e0208black
#ffffffwhite
Popover
#ffffffwhite
#0c0308black
Popover foreground
#0e0208black
#ffffffwhite
Primary
#561038maroon
#561038maroon
Primary foreground
#efa9d1plum
#efa9d1plum
Secondary
#385610darkolivegreen
#385610darkolivegreen
Secondary foreground
#d1efa9palegoldenrod
#d1efa9palegoldenrod
Muted
#e1e2dfgainsboro
#1f201dblack
Muted foreground
#40403fdarkslategray
#bfc0bfsilver
Accent
#103856darkslategray
#103856darkslategray
Accent foreground
#a9d1eflightblue
#a9d1eflightblue
Destructive
#6f260csaddlebrown
#ec7246tomato
Destructive foreground
#f7c7b5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#561038maroon
#561038maroon

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.37:1AAA
Primary button7.37:1AAA
Secondary button6.62:1AA
Muted text7.98:1AAA
Accent7.60:1AAA
Destructive7.05:1AAA
Dark mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button7.37:1AAA
Secondary button6.62:1AA
Muted text8.94:1AAA
Accent7.60:1AAA
Destructive7.06:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.037 342.651);
  --muted: oklch(0.911 0.005 125.816);
  --muted-foreground: oklch(0.372 0.002 125.821);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.037 342.651);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.037 342.651);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.109 350.783);
  --primary-foreground: oklch(0.813 0.097 344.468);
  --secondary: oklch(0.415 0.102 130.655);
  --secondary-foreground: oklch(0.914 0.097 127.255);
  --accent: oklch(0.328 0.07 245.571);
  --accent-foreground: oklch(0.841 0.06 241.357);
  --destructive: oklch(0.375 0.109 38.568);
  --destructive-foreground: oklch(0.867 0.061 40.934);
  --ring: oklch(0.312 0.109 350.783);
  --chart-1: oklch(0.312 0.109 350.783);
  --chart-2: oklch(0.415 0.102 130.655);
  --chart-3: oklch(0.328 0.07 245.571);
  --chart-4: oklch(0.457 0.114 130.797);
  --chart-5: oklch(0.314 0.113 351.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.024 342.139);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.242 0.007 126.142);
  --muted-foreground: oklch(0.807 0.002 125.77);
  --popover: oklch(0.122 0.024 342.139);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.024 342.139);
  --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.312 0.109 350.783);
  --primary-foreground: oklch(0.813 0.097 344.468);
  --secondary: oklch(0.415 0.102 130.655);
  --secondary-foreground: oklch(0.914 0.097 127.255);
  --accent: oklch(0.328 0.07 245.571);
  --accent-foreground: oklch(0.841 0.06 241.357);
  --destructive: oklch(0.689 0.161 40.021);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.312 0.109 350.783);
  --chart-1: oklch(0.312 0.109 350.783);
  --chart-2: oklch(0.415 0.102 130.655);
  --chart-3: oklch(0.328 0.07 245.571);
  --chart-4: oklch(0.457 0.114 130.797);
  --chart-5: oklch(0.314 0.113 351.196);
}