Loquat is a shadcn/ui theme built around a vivid deep purple primary color (#330027) with vivid deep green accents (#00330c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#330027) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0509black |
| Foreground | #0e020bblack | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0d070cblack |
| Card foreground | #090107black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0509black |
| Popover foreground | #0e020bblack | #fdfcfdwhite |
| Primary | #330027black | #330027black |
| Primary foreground | #fe67dbviolet | #fe67dbviolet |
| Secondary | #00330cdarkgreen | #00330cdarkgreen |
| Secondary foreground | #01fe3clime | #01fe3clime |
| Muted | #f1f3f2whitesmoke | #0c0e0cblack |
| Muted foreground | #526055dimgray | #9fada2darkgray |
| Accent | #00330cdarkgreen | #00330cdarkgreen |
| Accent foreground | #01fe3clime | #01fe3clime |
| Destructive | #b02911firebrick | #e83617orangered |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #330027black | #330027black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 10.33:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 10.33:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 10.33:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 10.33:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Loquat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.04 335.172);
--muted: oklch(0.963 0.003 153.184);
--muted-foreground: oklch(0.475 0.025 152.357);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.04 335.172);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.034 334.392);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.217 0.093 339.866);
--primary-foreground: oklch(0.74 0.223 337.804);
--secondary: oklch(0.279 0.083 146.733);
--secondary-foreground: oklch(0.865 0.279 144.192);
--accent: oklch(0.279 0.083 146.733);
--accent-foreground: oklch(0.865 0.279 144.192);
--destructive: oklch(0.498 0.175 32.205);
--destructive-foreground: oklch(0.981 0.008 29.495);
--ring: oklch(0.217 0.093 339.866);
--chart-1: oklch(0.217 0.093 339.866);
--chart-2: oklch(0.279 0.083 146.733);
--chart-3: oklch(0.279 0.083 146.733);
--chart-4: oklch(0.33 0.101 145.952);
--chart-5: oklch(0.217 0.096 340);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.014 333.667);
--foreground: oklch(0.992 0.001 333.262);
--muted: oklch(0.16 0.005 152.694);
--muted-foreground: oklch(0.733 0.022 152.734);
--popover: oklch(0.127 0.014 333.667);
--popover-foreground: oklch(0.992 0.001 333.262);
--card: oklch(0.141 0.016 334.508);
--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.217 0.093 339.866);
--primary-foreground: oklch(0.74 0.223 337.804);
--secondary: oklch(0.279 0.083 146.733);
--secondary-foreground: oklch(0.865 0.279 144.192);
--accent: oklch(0.279 0.083 146.733);
--accent-foreground: oklch(0.865 0.279 144.192);
--destructive: oklch(0.609 0.217 32.116);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.093 339.866);
--chart-1: oklch(0.217 0.093 339.866);
--chart-2: oklch(0.279 0.083 146.733);
--chart-3: oklch(0.279 0.083 146.733);
--chart-4: oklch(0.33 0.101 145.952);
--chart-5: oklch(0.217 0.096 340);
}