Sparkling for shadcn/ui

Sparkling is a shadcn/ui theme built around a teal primary color (#45bfb7) with neutral gray accents (#ced4d3). The light mode uses a neutral background (#fbfefe). Dark mode keeps the teal primary (#45bfb7) on a teal-tinted background (#070d0d).

Color palette

TokenLightDark
Background
#fbfefewhite
#070d0dblack
Foreground
#010504black
#fcfdfdwhite
Card
#f7fdfcmintcream
#091110black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefewhite
#070d0dblack
Popover foreground
#010504black
#fcfdfdwhite
Primary
#45bfb7mediumturquoise
#45bfb7mediumturquoise
Primary foreground
#0e2a28black
#0e2a28black
Secondary
#ced4d3lightgrey
#1b2726darkslategray
Secondary foreground
#353b3bdarkslategray
#aec7c5silver
Muted
#edf3f2whitesmoke
#0c1212black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#ced4d3lightgrey
#1b2726darkslategray
Accent foreground
#353b3bdarkslategray
#aec7c5silver
Destructive
#a9380ffirebrick
#ed5f2cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#45bfb7mediumturquoise
#45bfb7mediumturquoise

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.37:1AAA
Primary button6.81:1AA
Secondary button7.59:1AAA
Muted text5.50:1AA
Accent7.59:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.12:1AAA
Primary button6.81:1AA
Secondary button8.61:1AAA
Muted text7.04:1AAA
Accent8.61:1AAA
Destructive6.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 192.367);
  --foreground: oklch(0.102 0.015 191.112);
  --muted: oklch(0.958 0.006 192.292);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.994 0.003 192.367);
  --popover-foreground: oklch(0.102 0.015 191.112);
  --card: oklch(0.989 0.006 192.306);
  --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.736 0.108 188.815);
  --primary-foreground: oklch(0.262 0.034 189.469);
  --secondary: oklch(0.865 0.006 192.281);
  --secondary-foreground: oklch(0.348 0.009 191.88);
  --accent: oklch(0.865 0.006 192.281);
  --accent-foreground: oklch(0.348 0.009 191.88);
  --destructive: oklch(0.5 0.156 37.685);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.108 188.815);
  --chart-1: oklch(0.736 0.108 188.815);
  --chart-2: oklch(0.865 0.006 192.281);
  --chart-3: oklch(0.865 0.006 192.281);
  --chart-4: oklch(0.888 0.005 192.309);
  --chart-5: oklch(0.745 0.112 188.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.011 191.184);
  --foreground: oklch(0.994 0.002 192.386);
  --muted: oklch(0.177 0.009 191.35);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.154 0.011 191.184);
  --popover-foreground: oklch(0.994 0.002 192.386);
  --card: oklch(0.168 0.013 190.872);
  --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.736 0.108 188.815);
  --primary-foreground: oklch(0.262 0.034 189.469);
  --secondary: oklch(0.262 0.017 191.086);
  --secondary-foreground: oklch(0.809 0.027 191.731);
  --accent: oklch(0.262 0.017 191.086);
  --accent-foreground: oklch(0.809 0.027 191.731);
  --destructive: oklch(0.661 0.186 38.946);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.736 0.108 188.815);
  --chart-1: oklch(0.736 0.108 188.815);
  --chart-2: oklch(0.262 0.017 191.086);
  --chart-3: oklch(0.262 0.017 191.086);
  --chart-4: oklch(0.296 0.02 191.017);
  --chart-5: oklch(0.745 0.112 188.652);
}