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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 4.21:1 | AA Large |
| Secondary button | 7.99:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 4.21:1 | AA Large |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 7.43:1 | AAA |
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);
}