Leave is a shadcn/ui theme built around a light green primary color (#c9efc3) with light red accents (#efc3c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c9efc3) on a green-tinted background (#070f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070f06black |
| Foreground | #071405black | #f5faf5whitesmoke |
| Card | #fcfcfcsnow | #081307black |
| Card foreground | #061004black | #f9fcf8mintcream |
| Popover | #ffffffwhite | #070f06black |
| Popover foreground | #071405black | #f5faf5whitesmoke |
| Primary | #c9efc3lightgrey | #c9efc3lightgrey |
| Primary foreground | #071405black | #071405black |
| Secondary | #c3c9eflightsteelblue | #c3c9eflightsteelblue |
| Secondary foreground | #1b2564midnightblue | #1b2564midnightblue |
| Muted | #f0f1f4whitesmoke | #0b0b0fblack |
| Muted foreground | #4b4d58darkslategray | #a7a9b4darkgray |
| Accent | #efc3c9pink | #efc3c9pink |
| Accent foreground | #641b25maroon | #641b25maroon |
| Destructive | #b8420ffirebrick | #ed5b1dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9efc3lightgrey | #c9efc3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 14.90:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 18.42:1 | AAA |
| Text on card | 18.38:1 | AAA |
| Primary button | 14.90:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Leave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.174 0.035 140.414);
--muted: oklch(0.958 0.004 279.271);
--muted-foreground: oklch(0.422 0.019 278.629);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.174 0.035 140.414);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.158 0.031 140.119);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.912 0.07 141.375);
--primary-foreground: oklch(0.174 0.035 140.414);
--secondary: oklch(0.843 0.053 278.312);
--secondary-foreground: oklch(0.3 0.111 271.347);
--accent: oklch(0.857 0.05 9.173);
--accent-foreground: oklch(0.345 0.104 16.906);
--destructive: oklch(0.538 0.163 39.493);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.07 141.375);
--chart-1: oklch(0.912 0.07 141.375);
--chart-2: oklch(0.843 0.053 278.312);
--chart-3: oklch(0.857 0.05 9.173);
--chart-4: oklch(0.875 0.042 278.572);
--chart-5: oklch(0.914 0.074 141.365);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.025 140.409);
--foreground: oklch(0.98 0.008 141.568);
--muted: oklch(0.152 0.007 278.592);
--muted-foreground: oklch(0.736 0.016 278.998);
--popover: oklch(0.156 0.025 140.409);
--popover-foreground: oklch(0.98 0.008 141.568);
--card: oklch(0.171 0.029 140.709);
--card-foreground: oklch(0.987 0.006 141.577);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.912 0.07 141.375);
--primary-foreground: oklch(0.174 0.035 140.414);
--secondary: oklch(0.843 0.053 278.312);
--secondary-foreground: oklch(0.3 0.111 271.347);
--accent: oklch(0.857 0.05 9.173);
--accent-foreground: oklch(0.345 0.104 16.906);
--destructive: oklch(0.655 0.192 40.065);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.07 141.375);
--chart-1: oklch(0.912 0.07 141.375);
--chart-2: oklch(0.843 0.053 278.312);
--chart-3: oklch(0.857 0.05 9.173);
--chart-4: oklch(0.875 0.042 278.572);
--chart-5: oklch(0.914 0.074 141.365);
}