Beloved is a shadcn/ui theme built around a muted green primary color (#a5b983) with muted pink accents (#b983a5). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#a5b983) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060703black |
| Foreground | #000000black | #fafaf9snow |
| Card | #fdfefbwhite | #060703black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fdfefbwhite | #060703black |
| Popover foreground | #000000black | #fafaf9snow |
| Primary | #a5b983darkseagreen | #a5b983darkseagreen |
| Primary foreground | #050704black | #050704black |
| Secondary | #83a5b9darkgray | #83a5b9darkgray |
| Secondary foreground | #040507black | #040507black |
| Muted | #d4e4ecgainsboro | #13222bblack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #b983a5rosybrown | #b983a5rosybrown |
| Accent foreground | #070405black | #070405black |
| Destructive | #91180ddarkred | #ec3827crimson |
| Destructive foreground | #fbd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5b983darkseagreen | #a5b983darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 9.52:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 9.52:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Beloved in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 122.983);
--foreground: oklch(0 0 0);
--muted: oklch(0.909 0.02 232.904);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.995 0.004 122.983);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.004 122.983);
--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.757 0.077 124.566);
--primary-foreground: oklch(0.122 0.01 122.645);
--secondary: oklch(0.704 0.048 233.731);
--secondary-foreground: oklch(0.116 0.006 229.123);
--accent: oklch(0.674 0.081 341.127);
--accent-foreground: oklch(0.111 0.01 338.848);
--destructive: oklch(0.425 0.158 30.03);
--destructive-foreground: oklch(0.911 0.04 24.059);
--ring: oklch(0.757 0.077 124.566);
--chart-1: oklch(0.757 0.077 124.566);
--chart-2: oklch(0.704 0.048 233.731);
--chart-3: oklch(0.674 0.081 341.127);
--chart-4: oklch(0.728 0.044 233.573);
--chart-5: oklch(0.764 0.085 124.73);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 122.487);
--foreground: oklch(0.986 0.002 122.953);
--muted: oklch(0.242 0.027 234.821);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.126 0.016 122.487);
--popover-foreground: oklch(0.986 0.002 122.953);
--card: oklch(0.126 0.016 122.487);
--card-foreground: oklch(0.986 0.002 122.953);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.757 0.077 124.566);
--primary-foreground: oklch(0.122 0.01 122.645);
--secondary: oklch(0.704 0.048 233.731);
--secondary-foreground: oklch(0.116 0.006 229.123);
--accent: oklch(0.674 0.081 341.127);
--accent-foreground: oklch(0.111 0.01 338.848);
--destructive: oklch(0.618 0.218 29.801);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.077 124.566);
--chart-1: oklch(0.757 0.077 124.566);
--chart-2: oklch(0.704 0.048 233.731);
--chart-3: oklch(0.674 0.081 341.127);
--chart-4: oklch(0.728 0.044 233.573);
--chart-5: oklch(0.764 0.085 124.73);
}