Spectacular for shadcn/ui

Spectacular is a shadcn/ui theme built around a near-black primary color (#060908) with near-black accents (#060909). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the near-black primary (#060908) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#000000black
#f5f9f8whitesmoke
Card
#f7fdfamintcream
#000000black
Card foreground
#000000black
#f5f9f8whitesmoke
Popover
#f7fdfamintcream
#000000black
Popover foreground
#000000black
#f5f9f8whitesmoke
Primary
#060908black
#060908black
Primary foreground
#8db4a5darkseagreen
#8db4a5darkseagreen
Secondary
#060906black
#060906black
Secondary foreground
#8db491darkseagreen
#8db491darkseagreen
Muted
#eef6efwhitesmoke
#091109black
Muted foreground
#4f6451darkolivegreen
#9bb09ddarkgray
Accent
#060909black
#060909black
Accent foreground
#8db1b4darkgray
#8db1b4darkgray
Destructive
#be3813firebrick
#e84417orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060908black
#060908black

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button8.75:1AAA
Secondary button8.63:1AAA
Muted text5.83:1AA
Accent8.64:1AAA
Destructive5.56:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button8.75:1AAA
Secondary button8.63:1AAA
Muted text8.30:1AAA
Accent8.64:1AAA
Destructive3.97: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.988 0.007 170.428);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.966 0.013 148.443);
  --muted-foreground: oklch(0.48 0.04 147.614);
  --popover: oklch(0.988 0.007 170.428);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.007 170.428);
  --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.136 0.007 170.732);
  --primary-foreground: oklch(0.738 0.048 168.587);
  --secondary: oklch(0.135 0.01 148.123);
  --secondary-foreground: oklch(0.733 0.067 147.522);
  --accent: oklch(0.136 0.006 203.819);
  --accent-foreground: oklch(0.734 0.039 204.704);
  --destructive: oklch(0.537 0.177 35.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.136 0.007 170.732);
  --chart-1: oklch(0.136 0.007 170.732);
  --chart-2: oklch(0.135 0.01 148.123);
  --chart-3: oklch(0.136 0.006 203.819);
  --chart-4: oklch(0.176 0.015 147.559);
  --chart-5: oklch(0.137 0.008 170.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 170.491);
  --muted: oklch(0.166 0.02 147.297);
  --muted-foreground: oklch(0.737 0.036 148.03);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.005 170.491);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.005 170.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.136 0.007 170.732);
  --primary-foreground: oklch(0.738 0.048 168.587);
  --secondary: oklch(0.135 0.01 148.123);
  --secondary-foreground: oklch(0.733 0.067 147.522);
  --accent: oklch(0.136 0.006 203.819);
  --accent-foreground: oklch(0.734 0.039 204.704);
  --destructive: oklch(0.621 0.207 34.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.136 0.007 170.732);
  --chart-1: oklch(0.136 0.007 170.732);
  --chart-2: oklch(0.135 0.01 148.123);
  --chart-3: oklch(0.136 0.006 203.819);
  --chart-4: oklch(0.176 0.015 147.559);
  --chart-5: oklch(0.137 0.008 170.747);
}