Excitable for shadcn/ui

Excitable is a shadcn/ui theme built around a vivid violet primary color (#9562f4) with vivid purple accents (#de62f4). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid violet primary (#9562f4) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#040307black
Foreground
#020104black
#f7f5fawhitesmoke
Card
#f6f4fbghostwhite
#07040bblack
Card foreground
#000000black
#f9f8fcghostwhite
Popover
#f9f8fcghostwhite
#040307black
Popover foreground
#020104black
#f7f5fawhitesmoke
Primary
#9562f4mediumslateblue
#9562f4mediumslateblue
Primary foreground
#000000black
#000000black
Secondary
#6278f4cornflowerblue
#6278f4cornflowerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edeef3whitesmoke
#0c0d12black
Muted foreground
#474952darkslategray
#adafb8darkgray
Accent
#de62f4orchid
#de62f4orchid
Accent foreground
#1d0221black
#1d0221black
Destructive
#97280csaddlebrown
#d93912orangered
Destructive foreground
#fce0d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9562f4mediumslateblue
#9562f4mediumslateblue

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.23:1AAA
Primary button5.31:1AA
Secondary button3.82:1AA Large
Muted text7.70:1AAA
Accent6.60:1AA
Destructive6.40:1AA
Dark mode
Text on background18.98:1AAA
Text on card19.23:1AAA
Primary button5.31:1AA
Secondary button3.82:1AA Large
Muted text8.86:1AAA
Accent6.60:1AA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 302.108);
  --foreground: oklch(0.075 0.023 303.216);
  --muted: oklch(0.949 0.007 278.21);
  --muted-foreground: oklch(0.406 0.015 277.744);
  --popover: oklch(0.98 0.007 302.108);
  --popover-foreground: oklch(0.075 0.023 303.216);
  --card: oklch(0.97 0.01 302.054);
  --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.622 0.21 295.821);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.619 0.187 272.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.704 0.232 321.393);
  --accent-foreground: oklch(0.171 0.071 321.739);
  --destructive: oklch(0.45 0.151 34.243);
  --destructive-foreground: oklch(0.928 0.032 34.306);
  --ring: oklch(0.622 0.21 295.821);
  --chart-1: oklch(0.622 0.21 295.821);
  --chart-2: oklch(0.619 0.187 272.287);
  --chart-3: oklch(0.704 0.232 321.393);
  --chart-4: oklch(0.652 0.169 273.305);
  --chart-5: oklch(0.619 0.216 295.511);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.016 302.687);
  --foreground: oklch(0.972 0.008 302.091);
  --muted: oklch(0.161 0.011 277.225);
  --muted-foreground: oklch(0.755 0.013 278.063);
  --popover: oklch(0.104 0.016 302.687);
  --popover-foreground: oklch(0.972 0.008 302.091);
  --card: oklch(0.119 0.018 302.64);
  --card-foreground: oklch(0.981 0.005 302.133);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.622 0.21 295.821);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.619 0.187 272.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.704 0.232 321.393);
  --accent-foreground: oklch(0.171 0.071 321.739);
  --destructive: oklch(0.585 0.202 33.95);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.622 0.21 295.821);
  --chart-1: oklch(0.622 0.21 295.821);
  --chart-2: oklch(0.619 0.187 272.287);
  --chart-3: oklch(0.704 0.232 321.393);
  --chart-4: oklch(0.652 0.169 273.305);
  --chart-5: oklch(0.619 0.216 295.511);
}