Smoggy Sapphire Splendour for shadcn/ui

Smoggy Sapphire Splendour is a shadcn/ui theme built around an indigo primary color (#2b20ac) with green accents (#20ac2b). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#2b20ac) on an indigo-tinted background (#06050f).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#06050fblack
Foreground
#010104black
#fcfcfdwhite
Card
#f5f5fawhitesmoke
#080713black
Card foreground
#000000black
#ffffffwhite
Popover
#f5f5fawhitesmoke
#080713black
Popover foreground
#000000black
#ffffffwhite
Primary
#2b20acdarkslateblue
#2b20acdarkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ac2b20firebrick
#ac2b20firebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f6efefwhitesmoke
#100a09black
Muted foreground
#69514fdimgray
#b09896rosybrown
Accent
#20ac2bforestgreen
#20ac2bforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#691c02maroon
#fb6432tomato
Destructive foreground
#fdb7a0lightpink
#000000black
Border
#e4e4e7gainsboro
#1f1f23black
Input
#e4e4e7gainsboro
#1f1f23black
Ring
#2b20acdarkslateblue
#2b20acdarkslateblue

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.32:1AAA
Primary button11.02:1AAA
Secondary button6.70:1AA
Muted text6.41:1AA
Accent2.98:1Fail
Destructive7.05:1AAA
Dark mode
Text on background19.72:1AAA
Text on card20.02:1AAA
Primary button11.02:1AAA
Secondary button6.70:1AA
Muted text7.27:1AAA
Accent2.98:1Fail
Destructive6.97:1AA

CSS variables

Paste this into your globals.css to use Smoggy Sapphire Splendour in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 290.164);
  --foreground: oklch(0.075 0.017 287.046);
  --muted: oklch(0.958 0.007 23.654);
  --muted-foreground: oklch(0.459 0.032 24.396);
  --popover: oklch(0.972 0.007 290.121);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.007 290.121);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.919 0.005 290.148);
  --input: oklch(0.919 0.005 290.148);
  --primary: oklch(0.378 0.207 273.833);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.494 0.167 29.552);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.201 143.656);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.35 0.114 36.972);
  --destructive-foreground: oklch(0.84 0.088 39.213);
  --ring: oklch(0.378 0.207 273.833);
  --chart-1: oklch(0.378 0.207 273.833);
  --chart-2: oklch(0.494 0.167 29.552);
  --chart-3: oklch(0.651 0.201 143.656);
  --chart-4: oklch(0.52 0.177 29.586);
  --chart-5: oklch(0.377 0.214 272.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.023 287.425);
  --foreground: oklch(0.99 0.002 290.199);
  --muted: oklch(0.152 0.012 24.694);
  --muted-foreground: oklch(0.702 0.028 24.018);
  --popover: oklch(0.136 0.027 286.741);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.027 286.741);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.241 0.009 289.551);
  --input: oklch(0.241 0.009 289.551);
  --primary: oklch(0.378 0.207 273.833);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.494 0.167 29.552);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.201 143.656);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.689 0.195 37.983);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.378 0.207 273.833);
  --chart-1: oklch(0.378 0.207 273.833);
  --chart-2: oklch(0.494 0.167 29.552);
  --chart-3: oklch(0.651 0.201 143.656);
  --chart-4: oklch(0.52 0.177 29.586);
  --chart-5: oklch(0.377 0.214 272.865);
}