Respectful is a shadcn/ui theme built around a vivid light yellow primary color (#fefaf1) with vivid light blue accents (#f1f5fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fefaf1) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #080602black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #080602black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fcfcfcsnow | #080602black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #fefaf1floralwhite | #fefaf1floralwhite |
| Primary foreground | #513906saddlebrown | #513906saddlebrown |
| Secondary | #f1f5fealiceblue | #f1f5fealiceblue |
| Secondary foreground | #0c40b0darkslateblue | #0c40b0darkslateblue |
| Muted | #dee0e3gainsboro | #1c1e21black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #f1f5fealiceblue | #f1f5fealiceblue |
| Accent foreground | #0c40b0darkslateblue | #0c40b0darkslateblue |
| Destructive | #682003maroon | #e94707orangered |
| Destructive foreground | #fcbba1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefaf1floralwhite | #fefaf1floralwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 10.38:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 10.38:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Respectful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.016 92.505);
--muted: oklch(0.905 0.005 265.983);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.013 92.505);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.013 92.505);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.013 86.053);
--primary-foreground: oklch(0.363 0.071 80.707);
--secondary: oklch(0.969 0.013 265.943);
--secondary-foreground: oklch(0.422 0.186 262.72);
--accent: oklch(0.969 0.013 265.943);
--accent-foreground: oklch(0.422 0.186 262.72);
--destructive: oklch(0.353 0.109 38.936);
--destructive-foreground: oklch(0.845 0.084 42.518);
--ring: oklch(0.985 0.013 86.053);
--chart-1: oklch(0.985 0.013 86.053);
--chart-2: oklch(0.969 0.013 265.943);
--chart-3: oklch(0.969 0.013 265.943);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.986 0.013 86.055);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 91.783);
--foreground: oklch(0.993 0.001 86.012);
--muted: oklch(0.234 0.007 265.851);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.124 0.014 91.783);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.014 91.783);
--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.985 0.013 86.053);
--primary-foreground: oklch(0.363 0.071 80.707);
--secondary: oklch(0.969 0.013 265.943);
--secondary-foreground: oklch(0.422 0.186 262.72);
--accent: oklch(0.969 0.013 265.943);
--accent-foreground: oklch(0.422 0.186 262.72);
--destructive: oklch(0.624 0.207 36.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.013 86.053);
--chart-1: oklch(0.985 0.013 86.053);
--chart-2: oklch(0.969 0.013 265.943);
--chart-3: oklch(0.969 0.013 265.943);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.986 0.013 86.055);
}