Loathsome is a shadcn/ui theme built around an indigo primary color (#252d83) with muted indigo accents (#aeb1cb). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#252d83) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #000000black |
| Foreground | #03040dblack | #fcfcfdwhite |
| Card | #f5f5fawhitesmoke | #030303black |
| Card foreground | #020208black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #000000black |
| Popover foreground | #03040dblack | #fcfcfdwhite |
| Primary | #252d83midnightblue | #252d83midnightblue |
| Primary foreground | #e3e5f7lavender | #e3e5f7lavender |
| Secondary | #d1d2dclightgrey | #1a1b1eblack |
| Secondary foreground | #353745darkslategray | #b1b1b9darkgray |
| Muted | #d6d7e1gainsboro | #1e1f29black |
| Muted foreground | #5e5f68dimgray | #9797a1darkgray |
| Accent | #aeb1cbsilver | #262731darkslategray |
| Accent foreground | #1c1d2cblack | #bdbecbsilver |
| Destructive | #9d1b02darkred | #fc2c03orangered |
| Destructive foreground | #ffd9d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252d83midnightblue | #252d83midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 4.42:1 | AA Large |
| Accent | 7.86:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Loathsome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 282.139);
--foreground: oklch(0.108 0.026 274.856);
--muted: oklch(0.881 0.013 281.956);
--muted-foreground: oklch(0.489 0.014 281.706);
--popover: oklch(0.981 0.004 282.139);
--popover-foreground: oklch(0.108 0.026 274.856);
--card: oklch(0.972 0.007 282.1);
--card-foreground: oklch(0.094 0.022 274.836);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.35 0.143 272.51);
--primary-foreground: oklch(0.926 0.025 281.756);
--secondary: oklch(0.865 0.013 281.953);
--secondary-foreground: oklch(0.34 0.026 280.865);
--accent: oklch(0.766 0.038 281.343);
--accent-foreground: oklch(0.237 0.028 280.033);
--destructive: oklch(0.449 0.167 32.398);
--destructive-foreground: oklch(0.915 0.043 31.209);
--ring: oklch(0.35 0.143 272.51);
--chart-1: oklch(0.35 0.143 272.51);
--chart-2: oklch(0.865 0.013 281.953);
--chart-3: oklch(0.766 0.038 281.343);
--chart-4: oklch(0.891 0.011 282.01);
--chart-5: oklch(0.347 0.15 271.793);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 282.181);
--muted: oklch(0.244 0.019 280.836);
--muted-foreground: oklch(0.68 0.013 281.882);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 282.181);
--card: oklch(0.092 0 180);
--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.35 0.143 272.51);
--primary-foreground: oklch(0.926 0.025 281.756);
--secondary: oklch(0.222 0.006 281.753);
--secondary-foreground: oklch(0.763 0.012 281.959);
--accent: oklch(0.276 0.018 281.084);
--accent-foreground: oklch(0.806 0.018 281.833);
--destructive: oklch(0.638 0.242 31.733);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.35 0.143 272.51);
--chart-1: oklch(0.35 0.143 272.51);
--chart-2: oklch(0.222 0.006 281.753);
--chart-3: oklch(0.276 0.018 281.084);
--chart-4: oklch(0.253 0.007 281.716);
--chart-5: oklch(0.347 0.15 271.793);
}