Spectacular for shadcn/ui

Spectacular is a shadcn/ui theme built around a cyan primary color (#58c0d0) with blue accents (#5884d0). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the cyan primary (#58c0d0) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#030707black
Foreground
#020808black
#ffffffwhite
Card
#f8fbfcghostwhite
#040a0bblack
Card foreground
#010404black
#ffffffwhite
Popover
#fcfdfdwhite
#030707black
Popover foreground
#020808black
#ffffffwhite
Primary
#58c0d0mediumturquoise
#58c0d0mediumturquoise
Primary foreground
#000000black
#000000black
Secondary
#58d0a4mediumaquamarine
#58d0a4mediumaquamarine
Secondary foreground
#000000black
#000000black
Muted
#e9f1eewhitesmoke
#0e1613black
Muted foreground
#3d4c47darkslategray
#b3c2bcsilver
Accent
#5884d0steelblue
#5884d0steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#642307maroon
#f0723dtomato
Destructive foreground
#f8bea5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#58c0d0mediumturquoise
#58c0d0mediumturquoise

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.81:1AAA
Primary button9.85:1AAA
Secondary button10.95:1AAA
Muted text7.88:1AAA
Accent3.73:1AA Large
Destructive7.23:1AAA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button9.85:1AAA
Secondary button10.95:1AAA
Muted text9.94:1AAA
Accent3.73:1AA Large
Destructive7.21:1AAA

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.002 207.926);
  --foreground: oklch(0.123 0.015 204.458);
  --muted: oklch(0.952 0.01 172.281);
  --muted-foreground: oklch(0.403 0.021 170.941);
  --popover: oklch(0.993 0.002 207.926);
  --popover-foreground: oklch(0.123 0.015 204.458);
  --card: oklch(0.986 0.003 207.919);
  --card-foreground: oklch(0.098 0.012 204.458);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.752 0.098 208.87);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.777 0.126 166.05);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.126 260.723);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.35 0.1 40.567);
  --destructive-foreground: oklch(0.848 0.076 44.282);
  --ring: oklch(0.752 0.098 208.87);
  --chart-1: oklch(0.752 0.098 208.87);
  --chart-2: oklch(0.777 0.126 166.05);
  --chart-3: oklch(0.616 0.126 260.723);
  --chart-4: oklch(0.791 0.119 166.774);
  --chart-5: oklch(0.758 0.102 209.008);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.011 205.239);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.014 170.277);
  --muted-foreground: oklch(0.8 0.018 171.896);
  --popover: oklch(0.121 0.011 205.239);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.012 205.628);
  --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.752 0.098 208.87);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.777 0.126 166.05);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.126 260.723);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.694 0.169 42.221);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.752 0.098 208.87);
  --chart-1: oklch(0.752 0.098 208.87);
  --chart-2: oklch(0.777 0.126 166.05);
  --chart-3: oklch(0.616 0.126 260.723);
  --chart-4: oklch(0.791 0.119 166.774);
  --chart-5: oklch(0.758 0.102 209.008);
}