Spectacular for shadcn/ui

Spectacular is a shadcn/ui theme built around a green primary color (#91ea86) with near-white accents (#eaece9). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#91ea86) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040703black
Foreground
#061504black
#f9fbf9mintcream
Card
#f9fcf8mintcream
#050b05black
Card foreground
#051103black
#fcfdfcwhite
Popover
#f9fcf8mintcream
#050b05black
Popover foreground
#051103black
#fcfdfcwhite
Primary
#91ea86lightgreen
#91ea86lightgreen
Primary foreground
#0e3409darkgreen
#0e3409darkgreen
Secondary
#eaece9linen
#212820black
Secondary foreground
#4e564ddarkslategray
#b7c4b5silver
Muted
#ddebdbgainsboro
#162414black
Muted foreground
#636a62dimgray
#969d95darkgray
Accent
#eaece9linen
#212820black
Accent foreground
#4e564ddarkslategray
#b7c4b5silver
Destructive
#8c2103darkred
#fa4e1eorangered
Destructive foreground
#fed0c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#91ea86lightgreen
#91ea86lightgreen

Contrast

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

Light mode
Text on background18.46:1AAA
Text on card18.61:1AAA
Primary button9.42:1AAA
Secondary button6.38:1AA
Muted text4.50:1AA
Accent6.38:1AA
Destructive6.45:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.51:1AAA
Primary button9.42:1AAA
Secondary button8.37:1AAA
Muted text5.81:1AA
Accent8.37:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 142.103);
  --foreground: oklch(0.178 0.042 140.553);
  --muted: oklch(0.925 0.027 142.014);
  --muted-foreground: oklch(0.516 0.015 142.01);
  --popover: oklch(0.987 0.006 142.093);
  --popover-foreground: oklch(0.161 0.037 140.301);
  --card: oklch(0.987 0.006 142.093);
  --card-foreground: oklch(0.161 0.037 140.301);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.857 0.159 141.506);
  --primary-foreground: oklch(0.288 0.081 141.422);
  --secondary: oklch(0.94 0.004 142.098);
  --secondary-foreground: oklch(0.444 0.019 141.964);
  --accent: oklch(0.94 0.004 142.098);
  --accent-foreground: oklch(0.444 0.019 141.964);
  --destructive: oklch(0.422 0.147 34.516);
  --destructive-foreground: oklch(0.893 0.055 35.961);
  --ring: oklch(0.857 0.159 141.506);
  --chart-1: oklch(0.857 0.159 141.506);
  --chart-2: oklch(0.94 0.004 142.098);
  --chart-3: oklch(0.94 0.004 142.098);
  --chart-4: oklch(0.963 0.002 142.104);
  --chart-5: oklch(0.86 0.165 141.491);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 140.881);
  --foreground: oklch(0.986 0.003 142.102);
  --muted: oklch(0.243 0.036 141.61);
  --muted-foreground: oklch(0.688 0.014 142.041);
  --popover: oklch(0.139 0.019 140.886);
  --popover-foreground: oklch(0.993 0.002 142.107);
  --card: oklch(0.139 0.019 140.886);
  --card-foreground: oklch(0.993 0.002 142.107);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.857 0.159 141.506);
  --primary-foreground: oklch(0.288 0.081 141.422);
  --secondary: oklch(0.266 0.017 141.886);
  --secondary-foreground: oklch(0.806 0.025 142.007);
  --accent: oklch(0.266 0.017 141.886);
  --accent-foreground: oklch(0.806 0.025 142.007);
  --destructive: oklch(0.662 0.216 35.14);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.159 141.506);
  --chart-1: oklch(0.857 0.159 141.506);
  --chart-2: oklch(0.266 0.017 141.886);
  --chart-3: oklch(0.266 0.017 141.886);
  --chart-4: oklch(0.298 0.021 141.874);
  --chart-5: oklch(0.86 0.165 141.491);
}