Responsible is a shadcn/ui theme built around a deep purple primary color (#5d225a) with deep teal accents (#225a5d). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the deep purple primary (#5d225a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #000000black |
| Foreground | #120311black | #ffffffwhite |
| Card | #fdfbfdsnow | #000000black |
| Card foreground | #120311black | #ffffffwhite |
| Popover | #fdfbfdsnow | #000000black |
| Popover foreground | #120311black | #ffffffwhite |
| Primary | #5d225aindigo | #5d225aindigo |
| Primary foreground | #eac7e9thistle | #eac7e9thistle |
| Secondary | #5a5d22darkolivegreen | #5a5d22darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebebe0beige | #1f1f14black |
| Muted foreground | #474738darkslategray | #c6c7b8silver |
| Accent | #225a5ddarkslategray | #225a5ddarkslategray |
| Accent foreground | #c7e9eapaleturquoise | #c7e9eapaleturquoise |
| Destructive | #b9220efirebrick | #ef412aorangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5d225aindigo | #5d225aindigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 6.03:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 9.70:1 | AAA |
| Accent | 6.03:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Responsible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 327.07);
--foreground: oklch(0.137 0.044 329.333);
--muted: oklch(0.937 0.015 109.003);
--muted-foreground: oklch(0.394 0.025 109.843);
--popover: oklch(0.991 0.003 327.07);
--popover-foreground: oklch(0.137 0.044 329.333);
--card: oklch(0.991 0.003 327.07);
--card-foreground: oklch(0.137 0.044 329.333);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.114 329.604);
--primary-foreground: oklch(0.87 0.059 327.648);
--secondary: oklch(0.463 0.081 111.817);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.433 0.058 200.023);
--accent-foreground: oklch(0.909 0.035 200.456);
--destructive: oklch(0.508 0.188 30.98);
--destructive-foreground: oklch(0.99 0.004 26.468);
--ring: oklch(0.363 0.114 329.604);
--chart-1: oklch(0.363 0.114 329.604);
--chart-2: oklch(0.463 0.081 111.817);
--chart-3: oklch(0.433 0.058 200.023);
--chart-4: oklch(0.501 0.088 111.853);
--chart-5: oklch(0.365 0.12 329.723);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.02 110.256);
--muted-foreground: oklch(0.825 0.021 109.175);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.363 0.114 329.604);
--primary-foreground: oklch(0.87 0.059 327.648);
--secondary: oklch(0.463 0.081 111.817);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.433 0.058 200.023);
--accent-foreground: oklch(0.909 0.035 200.456);
--destructive: oklch(0.631 0.214 30.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.114 329.604);
--chart-1: oklch(0.363 0.114 329.604);
--chart-2: oklch(0.463 0.081 111.817);
--chart-3: oklch(0.433 0.058 200.023);
--chart-4: oklch(0.501 0.088 111.853);
--chart-5: oklch(0.365 0.12 329.723);
}