Useless Malarca is a shadcn/ui theme built around a neutral gray primary color (#6d7e6f) with neutral gray accents (#7e6d7b). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#6d7e6f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #000000black |
| Foreground | #010501black | #ffffffwhite |
| Card | #f4faf5whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #000000black |
| Popover foreground | #010501black | #ffffffwhite |
| Primary | #6d7e6fdimgray | #6d7e6fdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7e6d7bgray | #7e6d7bgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3d9e1gainsboro | #261c25black |
| Muted foreground | #575256dimgray | #ada8addarkgray |
| Accent | #7e6d7bgray | #7e6d7bgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e60800red | #f00800red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eaf0ebwhitesmoke | #1e2920black |
| Input | #eaf0ebwhitesmoke | #1e2920black |
| Ring | #6d7e6fdimgray | #6d7e6fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 4.81:1 | AA |
| Muted text | 5.55:1 | AA |
| Accent | 4.81:1 | AA |
| Destructive | 4.79:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 4.81:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 4.81:1 | AA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Useless Malarca in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 149.606);
--foreground: oklch(0.099 0.023 148.109);
--muted: oklch(0.895 0.016 329.899);
--muted-foreground: oklch(0.444 0.01 329.947);
--popover: oklch(0.987 0.006 149.606);
--popover-foreground: oklch(0.099 0.023 148.109);
--card: oklch(0.98 0.009 149.567);
--card-foreground: oklch(0 0 0);
--border: oklch(0.949 0.008 149.574);
--input: oklch(0.949 0.008 149.574);
--primary: oklch(0.574 0.029 149.039);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.555 0.029 330.318);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.555 0.029 330.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.581 0.236 29.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.029 149.039);
--chart-1: oklch(0.574 0.029 149.039);
--chart-2: oklch(0.555 0.029 330.318);
--chart-3: oklch(0.555 0.029 330.318);
--chart-4: oklch(0.581 0.031 330.322);
--chart-5: oklch(0.579 0.041 148.763);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.022 330.743);
--muted-foreground: oklch(0.738 0.008 329.824);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.268 0.023 148.574);
--input: oklch(0.268 0.023 148.574);
--primary: oklch(0.574 0.029 149.039);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.555 0.029 330.318);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.555 0.029 330.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.601 0.244 29.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.029 149.039);
--chart-1: oklch(0.574 0.029 149.039);
--chart-2: oklch(0.555 0.029 330.318);
--chart-3: oklch(0.555 0.029 330.318);
--chart-4: oklch(0.581 0.031 330.322);
--chart-5: oklch(0.579 0.041 148.763);
}