Amazing for shadcn/ui

Amazing is a shadcn/ui theme built around a deep yellow primary color (#57550f) with deep purple accents (#550f57). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#57550f) on a neutral background (#080802).

Color palette

TokenLightDark
Background
#fefefbwhite
#080802black
Foreground
#000000black
#fdfdfcwhite
Card
#fdfdf7snow
#0c0c03black
Card foreground
#000000black
#ffffffwhite
Popover
#fefefbwhite
#080802black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#57550fdarkolivegreen
#57550fdarkolivegreen
Primary foreground
#f0eea8palegoldenrod
#f0eea8palegoldenrod
Secondary
#0f5755darkslategray
#0f5755darkslategray
Secondary foreground
#a8f0eepaleturquoise
#a8f0eepaleturquoise
Muted
#edf2f2whitesmoke
#0d1212black
Muted foreground
#4c5d5cdimgray
#a2b3b3darkgray
Accent
#550f57indigo
#550f57indigo
Accent foreground
#eea8f0plum
#eea8f0plum
Destructive
#7d0f07maroon
#d91a0dfirebrick
Destructive foreground
#fbc0bclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#57550fdarkolivegreen
#57550fdarkolivegreen

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.50:1AAA
Primary button6.46:1AA
Secondary button6.49:1AA
Muted text6.14:1AA
Accent7.23:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.66:1AAA
Primary button6.46:1AA
Secondary button6.49:1AA
Muted text8.67:1AAA
Accent7.23:1AAA
Destructive5.11:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 104.872);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.005 194.688);
  --muted-foreground: oklch(0.462 0.021 193.966);
  --popover: oklch(0.996 0.004 104.872);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.007 104.936);
  --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.438 0.087 107.44);
  --primary-foreground: oklch(0.934 0.089 106.333);
  --secondary: oklch(0.416 0.067 191.441);
  --secondary-foreground: oklch(0.908 0.072 193.336);
  --accent: oklch(0.327 0.133 326.607);
  --accent-foreground: oklch(0.821 0.124 325.515);
  --destructive: oklch(0.379 0.144 29.71);
  --destructive-foreground: oklch(0.859 0.069 23.281);
  --ring: oklch(0.438 0.087 107.44);
  --chart-1: oklch(0.438 0.087 107.44);
  --chart-2: oklch(0.416 0.067 191.441);
  --chart-3: oklch(0.327 0.133 326.607);
  --chart-4: oklch(0.458 0.074 191.387);
  --chart-5: oklch(0.443 0.089 107.442);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 107.326);
  --foreground: oklch(0.994 0.002 104.836);
  --muted: oklch(0.176 0.008 193.985);
  --muted-foreground: oklch(0.754 0.019 194.331);
  --popover: oklch(0.13 0.017 107.326);
  --popover-foreground: oklch(0.994 0.002 104.836);
  --card: oklch(0.15 0.02 107.213);
  --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.438 0.087 107.44);
  --primary-foreground: oklch(0.934 0.089 106.333);
  --secondary: oklch(0.416 0.067 191.441);
  --secondary-foreground: oklch(0.908 0.072 193.336);
  --accent: oklch(0.327 0.133 326.607);
  --accent-foreground: oklch(0.821 0.124 325.515);
  --destructive: oklch(0.564 0.22 29.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.438 0.087 107.44);
  --chart-1: oklch(0.438 0.087 107.44);
  --chart-2: oklch(0.416 0.067 191.441);
  --chart-3: oklch(0.327 0.133 326.607);
  --chart-4: oklch(0.458 0.074 191.387);
  --chart-5: oklch(0.443 0.089 107.442);
}