Accountability is a shadcn/ui theme built around a muted light violet primary color (#ece9f2) with muted light violet accents (#d4cede). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#ece9f2) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #09060eblack |
| Foreground | #000000black | #f7f7f8whitesmoke |
| Card | #fcfbfewhite | #09060eblack |
| Card foreground | #000000black | #f7f7f8whitesmoke |
| Popover | #fcfbfewhite | #09060eblack |
| Popover foreground | #000000black | #f7f7f8whitesmoke |
| Primary | #ece9f2lavender | #ece9f2lavender |
| Primary foreground | #4e3e6adarkslateblue | #4e3e6adarkslateblue |
| Secondary | #e7e6ealavender | #2a272fdarkslategray |
| Secondary foreground | #4d4757darkslategray | #c3bfcasilver |
| Muted | #d6cde4gainsboro | #231b32darkslategray |
| Muted foreground | #3f3c44darkslategray | #bebbc3silver |
| Accent | #d4cedelightgrey | #423851darkslategray |
| Accent foreground | #3a3249darkslategray | #dcd8e4gainsboro |
| Destructive | #600f06maroon | #e1230eorangered |
| Destructive foreground | #f9a89flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ece9f2lavender | #ece9f2lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Accountability in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 302.857);
--foreground: oklch(0 0 0);
--muted: oklch(0.863 0.033 302.353);
--muted-foreground: oklch(0.362 0.014 302.359);
--popover: oklch(0.989 0.005 302.857);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 302.857);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.013 302.719);
--primary-foreground: oklch(0.402 0.074 299.972);
--secondary: oklch(0.927 0.006 302.824);
--secondary-foreground: oklch(0.41 0.027 301.921);
--accent: oklch(0.862 0.022 302.539);
--accent-foreground: oklch(0.335 0.042 300.993);
--destructive: oklch(0.319 0.115 30.674);
--destructive-foreground: oklch(0.808 0.097 26.408);
--ring: oklch(0.938 0.013 302.719);
--chart-1: oklch(0.938 0.013 302.719);
--chart-2: oklch(0.927 0.006 302.824);
--chart-3: oklch(0.862 0.022 302.539);
--chart-4: oklch(0.951 0.004 302.861);
--chart-5: oklch(0.937 0.014 302.695);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.021 302.365);
--foreground: oklch(0.976 0.002 302.893);
--muted: oklch(0.243 0.044 300.025);
--muted-foreground: oklch(0.798 0.011 302.717);
--popover: oklch(0.132 0.021 302.365);
--popover-foreground: oklch(0.976 0.002 302.893);
--card: oklch(0.132 0.021 302.365);
--card-foreground: oklch(0.976 0.002 302.893);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.013 302.719);
--primary-foreground: oklch(0.402 0.074 299.972);
--secondary: oklch(0.281 0.015 302.131);
--secondary-foreground: oklch(0.811 0.015 302.643);
--accent: oklch(0.362 0.044 301.064);
--accent-foreground: oklch(0.889 0.017 302.64);
--destructive: oklch(0.584 0.223 30.468);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.938 0.013 302.719);
--chart-1: oklch(0.938 0.013 302.719);
--chart-2: oklch(0.281 0.015 302.131);
--chart-3: oklch(0.362 0.044 301.064);
--chart-4: oklch(0.31 0.017 302.099);
--chart-5: oklch(0.937 0.014 302.695);
}