Loathsome is a shadcn/ui theme built around a near-white primary color (#ebebea) with near-white accents (#ebeaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ebebea) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fbfbf8snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fbfbf8snow |
| Primary | #ebebealinen | #ebebealinen |
| Primary foreground | #535350darkslategray | #535350darkslategray |
| Secondary | #eaebeblavender | #eaebeblavender |
| Secondary foreground | #505353darkslategray | #505353darkslategray |
| Muted | #ecf4f4whitesmoke | #0b1313black |
| Muted foreground | #575b5bdimgray | #a4a7a8darkgray |
| Accent | #ebeaeblavender | #ebeaeblavender |
| Accent foreground | #535053darkslategray | #535053darkslategray |
| Destructive | #b62407firebrick | #e72e08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebebealinen | #ebebealinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 7.74:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Loathsome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.009 198.228);
--muted-foreground: oklch(0.468 0.004 198.22);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.94 0.001 107.191);
--primary-foreground: oklch(0.442 0.005 107.385);
--secondary: oklch(0.939 0.001 198.348);
--secondary-foreground: oklch(0.44 0.004 198.222);
--accent: oklch(0.938 0.001 326.066);
--accent-foreground: oklch(0.435 0.007 326.177);
--destructive: oklch(0.504 0.185 32.296);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.94 0.001 107.191);
--chart-1: oklch(0.94 0.001 107.191);
--chart-2: oklch(0.939 0.001 198.348);
--chart-3: oklch(0.938 0.001 326.066);
--chart-4: oklch(0.962 0.001 198.354);
--chart-5: oklch(0.941 0.003 107.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.004 107.239);
--muted: oklch(0.18 0.012 197.43);
--muted-foreground: oklch(0.727 0.004 198.279);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.004 107.239);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 107.204);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.94 0.001 107.191);
--primary-foreground: oklch(0.442 0.005 107.385);
--secondary: oklch(0.939 0.001 198.348);
--secondary-foreground: oklch(0.44 0.004 198.222);
--accent: oklch(0.938 0.001 326.066);
--accent-foreground: oklch(0.435 0.007 326.177);
--destructive: oklch(0.601 0.223 32.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.94 0.001 107.191);
--chart-1: oklch(0.94 0.001 107.191);
--chart-2: oklch(0.939 0.001 198.348);
--chart-3: oklch(0.938 0.001 326.066);
--chart-4: oklch(0.962 0.001 198.354);
--chart-5: oklch(0.941 0.003 107.222);
}