Irresponsible for shadcn/ui

Irresponsible is a shadcn/ui theme built around an indigo primary color (#7271d1) with muted light indigo accents (#cdcdda). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#7271d1) on a neutral background (#040407).

Color palette

TokenLightDark
Background
#ffffffwhite
#040407black
Foreground
#040416black
#f8f8fcghostwhite
Card
#fcfcfcsnow
#05050ablack
Card foreground
#030311black
#fcfcfdwhite
Popover
#fcfcfcsnow
#05050ablack
Popover foreground
#030311black
#fcfcfdwhite
Primary
#7271d1slateblue
#7271d1slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdcddalightgrey
#1a1a1eblack
Secondary foreground
#323243darkslategray
#b1b1b9darkgray
Muted
#e5e5f1lavender
#0f0e1ablack
Muted foreground
#616066dimgray
#99999fdarkgray
Accent
#cdcddalightgrey
#1a1a1eblack
Accent foreground
#323243darkslategray
#b1b1b9darkgray
Destructive
#8c3008saddlebrown
#f4753etomato
Destructive foreground
#fcd9cabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7271d1slateblue
#7271d1slateblue

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.04:1AAA
Primary button4.21:1AA Large
Secondary button7.99:1AAA
Muted text4.96:1AA
Accent7.99:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.80:1AAA
Primary button4.21:1AA Large
Secondary button8.11:1AAA
Muted text6.73:1AA
Accent8.11:1AAA
Destructive7.43:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.042 279.22);
  --muted: oklch(0.925 0.016 286.851);
  --muted-foreground: oklch(0.493 0.009 286.816);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.112 0.037 279.812);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.112 0.037 279.812);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.594 0.144 281.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.853 0.018 286.781);
  --secondary-foreground: oklch(0.324 0.031 285.297);
  --accent: oklch(0.853 0.018 286.781);
  --accent-foreground: oklch(0.324 0.031 285.297);
  --destructive: oklch(0.439 0.133 39.46);
  --destructive-foreground: oklch(0.91 0.044 44.557);
  --ring: oklch(0.594 0.144 281.838);
  --chart-1: oklch(0.594 0.144 281.838);
  --chart-2: oklch(0.853 0.018 286.781);
  --chart-3: oklch(0.853 0.018 286.781);
  --chart-4: oklch(0.879 0.015 286.863);
  --chart-5: oklch(0.588 0.152 281.396);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.011 285.246);
  --foreground: oklch(0.98 0.005 287.079);
  --muted: oklch(0.173 0.024 284.305);
  --muted-foreground: oklch(0.683 0.009 286.936);
  --popover: oklch(0.12 0.013 285.246);
  --popover-foreground: oklch(0.99 0.002 287.125);
  --card: oklch(0.12 0.013 285.246);
  --card-foreground: oklch(0.99 0.002 287.125);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.594 0.144 281.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.221 0.006 286.621);
  --secondary-foreground: oklch(0.762 0.013 286.865);
  --accent: oklch(0.221 0.006 286.621);
  --accent-foreground: oklch(0.762 0.013 286.865);
  --destructive: oklch(0.702 0.171 42.254);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.594 0.144 281.838);
  --chart-1: oklch(0.594 0.144 281.838);
  --chart-2: oklch(0.221 0.006 286.621);
  --chart-3: oklch(0.221 0.006 286.621);
  --chart-4: oklch(0.252 0.008 286.576);
  --chart-5: oklch(0.588 0.152 281.396);
}