Jagged for shadcn/ui

Jagged is a shadcn/ui theme built around a blue primary color (#416786) with green accents (#678641). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#416786) on a blue-tinted background (#05080b).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#05080bblack
Foreground
#010509black
#ffffffwhite
Card
#f8fafcghostwhite
#05080bblack
Card foreground
#010509black
#ffffffwhite
Popover
#f8fafcghostwhite
#05080bblack
Popover foreground
#010509black
#ffffffwhite
Primary
#416786darkslateblue
#416786darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#864167dimgray
#864167dimgray
Secondary foreground
#fdfcfdwhite
#fdfcfdwhite
Muted
#f0e0e9mistyrose
#1f0f18black
Muted foreground
#544a50darkslategray
#b5abb0darkgray
Accent
#678641olivedrab
#678641olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bb3302firebrick
#fd6730tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#416786darkslateblue
#416786darkslateblue

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button5.99:1AA
Secondary button6.92:1AA
Muted text6.68:1AA
Accent4.13:1AA Large
Destructive5.85:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button5.99:1AA
Secondary button6.92:1AA
Muted text8.27:1AAA
Accent4.13:1AA Large
Destructive7.14:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 242.243);
  --foreground: oklch(0.113 0.016 232.333);
  --muted: oklch(0.922 0.022 343.184);
  --muted-foreground: oklch(0.421 0.015 343.476);
  --popover: oklch(0.984 0.004 242.243);
  --popover-foreground: oklch(0.113 0.016 232.333);
  --card: oklch(0.984 0.004 242.243);
  --card-foreground: oklch(0.113 0.016 232.333);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.498 0.067 244.379);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.475 0.106 347.745);
  --secondary-foreground: oklch(0.991 0.002 342.675);
  --accent: oklch(0.58 0.104 129.164);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.526 0.179 36.029);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.498 0.067 244.379);
  --chart-1: oklch(0.498 0.067 244.379);
  --chart-2: oklch(0.475 0.106 347.745);
  --chart-3: oklch(0.58 0.104 129.164);
  --chart-4: oklch(0.5 0.113 347.791);
  --chart-5: oklch(0.499 0.072 244.631);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.01 236.964);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.032 346.354);
  --muted-foreground: oklch(0.751 0.013 343.039);
  --popover: oklch(0.131 0.01 236.964);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.01 236.964);
  --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.498 0.067 244.379);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.475 0.106 347.745);
  --secondary-foreground: oklch(0.991 0.002 342.675);
  --accent: oklch(0.58 0.104 129.164);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.695 0.195 38.966);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.498 0.067 244.379);
  --chart-1: oklch(0.498 0.067 244.379);
  --chart-2: oklch(0.475 0.106 347.745);
  --chart-3: oklch(0.58 0.104 129.164);
  --chart-4: oklch(0.5 0.113 347.791);
  --chart-5: oklch(0.499 0.072 244.631);
}