Jittery for shadcn/ui

Jittery is a shadcn/ui theme built around a vivid violet primary color (#c363f2) with vivid teal accents (#63f2c3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#c363f2) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#ffffffwhite
#030204black
Foreground
#09030dblack
#ffffffwhite
Card
#fcfcfcsnow
#060307black
Card foreground
#060208black
#ffffffwhite
Popover
#fcfcfcsnow
#060307black
Popover foreground
#060208black
#ffffffwhite
Primary
#c363f2mediumorchid
#c363f2mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#f2c363sandybrown
#f2c363sandybrown
Secondary foreground
#211703black
#211703black
Muted
#dedcd9gainsboro
#262521black
Muted foreground
#656158dimgray
#a7a39adarkgray
Accent
#63f2c3aquamarine
#63f2c3aquamarine
Accent foreground
#032117black
#032117black
Destructive
#661a05maroon
#f4562atomato
Destructive foreground
#fab6a3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c363f2mediumorchid
#c363f2mediumorchid

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.14:1AAA
Primary button6.39:1AA
Secondary button10.72:1AAA
Muted text4.50:1AA
Accent12.21:1AAA
Destructive7.16:1AAA
Dark mode
Text on background20.75:1AAA
Text on card20.51:1AAA
Primary button6.39:1AA
Secondary button10.72:1AAA
Muted text6.11:1AA
Accent12.21:1AAA
Destructive6.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.032 316.667);
  --muted: oklch(0.895 0.005 84.565);
  --muted-foreground: oklch(0.492 0.015 84.593);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.102 0.028 317.148);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.028 317.148);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.672 0.216 312.805);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.84 0.126 82.854);
  --secondary-foreground: oklch(0.212 0.038 83.778);
  --accent: oklch(0.872 0.142 167.896);
  --accent-foreground: oklch(0.222 0.042 167.277);
  --destructive: oklch(0.342 0.112 35.389);
  --destructive-foreground: oklch(0.835 0.084 36.056);
  --ring: oklch(0.672 0.216 312.805);
  --chart-1: oklch(0.672 0.216 312.805);
  --chart-2: oklch(0.84 0.126 82.854);
  --chart-3: oklch(0.872 0.142 167.896);
  --chart-4: oklch(0.853 0.116 83.353);
  --chart-5: oklch(0.671 0.223 312.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.013 316.149);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.263 0.007 84.593);
  --muted-foreground: oklch(0.716 0.014 84.588);
  --popover: oklch(0.108 0.016 316.149);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.016 316.149);
  --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.672 0.216 312.805);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.84 0.126 82.854);
  --secondary-foreground: oklch(0.212 0.038 83.778);
  --accent: oklch(0.872 0.142 167.896);
  --accent-foreground: oklch(0.222 0.042 167.277);
  --destructive: oklch(0.66 0.202 35.705);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.672 0.216 312.805);
  --chart-1: oklch(0.672 0.216 312.805);
  --chart-2: oklch(0.84 0.126 82.854);
  --chart-3: oklch(0.872 0.142 167.896);
  --chart-4: oklch(0.853 0.116 83.353);
  --chart-5: oklch(0.671 0.223 312.7);
}