Unacceptable is a shadcn/ui theme built around a deep green primary color (#152817) with deep red accents (#281715). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the deep green primary (#152817) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #020302black |
| Foreground | #010401black | #f8fcf8mintcream |
| Card | #f5faf5whitesmoke | #040704black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f5faf5whitesmoke | #040704black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #152817black | #152817black |
| Primary foreground | #a1cea5darkseagreen | #a1cea5darkseagreen |
| Secondary | #171528black | #171528black |
| Secondary foreground | #a5a1cedarkgray | #a5a1cedarkgray |
| Muted | #e6e5eblavender | #14141ablack |
| Muted foreground | #5e5d65dimgray | #9b9aa2darkgray |
| Accent | #281715black | #281715black |
| Accent foreground | #cea5a1tan | #cea5a1tan |
| Destructive | #c50202firebrick | #fd0808red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #152817black | #152817black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Unacceptable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 148);
--foreground: oklch(0.097 0.016 146.858);
--muted: oklch(0.924 0.008 290.083);
--muted-foreground: oklch(0.482 0.012 289.761);
--popover: oklch(0.98 0.009 147.967);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.009 147.967);
--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.255 0.041 146.183);
--primary-foreground: oklch(0.808 0.073 147.056);
--secondary: oklch(0.208 0.037 286.52);
--secondary-foreground: oklch(0.729 0.064 288.528);
--accent: oklch(0.226 0.029 25.267);
--accent-foreground: oklch(0.758 0.048 24.318);
--destructive: oklch(0.517 0.212 29.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.041 146.183);
--chart-1: oklch(0.255 0.041 146.183);
--chart-2: oklch(0.208 0.037 286.52);
--chart-3: oklch(0.226 0.029 25.267);
--chart-4: oklch(0.235 0.045 286.194);
--chart-5: oklch(0.257 0.044 146.013);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.01 147.358);
--foreground: oklch(0.987 0.006 148.003);
--muted: oklch(0.194 0.012 289.058);
--muted-foreground: oklch(0.69 0.011 289.939);
--popover: oklch(0.119 0.012 147.358);
--popover-foreground: oklch(0.993 0.003 148.034);
--card: oklch(0.119 0.012 147.358);
--card-foreground: oklch(0.993 0.003 148.034);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.255 0.041 146.183);
--primary-foreground: oklch(0.808 0.073 147.056);
--secondary: oklch(0.208 0.037 286.52);
--secondary-foreground: oklch(0.729 0.064 288.528);
--accent: oklch(0.226 0.029 25.267);
--accent-foreground: oklch(0.758 0.048 24.318);
--destructive: oklch(0.625 0.254 29.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.041 146.183);
--chart-1: oklch(0.255 0.041 146.183);
--chart-2: oklch(0.208 0.037 286.52);
--chart-3: oklch(0.226 0.029 25.267);
--chart-4: oklch(0.235 0.045 286.194);
--chart-5: oklch(0.257 0.044 146.013);
}