Loving is a shadcn/ui theme built around a muted deep orange primary color (#252118) with muted deep blue accents (#181d25). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#252118) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #140f06black | #fbfaf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #140f06black | #fbfaf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #140f06black | #fbfaf9snow |
| Primary | #252118black | #252118black |
| Primary foreground | #c7bca9silver | #c7bca9silver |
| Secondary | #181d25black | #181d25black |
| Secondary foreground | #a9b3c7silver | #a9b3c7silver |
| Muted | #ecedeewhitesmoke | #111213black |
| Muted foreground | #505358darkslategray | #a7aaafdarkgray |
| Accent | #181d25black | #181d25black |
| Accent foreground | #a9b3c7silver | #a9b3c7silver |
| Destructive | #c8300efirebrick | #e53710orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252118black | #252118black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 8.58:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 8.58:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.06:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Loving in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.171 0.021 83.874);
--muted: oklch(0.946 0.002 263.051);
--muted-foreground: oklch(0.441 0.01 263.002);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.171 0.021 83.874);
--card: oklch(1 0 180);
--card-foreground: oklch(0.171 0.021 83.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.248 0.017 82.893);
--primary-foreground: oklch(0.799 0.029 83.039);
--secondary: oklch(0.229 0.018 262.748);
--secondary-foreground: oklch(0.765 0.03 262.937);
--accent: oklch(0.229 0.018 262.748);
--accent-foreground: oklch(0.765 0.03 262.937);
--destructive: oklch(0.547 0.193 33.178);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.248 0.017 82.893);
--chart-1: oklch(0.248 0.017 82.893);
--chart-2: oklch(0.229 0.018 262.748);
--chart-3: oklch(0.229 0.018 262.748);
--chart-4: oklch(0.259 0.021 262.716);
--chart-5: oklch(0.25 0.019 82.821);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 83.057);
--muted: oklch(0.18 0.003 263.024);
--muted-foreground: oklch(0.736 0.009 263.031);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.002 83.057);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.002 83.057);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.248 0.017 82.893);
--primary-foreground: oklch(0.799 0.029 83.039);
--secondary: oklch(0.229 0.018 262.748);
--secondary-foreground: oklch(0.765 0.03 262.937);
--accent: oklch(0.229 0.018 262.748);
--accent-foreground: oklch(0.765 0.03 262.937);
--destructive: oklch(0.604 0.215 33.086);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.248 0.017 82.893);
--chart-1: oklch(0.248 0.017 82.893);
--chart-2: oklch(0.229 0.018 262.748);
--chart-3: oklch(0.229 0.018 262.748);
--chart-4: oklch(0.259 0.021 262.716);
--chart-5: oklch(0.25 0.019 82.821);
}