Loathsome is a shadcn/ui theme built around a cyan primary color (#36c0d9) with red accents (#d94e36). The light mode uses a neutral background (#fbfefe). Dark mode keeps the cyan primary (#36c0d9) on a cyan-tinted background (#070d0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #070d0eblack |
| Foreground | #020708black | #ffffffwhite |
| Card | #f6fcfdmintcream | #081011black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f6fcfdmintcream | #081011black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #36c0d9mediumturquoise | #36c0d9mediumturquoise |
| Primary foreground | #0b3138darkslategray | #0b3138darkslategray |
| Secondary | #d94e36chocolate | #d94e36chocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5d9d7gainsboro | #281c1ablack |
| Muted foreground | #544745darkslategray | #baadabdarkgray |
| Accent | #d94e36chocolate | #d94e36chocolate |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #851a05maroon | #f85635tomato |
| Destructive foreground | #fdc9bfpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #36c0d9mediumturquoise | #36c0d9mediumturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 4.12:1 | AA Large |
| Muted text | 6.44:1 | AA |
| Accent | 4.12:1 | AA Large |
| Destructive | 6.65:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 4.12:1 | AA Large |
| Muted text | 7.57:1 | AAA |
| Accent | 4.12:1 | AA Large |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Loathsome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 209.46);
--foreground: oklch(0.122 0.013 205.96);
--muted: oklch(0.894 0.013 29.524);
--muted-foreground: oklch(0.411 0.018 29.687);
--popover: oklch(0.988 0.006 209.452);
--popover-foreground: oklch(0.097 0.011 205.96);
--card: oklch(0.988 0.006 209.452);
--card-foreground: oklch(0.097 0.011 205.96);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.118 212.399);
--primary-foreground: oklch(0.29 0.043 211.698);
--secondary: oklch(0.609 0.178 32.283);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.609 0.178 32.283);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.402 0.145 32.7);
--destructive-foreground: oklch(0.879 0.061 31.34);
--ring: oklch(0.747 0.118 212.399);
--chart-1: oklch(0.747 0.118 212.399);
--chart-2: oklch(0.609 0.178 32.283);
--chart-3: oklch(0.609 0.178 32.283);
--chart-4: oklch(0.629 0.168 32.065);
--chart-5: oklch(0.754 0.121 212.661);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.01 208.759);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.019 29.964);
--muted-foreground: oklch(0.758 0.015 29.548);
--popover: oklch(0.165 0.012 209.454);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.165 0.012 209.454);
--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.747 0.118 212.399);
--primary-foreground: oklch(0.29 0.043 211.698);
--secondary: oklch(0.609 0.178 32.283);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.609 0.178 32.283);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.667 0.204 33.209);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.747 0.118 212.399);
--chart-1: oklch(0.747 0.118 212.399);
--chart-2: oklch(0.609 0.178 32.283);
--chart-3: oklch(0.609 0.178 32.283);
--chart-4: oklch(0.629 0.168 32.065);
--chart-5: oklch(0.754 0.121 212.661);
}