Lord is a shadcn/ui theme built around a light green primary color (#eafbef) with light purple accents (#fbeaf6). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#eafbef) on a green-tinted background (#070d09).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #070d09black |
| Foreground | #020804black | #fcfdfcwhite |
| Card | #f8fbf9mintcream | #09110bblack |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #f8fbf9mintcream | #09110bblack |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #eafbefhoneydew | #eafbefhoneydew |
| Primary foreground | #0d3f1cdarkgreen | #0d3f1cdarkgreen |
| Secondary | #fbeaf6lavenderblush | #fbeaf6lavenderblush |
| Secondary foreground | #931f70purple | #931f70purple |
| Muted | #e3d9e0gainsboro | #261c23black |
| Muted foreground | #504e4fdarkslategray | #b1afb0darkgray |
| Accent | #fbeaf6lavenderblush | #fbeaf6lavenderblush |
| Accent foreground | #931f70purple | #931f70purple |
| Destructive | #cf3d07firebrick | #ec4509orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eafbefhoneydew | #eafbefhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 11.16:1 | AAA |
| Secondary button | 6.80:1 | AA |
| Muted text | 5.98:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 11.16:1 | AAA |
| Secondary button | 6.80:1 | AA |
| Muted text | 7.56:1 | AAA |
| Accent | 6.80:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Lord in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 155.827);
--foreground: oklch(0.123 0.02 155.367);
--muted: oklch(0.895 0.015 336.187);
--muted-foreground: oklch(0.427 0.003 335.989);
--popover: oklch(0.986 0.004 155.786);
--popover-foreground: oklch(0.098 0.016 155.367);
--card: oklch(0.986 0.004 155.786);
--card-foreground: oklch(0.098 0.016 155.367);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.023 155.408);
--primary-foreground: oklch(0.326 0.08 149.35);
--secondary: oklch(0.953 0.023 336.326);
--secondary-foreground: oklch(0.461 0.171 343.17);
--accent: oklch(0.953 0.023 336.326);
--accent-foreground: oklch(0.461 0.171 343.17);
--destructive: oklch(0.57 0.19 36.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.023 155.408);
--chart-1: oklch(0.971 0.023 155.408);
--chart-2: oklch(0.953 0.023 336.326);
--chart-3: oklch(0.953 0.023 336.326);
--chart-4: oklch(0.981 0.009 336.046);
--chart-5: oklch(0.972 0.024 155.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.014 154.959);
--foreground: oklch(0.993 0.003 155.818);
--muted: oklch(0.242 0.021 337.44);
--muted-foreground: oklch(0.756 0.002 335.927);
--popover: oklch(0.166 0.017 153.89);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.166 0.017 153.89);
--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.971 0.023 155.408);
--primary-foreground: oklch(0.326 0.08 149.35);
--secondary: oklch(0.953 0.023 336.326);
--secondary-foreground: oklch(0.461 0.171 343.17);
--accent: oklch(0.953 0.023 336.326);
--accent-foreground: oklch(0.461 0.171 343.17);
--destructive: oklch(0.629 0.211 36.128);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.023 155.408);
--chart-1: oklch(0.971 0.023 155.408);
--chart-2: oklch(0.953 0.023 336.326);
--chart-3: oklch(0.953 0.023 336.326);
--chart-4: oklch(0.981 0.009 336.046);
--chart-5: oklch(0.972 0.024 155.386);
}