Loathsome is a shadcn/ui theme built around a muted deep teal primary color (#0f1413) with muted teal accents (#accdc6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#0f1413) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #04100eblack | #f6f8f8whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #04100eblack | #f6f8f8whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #04100eblack | #f6f8f8whitesmoke |
| Primary | #0f1413black | #0f1413black |
| Primary foreground | #9fb7b2darkgray | #9fb7b2darkgray |
| Secondary | #c7d6d3lightgrey | #1a1e1dblack |
| Secondary foreground | #2d3e3adarkslategray | #afbbb8silver |
| Muted | #dce0dfgainsboro | #1f2322black |
| Muted foreground | #464948darkslategray | #b6b9b8silver |
| Accent | #accdc6silver | #273532darkslategray |
| Accent foreground | #1b2d29darkslategray | #becfccsilver |
| Destructive | #cb3b06firebrick | #f8561borangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f1413black | #0f1413black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 5.05:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.34:1 | AA |
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.16 0.02 179.565);
--muted: oklch(0.903 0.005 181.907);
--muted-foreground: oklch(0.402 0.004 181.796);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.02 179.565);
--card: oklch(1 0 180);
--card-foreground: oklch(0.16 0.02 179.565);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.187 0.008 180.823);
--primary-foreground: oklch(0.759 0.027 181.051);
--secondary: oklch(0.864 0.017 181.502);
--secondary-foreground: oklch(0.348 0.023 180.082);
--accent: oklch(0.823 0.037 180.771);
--accent-foreground: oklch(0.279 0.025 179.293);
--destructive: oklch(0.561 0.188 36.247);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.187 0.008 180.823);
--chart-1: oklch(0.187 0.008 180.823);
--chart-2: oklch(0.864 0.017 181.502);
--chart-3: oklch(0.823 0.037 180.771);
--chart-4: oklch(0.886 0.015 181.606);
--chart-5: oklch(0.188 0.01 180.564);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 182.01);
--muted: oklch(0.253 0.007 181.279);
--muted-foreground: oklch(0.783 0.003 181.949);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.002 182.01);
--card: oklch(0 0 0);
--card-foreground: oklch(0.978 0.002 182.01);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.187 0.008 180.823);
--primary-foreground: oklch(0.759 0.027 181.051);
--secondary: oklch(0.231 0.007 181.214);
--secondary-foreground: oklch(0.782 0.014 181.578);
--accent: oklch(0.315 0.019 180.263);
--accent-foreground: oklch(0.842 0.019 181.432);
--destructive: oklch(0.667 0.208 37.712);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.187 0.008 180.823);
--chart-1: oklch(0.187 0.008 180.823);
--chart-2: oklch(0.231 0.007 181.214);
--chart-3: oklch(0.315 0.019 180.263);
--chart-4: oklch(0.265 0.009 181.15);
--chart-5: oklch(0.188 0.01 180.564);
}