Responsible is a shadcn/ui theme built around a vivid violet primary color (#4f0ba8) with muted light violet accents (#c0b8cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#4f0ba8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #07030cblack | #faf9fbghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #07030cblack | #faf9fbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #07030cblack | #faf9fbghostwhite |
| Primary | #4f0ba8indigo | #4f0ba8indigo |
| Primary foreground | #f1e7fdlavender | #f1e7fdlavender |
| Secondary | #d6d2dalightgrey | #232127black |
| Secondary foreground | #3c3743darkslategray | #bcb7c2silver |
| Muted | #efedf2whitesmoke | #0f0d12black |
| Muted foreground | #413c49darkslategray | #bcb6c3silver |
| Accent | #c0b8ccsilver | #322a3cdarkslategray |
| Accent foreground | #28222fdarkslategray | #cbc3d5thistle |
| Destructive | #6a1801maroon | #fd3d08orangered |
| Destructive foreground | #feb49flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f0ba8indigo | #4f0ba8indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 9.79:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Responsible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.028 306.845);
--muted: oklch(0.949 0.008 305.631);
--muted-foreground: oklch(0.366 0.024 304.879);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.028 306.845);
--card: oklch(1 0 180);
--card-foreground: oklch(0.114 0.028 306.845);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.389 0.21 291.91);
--primary-foreground: oklch(0.942 0.032 305.293);
--secondary: oklch(0.869 0.012 305.56);
--secondary-foreground: oklch(0.347 0.022 304.892);
--accent: oklch(0.796 0.029 305.258);
--accent-foreground: oklch(0.265 0.025 304.468);
--destructive: oklch(0.347 0.119 35.33);
--destructive-foreground: oklch(0.834 0.092 36.087);
--ring: oklch(0.389 0.21 291.91);
--chart-1: oklch(0.389 0.21 291.91);
--chart-2: oklch(0.869 0.012 305.56);
--chart-3: oklch(0.796 0.029 305.258);
--chart-4: oklch(0.894 0.009 305.598);
--chart-5: oklch(0.39 0.213 291.216);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.002 305.707);
--muted: oklch(0.163 0.012 304.753);
--muted-foreground: oklch(0.785 0.02 305.408);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.002 305.707);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.002 305.707);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.389 0.21 291.91);
--primary-foreground: oklch(0.942 0.032 305.293);
--secondary: oklch(0.252 0.011 305.149);
--secondary-foreground: oklch(0.788 0.016 305.475);
--accent: oklch(0.301 0.034 304.209);
--accent-foreground: oklch(0.829 0.027 305.311);
--destructive: oklch(0.649 0.232 33.671);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.389 0.21 291.91);
--chart-1: oklch(0.389 0.21 291.91);
--chart-2: oklch(0.252 0.011 305.149);
--chart-3: oklch(0.301 0.034 304.209);
--chart-4: oklch(0.282 0.013 305.118);
--chart-5: oklch(0.39 0.213 291.216);
}