Amendment for shadcn/ui

Amendment is a shadcn/ui theme built around a vivid light yellow primary color (#f8de96) with vivid light violet accents (#de96f8). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid light yellow primary (#f8de96) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefdfbsnow
#070603black
Foreground
#000000black
#faf9f5whitesmoke
Card
#fefdfbsnow
#070603black
Card foreground
#000000black
#faf9f5whitesmoke
Popover
#fefdfbsnow
#070603black
Popover foreground
#000000black
#faf9f5whitesmoke
Primary
#f8de96khaki
#f8de96khaki
Primary foreground
#564106saddlebrown
#564106saddlebrown
Secondary
#96f8deaquamarine
#96f8deaquamarine
Secondary foreground
#065641darkslategray
#065641darkslategray
Muted
#d6e1degainsboro
#1e2926darkslategray
Muted foreground
#48615adarkslategray
#9eb7b1darkgray
Accent
#de96f8violet
#de96f8violet
Accent foreground
#410656indigo
#410656indigo
Destructive
#661f05maroon
#ef480borangered
Destructive foreground
#fbbaa2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8de96khaki
#f8de96khaki

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button7.37:1AAA
Secondary button6.95:1AA
Muted text5.00:1AA
Accent7.07:1AAA
Destructive7.16:1AAA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.37:1AAA
Secondary button6.95:1AA
Muted text7.01:1AAA
Accent7.07:1AAA
Destructive3.75: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.994 0.003 90.142);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.013 178.366);
  --muted-foreground: oklch(0.469 0.032 176.635);
  --popover: oklch(0.994 0.003 90.142);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 90.142);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.906 0.095 90.299);
  --primary-foreground: oklch(0.387 0.076 86.078);
  --secondary: oklch(0.912 0.101 174.966);
  --secondary-foreground: oklch(0.405 0.079 168.271);
  --accent: oklch(0.778 0.155 316.665);
  --accent-foreground: oklch(0.285 0.133 314.081);
  --destructive: oklch(0.349 0.108 38.083);
  --destructive-foreground: oklch(0.842 0.082 40.855);
  --ring: oklch(0.906 0.095 90.299);
  --chart-1: oklch(0.906 0.095 90.299);
  --chart-2: oklch(0.912 0.101 174.966);
  --chart-3: oklch(0.778 0.155 316.665);
  --chart-4: oklch(0.922 0.089 175.585);
  --chart-5: oklch(0.909 0.098 90.274);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 93.672);
  --foreground: oklch(0.981 0.006 90.165);
  --muted: oklch(0.271 0.017 176.86);
  --muted-foreground: oklch(0.76 0.029 177.63);
  --popover: oklch(0.122 0.01 93.672);
  --popover-foreground: oklch(0.981 0.006 90.165);
  --card: oklch(0.122 0.01 93.672);
  --card-foreground: oklch(0.981 0.006 90.165);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.095 90.299);
  --primary-foreground: oklch(0.387 0.076 86.078);
  --secondary: oklch(0.912 0.101 174.966);
  --secondary-foreground: oklch(0.405 0.079 168.271);
  --accent: oklch(0.778 0.155 316.665);
  --accent-foreground: oklch(0.285 0.133 314.081);
  --destructive: oklch(0.636 0.212 36.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.095 90.299);
  --chart-1: oklch(0.906 0.095 90.299);
  --chart-2: oklch(0.912 0.101 174.966);
  --chart-3: oklch(0.778 0.155 316.665);
  --chart-4: oklch(0.922 0.089 175.585);
  --chart-5: oklch(0.909 0.098 90.274);
}