Irritating for shadcn/ui

Irritating is a shadcn/ui theme built around a green primary color (#49974e) with red accents (#974e49). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#49974e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#041005black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#041005black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#041005black
#fcfdfcwhite
Primary
#49974eseagreen
#49974eseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4e4997darkslateblue
#4e4997darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9d8e4gainsboro
#1c1b27black
Muted foreground
#474653darkslategray
#adacb9darkgray
Accent
#974e49sienna
#974e49sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9c0702darkred
#fc2e27orangered
Destructive foreground
#fed3d2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#49974eseagreen
#49974eseagreen

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button3.58:1AA Large
Secondary button7.70:1AAA
Muted text6.55:1AA
Accent5.97:1AA
Destructive6.33:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button3.58:1AA Large
Secondary button7.70:1AAA
Muted text7.58:1AAA
Accent5.97:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.157 0.032 145.818);
  --muted: oklch(0.886 0.016 289.132);
  --muted-foreground: oklch(0.399 0.023 288.366);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.157 0.032 145.818);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.157 0.032 145.818);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.61 0.133 145.028);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.124 283.228);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.099 25.351);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.437 0.176 29.529);
  --destructive-foreground: oklch(0.904 0.049 20.415);
  --ring: oklch(0.61 0.133 145.028);
  --chart-1: oklch(0.61 0.133 145.028);
  --chart-2: oklch(0.451 0.124 283.228);
  --chart-3: oklch(0.512 0.099 25.351);
  --chart-4: oklch(0.473 0.131 283.165);
  --chart-5: oklch(0.617 0.142 144.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 147.53);
  --muted: oklch(0.229 0.023 287.497);
  --muted-foreground: oklch(0.748 0.02 288.982);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 147.53);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 147.53);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.61 0.133 145.028);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.124 283.228);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.099 25.351);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.238 28.47);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.133 145.028);
  --chart-1: oklch(0.61 0.133 145.028);
  --chart-2: oklch(0.451 0.124 283.228);
  --chart-3: oklch(0.512 0.099 25.351);
  --chart-4: oklch(0.473 0.131 283.165);
  --chart-5: oklch(0.617 0.142 144.846);
}