Jagged for shadcn/ui

Jagged is a shadcn/ui theme built around a deep blue primary color (#060c19) with deep green accents (#0c1906). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the deep blue primary (#060c19) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#000000black
Foreground
#010204black
#ffffffwhite
Card
#f8f9fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfcfdwhite
#000000black
Popover foreground
#010204black
#ffffffwhite
Primary
#060c19black
#060c19black
Primary foreground
#7393ddcornflowerblue
#7393ddcornflowerblue
Secondary
#19060cblack
#19060cblack
Secondary foreground
#dd7393palevioletred
#dd7393palevioletred
Muted
#e8cad3thistle
#351720black
Muted foreground
#554e50darkslategray
#b1aaacdarkgray
Accent
#0c1906black
#0c1906black
Accent foreground
#59bd2elimegreen
#59bd2elimegreen
Destructive
#9f0e09darkred
#ec150ered
Destructive foreground
#fddeddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060c19black
#060c19black

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card19.95:1AAA
Primary button6.48:1AA
Secondary button6.48:1AA
Muted text5.32:1AA
Accent7.57:1AAA
Destructive6.55:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.48:1AA
Secondary button6.48:1AA
Muted text7.09:1AAA
Accent7.57:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 267.408);
  --foreground: oklch(0.081 0.016 256.074);
  --muted: oklch(0.866 0.035 357.809);
  --muted-foreground: oklch(0.432 0.009 357.262);
  --popover: oklch(0.991 0.002 267.408);
  --popover-foreground: oklch(0.081 0.016 256.074);
  --card: oklch(0.982 0.004 267.397);
  --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.154 0.03 263.935);
  --primary-foreground: oklch(0.671 0.116 265.728);
  --secondary: oklch(0.157 0.036 1.714);
  --secondary-foreground: oklch(0.686 0.135 2.204);
  --accent: oklch(0.194 0.04 136.592);
  --accent-foreground: oklch(0.71 0.199 138.281);
  --destructive: oklch(0.447 0.176 29.089);
  --destructive-foreground: oklch(0.927 0.034 20.146);
  --ring: oklch(0.154 0.03 263.935);
  --chart-1: oklch(0.154 0.03 263.935);
  --chart-2: oklch(0.157 0.036 1.714);
  --chart-3: oklch(0.194 0.04 136.592);
  --chart-4: oklch(0.191 0.049 4.129);
  --chart-5: oklch(0.153 0.031 263.494);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.049 2.104);
  --muted-foreground: oklch(0.744 0.008 356.965);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.154 0.03 263.935);
  --primary-foreground: oklch(0.671 0.116 265.728);
  --secondary: oklch(0.157 0.036 1.714);
  --secondary-foreground: oklch(0.686 0.135 2.204);
  --accent: oklch(0.194 0.04 136.592);
  --accent-foreground: oklch(0.71 0.199 138.281);
  --destructive: oklch(0.598 0.238 29.221);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.154 0.03 263.935);
  --chart-1: oklch(0.154 0.03 263.935);
  --chart-2: oklch(0.157 0.036 1.714);
  --chart-3: oklch(0.194 0.04 136.592);
  --chart-4: oklch(0.191 0.049 4.129);
  --chart-5: oklch(0.153 0.031 263.494);
}