Spark for shadcn/ui

Spark is a shadcn/ui theme built around a green primary color (#92c436) with violet accents (#6836c4). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#92c436) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#030401black
#ffffffwhite
Card
#fbfcf8snow
#000000black
Card foreground
#030401black
#ffffffwhite
Popover
#fbfcf8snow
#000000black
Popover foreground
#030401black
#ffffffwhite
Primary
#92c436yellowgreen
#92c436yellowgreen
Primary foreground
#1b240ablack
#1b240ablack
Secondary
#6836c4slateblue
#6836c4slateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eff6whitesmoke
#0c0910black
Muted foreground
#625f67dimgray
#9a98a0darkgray
Accent
#6836c4slateblue
#6836c4slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b11c02firebrick
#fd4a2btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92c436yellowgreen
#92c436yellowgreen

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.82:1AAA
Secondary button7.22:1AAA
Muted text5.48:1AA
Accent7.22:1AAA
Destructive6.93:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.82:1AAA
Secondary button7.22:1AAA
Muted text6.94:1AA
Accent7.22:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 122.306);
  --foreground: oklch(0.103 0.017 121.72);
  --muted: oklch(0.955 0.01 302.046);
  --muted-foreground: oklch(0.492 0.013 301.801);
  --popover: oklch(0.989 0.006 122.306);
  --popover-foreground: oklch(0.103 0.017 121.72);
  --card: oklch(0.989 0.006 122.306);
  --card-foreground: oklch(0.103 0.017 121.72);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.759 0.175 127.19);
  --primary-foreground: oklch(0.244 0.046 125.739);
  --secondary: oklch(0.48 0.206 292.951);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.48 0.206 292.951);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.488 0.185 31.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.759 0.175 127.19);
  --chart-1: oklch(0.759 0.175 127.19);
  --chart-2: oklch(0.48 0.206 292.951);
  --chart-3: oklch(0.48 0.206 292.951);
  --chart-4: oklch(0.505 0.203 293.908);
  --chart-5: oklch(0.769 0.181 127.435);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.147 0.016 300.556);
  --muted-foreground: oklch(0.683 0.012 301.939);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.759 0.175 127.19);
  --primary-foreground: oklch(0.244 0.046 125.739);
  --secondary: oklch(0.48 0.206 292.951);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.48 0.206 292.951);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.663 0.219 32.367);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.759 0.175 127.19);
  --chart-1: oklch(0.759 0.175 127.19);
  --chart-2: oklch(0.48 0.206 292.951);
  --chart-3: oklch(0.48 0.206 292.951);
  --chart-4: oklch(0.505 0.203 293.908);
  --chart-5: oklch(0.769 0.181 127.435);
}