Amendment for shadcn/ui

Amendment is a shadcn/ui theme built around a vivid light purple primary color (#fbc1f2) with muted light purple accents (#dec4da). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the vivid light purple primary (#fbc1f2) on a purple-tinted background (#0c030b).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0c030bblack
Foreground
#080307black
#ffffffwhite
Card
#fbf4faghostwhite
#10040eblack
Card foreground
#040103black
#ffffffwhite
Popover
#fcf8fcsnow
#0c030bblack
Popover foreground
#080307black
#ffffffwhite
Primary
#fbc1f2mistyrose
#fbc1f2mistyrose
Primary foreground
#81096fpurple
#81096fpurple
Secondary
#ede3eblavender
#31262fdarkslategray
Secondary foreground
#5f3f5adimgray
#ccbdcasilver
Muted
#e9e2e8gainsboro
#1d161cblack
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#dec4dathistle
#4a3046darkslategray
Accent foreground
#482843darkslategray
#dfcedcgainsboro
Destructive
#832f02saddlebrown
#e75304orangered
Destructive foreground
#fed1b9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbc1f2mistyrose
#fbc1f2mistyrose

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.18:1AAA
Primary button6.35:1AA
Secondary button7.17:1AAA
Muted text7.89:1AAA
Accent7.85:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.05:1AAA
Primary button6.35:1AA
Secondary button8.09:1AAA
Muted text9.44:1AAA
Accent7.73:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 330.343);
  --foreground: oklch(0.109 0.021 331.219);
  --muted: oklch(0.92 0.011 330.403);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.982 0.007 330.343);
  --popover-foreground: oklch(0.109 0.021 331.219);
  --card: oklch(0.974 0.011 330.393);
  --card-foreground: oklch(0.086 0.017 331.219);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.877 0.091 331.52);
  --primary-foreground: oklch(0.415 0.177 336.153);
  --secondary: oklch(0.927 0.014 330.445);
  --secondary-foreground: oklch(0.414 0.06 331.991);
  --accent: oklch(0.849 0.041 330.856);
  --accent-foreground: oklch(0.329 0.062 332.505);
  --destructive: oklch(0.422 0.125 42.267);
  --destructive-foreground: oklch(0.893 0.061 49.86);
  --ring: oklch(0.877 0.091 331.52);
  --chart-1: oklch(0.877 0.091 331.52);
  --chart-2: oklch(0.927 0.014 330.445);
  --chart-3: oklch(0.849 0.041 330.856);
  --chart-4: oklch(0.951 0.009 330.375);
  --chart-5: oklch(0.877 0.094 331.562);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.029 331.764);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.211 0.016 331.195);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.123 0.029 331.764);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.034 332.431);
  --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.877 0.091 331.52);
  --primary-foreground: oklch(0.415 0.177 336.153);
  --secondary: oklch(0.284 0.024 331.276);
  --secondary-foreground: oklch(0.814 0.025 330.631);
  --accent: oklch(0.35 0.051 332);
  --accent-foreground: oklch(0.869 0.027 330.645);
  --destructive: oklch(0.635 0.196 40.536);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.877 0.091 331.52);
  --chart-1: oklch(0.877 0.091 331.52);
  --chart-2: oklch(0.284 0.024 331.276);
  --chart-3: oklch(0.35 0.051 332);
  --chart-4: oklch(0.314 0.027 331.314);
  --chart-5: oklch(0.877 0.094 331.562);
}