Jittery for shadcn/ui

Jittery is a shadcn/ui theme built around a yellow primary color (#af9950) with blue accents (#5066af). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#af9950) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#070603black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070603black
Popover foreground
#000000black
#ffffffwhite
Primary
#af9950peru
#af9950peru
Primary foreground
#000000black
#000000black
Secondary
#5066afsteelblue
#5066afsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e6f2lavender
#0d101cblack
Muted foreground
#424243darkslategray
#bcbcbdsilver
Accent
#5066afsteelblue
#5066afsteelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb510bchocolate
#f36412chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#af9950peru
#af9950peru

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.46:1AAA
Secondary button5.42:1AA
Muted text8.08:1AAA
Accent5.42:1AA
Destructive4.42:1AA Large
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.46:1AAA
Secondary button5.42:1AA
Muted text9.97:1AAA
Accent5.42:1AA
Destructive6.62: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 0 0);
  --muted: oklch(0.927 0.017 272.466);
  --muted-foreground: oklch(0.379 0.002 272.609);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.686 0.096 92.802);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.528 0.117 269.349);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.528 0.117 269.349);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.589 0.17 43.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.096 92.802);
  --chart-1: oklch(0.686 0.096 92.802);
  --chart-2: oklch(0.528 0.117 269.349);
  --chart-3: oklch(0.528 0.117 269.349);
  --chart-4: oklch(0.558 0.109 269.814);
  --chart-5: oklch(0.694 0.102 92.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 95.929);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.177 0.025 270.687);
  --muted-foreground: oklch(0.796 0.001 272.638);
  --popover: oklch(0.123 0.01 95.929);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.01 95.929);
  --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.686 0.096 92.802);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.528 0.117 269.349);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.528 0.117 269.349);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.675 0.192 43.533);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.686 0.096 92.802);
  --chart-1: oklch(0.686 0.096 92.802);
  --chart-2: oklch(0.528 0.117 269.349);
  --chart-3: oklch(0.528 0.117 269.349);
  --chart-4: oklch(0.558 0.109 269.814);
  --chart-5: oklch(0.694 0.102 92.661);
}