Jagged for shadcn/ui

Jagged is a shadcn/ui theme built around a light yellow primary color (#ebe6db) with light violet accents (#e6dbeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#ebe6db) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#0b0905black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070603black
Popover foreground
#000000black
#ffffffwhite
Primary
#ebe6dbantiquewhite
#ebe6dbantiquewhite
Primary foreground
#605234darkolivegreen
#605234darkolivegreen
Secondary
#dbebe6gainsboro
#dbebe6gainsboro
Secondary foreground
#101e19black
#101e19black
Muted
#e1eae7gainsboro
#151e1bblack
Muted foreground
#5a6863dimgray
#97a5a1darkgray
Accent
#e6dbebgainsboro
#e6dbebgainsboro
Accent foreground
#523460darkslateblue
#523460darkslateblue
Destructive
#771708maroon
#ee2e11orangered
Destructive foreground
#fac0b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebe6dbantiquewhite
#ebe6dbantiquewhite

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.13:1AA
Secondary button13.96:1AAA
Muted text4.75:1AA
Accent7.75:1AAA
Destructive6.94:1AA
Dark mode
Text on background20.27:1AAA
Text on card19.92:1AAA
Primary button6.13:1AA
Secondary button13.96:1AAA
Muted text6.67:1AA
Accent7.75:1AAA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.009 175.319);
  --muted-foreground: oklch(0.503 0.018 174.541);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.926 0.016 86.067);
  --primary-foreground: oklch(0.445 0.049 85.63);
  --secondary: oklch(0.927 0.019 175);
  --secondary-foreground: oklch(0.22 0.021 172.386);
  --accent: oklch(0.904 0.026 315.307);
  --accent-foreground: oklch(0.38 0.082 314.426);
  --destructive: oklch(0.373 0.133 31.628);
  --destructive-foreground: oklch(0.858 0.068 28.546);
  --ring: oklch(0.926 0.016 86.067);
  --chart-1: oklch(0.926 0.016 86.067);
  --chart-2: oklch(0.927 0.019 175);
  --chart-3: oklch(0.904 0.026 315.307);
  --chart-4: oklch(0.947 0.014 175.181);
  --chart-5: oklch(0.927 0.018 86.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.01 90.176);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.013 173.811);
  --muted-foreground: oklch(0.71 0.017 174.921);
  --popover: oklch(0.121 0.01 90.176);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.011 90.105);
  --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.926 0.016 86.067);
  --primary-foreground: oklch(0.445 0.049 85.63);
  --secondary: oklch(0.927 0.019 175);
  --secondary-foreground: oklch(0.22 0.021 172.386);
  --accent: oklch(0.904 0.026 315.307);
  --accent-foreground: oklch(0.38 0.082 314.426);
  --destructive: oklch(0.614 0.229 31.372);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.016 86.067);
  --chart-1: oklch(0.926 0.016 86.067);
  --chart-2: oklch(0.927 0.019 175);
  --chart-3: oklch(0.904 0.026 315.307);
  --chart-4: oklch(0.947 0.014 175.181);
  --chart-5: oklch(0.927 0.018 86.071);
}