Irresponsible for shadcn/ui

Irresponsible is a shadcn/ui theme built around a muted green primary color (#879985) with muted red accents (#998587). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#879985) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030703black
Foreground
#010501black
#f9fbf9mintcream
Card
#f7fdf7mintcream
#050b04black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefbwhite
#030703black
Popover foreground
#010501black
#f9fbf9mintcream
Primary
#879985gray
#879985gray
Primary foreground
#000000black
#000000black
Secondary
#858799lightslategray
#858799lightslategray
Secondary foreground
#000000black
#000000black
Muted
#e8e9f3lavender
#0c0e17black
Muted foreground
#52556bdimgray
#9498addarkgray
Accent
#998587gray
#998587gray
Accent foreground
#000000black
#000000black
Destructive
#951704darkred
#e02306orangered
Destructive foreground
#fed4cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#879985gray
#879985gray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.39:1AAA
Primary button6.92:1AA
Secondary button5.93:1AA
Muted text6.05:1AA
Accent6.04:1AA
Destructive6.44:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.48:1AAA
Primary button6.92:1AA
Secondary button5.93:1AA
Muted text6.74:1AA
Accent6.04:1AA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 141.577);
  --foreground: oklch(0.1 0.025 139.112);
  --muted: oklch(0.936 0.013 279.129);
  --muted-foreground: oklch(0.456 0.035 278.07);
  --popover: oklch(0.994 0.005 141.577);
  --popover-foreground: oklch(0.1 0.025 139.112);
  --card: oklch(0.989 0.011 141.562);
  --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.663 0.036 141.441);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.628 0.026 278.674);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.635 0.025 8.7);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.432 0.162 31.476);
  --destructive-foreground: oklch(0.903 0.048 28.3);
  --ring: oklch(0.663 0.036 141.441);
  --chart-1: oklch(0.663 0.036 141.441);
  --chart-2: oklch(0.628 0.026 278.674);
  --chart-3: oklch(0.635 0.025 8.7);
  --chart-4: oklch(0.655 0.024 278.756);
  --chart-5: oklch(0.668 0.047 141.394);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.019 140.17);
  --foreground: oklch(0.986 0.003 141.584);
  --muted: oklch(0.166 0.02 277.203);
  --muted-foreground: oklch(0.683 0.031 278.607);
  --popover: oklch(0.122 0.019 140.17);
  --popover-foreground: oklch(0.986 0.003 141.584);
  --card: oklch(0.14 0.021 140.188);
  --card-foreground: oklch(0.993 0.001 141.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.663 0.036 141.441);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.628 0.026 278.674);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.635 0.025 8.7);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.58 0.223 31.083);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.663 0.036 141.441);
  --chart-1: oklch(0.663 0.036 141.441);
  --chart-2: oklch(0.628 0.026 278.674);
  --chart-3: oklch(0.635 0.025 8.7);
  --chart-4: oklch(0.655 0.024 278.756);
  --chart-5: oklch(0.668 0.047 141.394);
}