Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Jagged for shadcn/ui

Jagged is a shadcn/ui theme built around a deep green primary color (#425223) with deep pink accents (#522342). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#425223) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf7snow
#000000black
Foreground
#0f1505black
#fdfdfcwhite
Card
#f9fbf3floralwhite
#030303black
Card foreground
#0c1104black
#ffffffwhite
Popover
#f9fbf3floralwhite
#030303black
Popover foreground
#0c1104black
#ffffffwhite
Primary
#425223darkolivegreen
#425223darkolivegreen
Primary foreground
#d9e5c2lightgrey
#d9e5c2lightgrey
Secondary
#234252darkslategray
#234252darkslategray
Secondary foreground
#c2d9e5powderblue
#c2d9e5powderblue
Muted
#dde8eelavender
#111c22black
Muted foreground
#606466dimgray
#999c9fdarkgray
Accent
#522342darkslategray
#522342darkslategray
Accent foreground
#e5c2d9thistle
#e5c2d9thistle
Destructive
#bc4201firebrick
#ef5401orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#425223darkolivegreen
#425223darkolivegreen

Contrast

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

Light mode
Text on background18.08:1AAA
Text on card18.36:1AAA
Primary button6.46:1AA
Secondary button7.29:1AAA
Muted text4.79:1AA
Accent7.76:1AAA
Destructive5.35:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button6.46:1AA
Secondary button7.29:1AAA
Muted text6.27:1AA
Accent7.76:1AAA
Destructive3.54: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.99 0.007 122.33);
  --foreground: oklch(0.184 0.033 124.532);
  --muted: oklch(0.925 0.014 230.868);
  --muted-foreground: oklch(0.502 0.006 230.822);
  --popover: oklch(0.985 0.011 122.39);
  --popover-foreground: oklch(0.166 0.028 123.594);
  --card: oklch(0.985 0.011 122.39);
  --card-foreground: oklch(0.166 0.028 123.594);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.413 0.073 125.452);
  --primary-foreground: oklch(0.904 0.048 123.058);
  --secondary: oklch(0.362 0.046 233.577);
  --secondary-foreground: oklch(0.872 0.029 231.161);
  --accent: oklch(0.335 0.082 342.708);
  --accent-foreground: oklch(0.851 0.049 339.145);
  --destructive: oklch(0.544 0.168 40.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.073 125.452);
  --chart-1: oklch(0.413 0.073 125.452);
  --chart-2: oklch(0.362 0.046 233.577);
  --chart-3: oklch(0.335 0.082 342.708);
  --chart-4: oklch(0.392 0.051 233.672);
  --chart-5: oklch(0.418 0.078 125.676);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 122.245);
  --muted: oklch(0.219 0.019 232.259);
  --muted-foreground: oklch(0.692 0.005 230.767);
  --popover: oklch(0.092 0 180);
  --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.413 0.073 125.452);
  --primary-foreground: oklch(0.904 0.048 123.058);
  --secondary: oklch(0.362 0.046 233.577);
  --secondary-foreground: oklch(0.872 0.029 231.161);
  --accent: oklch(0.335 0.082 342.708);
  --accent-foreground: oklch(0.851 0.049 339.145);
  --destructive: oklch(0.649 0.202 40.165);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.073 125.452);
  --chart-1: oklch(0.413 0.073 125.452);
  --chart-2: oklch(0.362 0.046 233.577);
  --chart-3: oklch(0.335 0.082 342.708);
  --chart-4: oklch(0.392 0.051 233.672);
  --chart-5: oklch(0.418 0.078 125.676);
}