Loathsome is a shadcn/ui theme built around a pink primary color (#d89dbc) with red accents (#d89d9f). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#d89dbc) on a pink-tinted background (#0b0408).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b0408black |
| Foreground | #12020bblack | #ffffffwhite |
| Card | #fcf8fasnow | #0f050bblack |
| Card foreground | #0d0208black | #ffffffwhite |
| Popover | #fefbfdsnow | #0b0408black |
| Popover foreground | #12020bblack | #ffffffwhite |
| Primary | #d89dbcplum | #d89dbcplum |
| Primary foreground | #2f1322black | #2f1322black |
| Secondary | #d69dd8plum | #d69dd8plum |
| Secondary foreground | #2e132fdarkslategray | #2e132fdarkslategray |
| Muted | #f3ecf4whitesmoke | #130b13black |
| Muted foreground | #5f4860dimgray | #b69fb7darkgray |
| Accent | #d89d9ftan | #d89d9ftan |
| Accent foreground | #2f1314black | #2f1314black |
| Destructive | #6a240bmaroon | #d44916chocolate |
| Destructive foreground | #f7c3b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d89dbcplum | #d89dbcplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Loathsome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 343.516);
--foreground: oklch(0.132 0.039 346.05);
--muted: oklch(0.951 0.013 324.708);
--muted-foreground: oklch(0.436 0.048 325.282);
--popover: oklch(0.991 0.003 343.516);
--popover-foreground: oklch(0.132 0.039 346.05);
--card: oklch(0.982 0.006 343.59);
--card-foreground: oklch(0.118 0.034 344.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.76 0.081 345.96);
--primary-foreground: oklch(0.235 0.052 348.585);
--secondary: oklch(0.768 0.104 325.425);
--secondary-foreground: oklch(0.241 0.064 326.087);
--accent: oklch(0.751 0.071 16.675);
--accent-foreground: oklch(0.23 0.047 19.339);
--destructive: oklch(0.364 0.106 38.629);
--destructive-foreground: oklch(0.859 0.065 40.917);
--ring: oklch(0.76 0.081 345.96);
--chart-1: oklch(0.76 0.081 345.96);
--chart-2: oklch(0.768 0.104 325.425);
--chart-3: oklch(0.751 0.071 16.675);
--chart-4: oklch(0.793 0.092 325.317);
--chart-5: oklch(0.759 0.087 346.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.02 343.517);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.021 325.363);
--muted-foreground: oklch(0.73 0.042 324.978);
--popover: oklch(0.124 0.02 343.517);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.022 345.194);
--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.76 0.081 345.96);
--primary-foreground: oklch(0.235 0.052 348.585);
--secondary: oklch(0.768 0.104 325.425);
--secondary-foreground: oklch(0.241 0.064 326.087);
--accent: oklch(0.751 0.071 16.675);
--accent-foreground: oklch(0.23 0.047 19.339);
--destructive: oklch(0.594 0.184 37.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.76 0.081 345.96);
--chart-1: oklch(0.76 0.081 345.96);
--chart-2: oklch(0.768 0.104 325.425);
--chart-3: oklch(0.751 0.071 16.675);
--chart-4: oklch(0.793 0.092 325.317);
--chart-5: oklch(0.759 0.087 346.134);
}