Apron is a shadcn/ui theme built around a green primary color (#317f1f) with red accents (#7f1f31). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#317f1f) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040803black |
| Foreground | #071005black | #f9fcf8mintcream |
| Card | #fbfefbwhite | #040803black |
| Card foreground | #071005black | #f9fcf8mintcream |
| Popover | #fbfefbwhite | #040803black |
| Popover foreground | #071005black | #f9fcf8mintcream |
| Primary | #317f1fforestgreen | #317f1fforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1f317fmidnightblue | #1f317fmidnightblue |
| Secondary foreground | #dadff6lavender | #dadff6lavender |
| Muted | #d9dce8gainsboro | #171a26black |
| Muted foreground | #464853darkslategray | #acaeb9darkgray |
| Accent | #7f1f31brown | #7f1f31brown |
| Accent foreground | #f6dadfmistyrose | #f6dadfmistyrose |
| Destructive | #b32414firebrick | #e83f2ccrimson |
| Destructive foreground | #fefbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #317f1fforestgreen | #317f1fforestgreen |
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 | 5.00:1 | AA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Apron in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 139.986);
--foreground: oklch(0.158 0.029 138.714);
--muted: oklch(0.895 0.017 275.918);
--muted-foreground: oklch(0.404 0.019 275.499);
--popover: oklch(0.994 0.005 139.986);
--popover-foreground: oklch(0.158 0.029 138.714);
--card: oklch(0.994 0.005 139.986);
--card-foreground: oklch(0.158 0.029 138.714);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.529 0.151 140.411);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.35 0.135 268.675);
--secondary-foreground: oklch(0.907 0.032 275.684);
--accent: oklch(0.402 0.13 15.112);
--accent-foreground: oklch(0.913 0.032 5.219);
--destructive: oklch(0.499 0.181 30.499);
--destructive-foreground: oklch(0.99 0.004 25.022);
--ring: oklch(0.529 0.151 140.411);
--chart-1: oklch(0.529 0.151 140.411);
--chart-2: oklch(0.35 0.135 268.675);
--chart-3: oklch(0.402 0.13 15.112);
--chart-4: oklch(0.372 0.145 268.552);
--chart-5: oklch(0.535 0.156 140.484);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.019 138.476);
--foreground: oklch(0.987 0.006 139.986);
--muted: oklch(0.221 0.024 274.492);
--muted-foreground: oklch(0.753 0.016 275.875);
--popover: oklch(0.123 0.019 138.476);
--popover-foreground: oklch(0.987 0.006 139.986);
--card: oklch(0.123 0.019 138.476);
--card-foreground: oklch(0.987 0.006 139.986);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.529 0.151 140.411);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.35 0.135 268.675);
--secondary-foreground: oklch(0.907 0.032 275.684);
--accent: oklch(0.402 0.13 15.112);
--accent-foreground: oklch(0.913 0.032 5.219);
--destructive: oklch(0.617 0.208 30.254);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.529 0.151 140.411);
--chart-1: oklch(0.529 0.151 140.411);
--chart-2: oklch(0.35 0.135 268.675);
--chart-3: oklch(0.402 0.13 15.112);
--chart-4: oklch(0.372 0.145 268.552);
--chart-5: oklch(0.535 0.156 140.484);
}