Ajar is a shadcn/ui theme built around a muted deep green primary color (#3d482d) with muted deep pink accents (#482d3d). The light mode uses a neutral background (#fafdf6). Dark mode keeps the muted deep green primary (#3d482d) on a green-tinted background (#0b0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf6mintcream | #0b0f05black |
| Foreground | #0e1703black | #ffffffwhite |
| Card | #fafdf6mintcream | #0b0f05black |
| Card foreground | #0e1703black | #ffffffwhite |
| Popover | #fafdf6mintcream | #0b0f05black |
| Popover foreground | #0e1703black | #ffffffwhite |
| Primary | #3d482ddarkslategray | #3d482ddarkslategray |
| Primary foreground | #d5decalightgrey | #d5decalightgrey |
| Secondary | #2d3d48darkslategray | #2d3d48darkslategray |
| Secondary foreground | #cad5delightgrey | #cad5delightgrey |
| Muted | #e3e9eelavender | #11181cblack |
| Muted foreground | #576670dimgray | #8f9ea8darkgray |
| Accent | #482d3ddarkslategray | #482d3ddarkslategray |
| Accent foreground | #decad5thistle | #decad5thistle |
| Destructive | #6b0500maroon | #f50c00red |
| Destructive foreground | #ffa39elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3d482ddarkslategray | #3d482ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.96:1 | AAA |
| Text on card | 17.96:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 4.84:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Ajar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 125.181);
--foreground: oklch(0.189 0.041 127.267);
--muted: oklch(0.93 0.009 238.504);
--muted-foreground: oklch(0.5 0.025 239.124);
--popover: oklch(0.991 0.01 125.181);
--popover-foreground: oklch(0.189 0.041 127.267);
--card: oklch(0.991 0.01 125.181);
--card-foreground: oklch(0.189 0.041 127.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.384 0.046 126.826);
--primary-foreground: oklch(0.888 0.028 125.49);
--secondary: oklch(0.351 0.028 239.682);
--secondary-foreground: oklch(0.868 0.017 238.645);
--accent: oklch(0.336 0.047 344.014);
--accent-foreground: oklch(0.858 0.027 341.735);
--destructive: oklch(0.335 0.133 30.346);
--destructive-foreground: oklch(0.806 0.11 23.072);
--ring: oklch(0.384 0.046 126.826);
--chart-1: oklch(0.384 0.046 126.826);
--chart-2: oklch(0.351 0.028 239.682);
--chart-3: oklch(0.336 0.047 344.014);
--chart-4: oklch(0.38 0.031 239.718);
--chart-5: oklch(0.389 0.051 127.047);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.022 125.819);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.013 239.387);
--muted-foreground: oklch(0.69 0.023 238.859);
--popover: oklch(0.16 0.022 125.819);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.022 125.819);
--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.384 0.046 126.826);
--primary-foreground: oklch(0.888 0.028 125.49);
--secondary: oklch(0.351 0.028 239.682);
--secondary-foreground: oklch(0.868 0.017 238.645);
--accent: oklch(0.336 0.047 344.014);
--accent-foreground: oklch(0.858 0.027 341.735);
--destructive: oklch(0.611 0.248 29.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.384 0.046 126.826);
--chart-1: oklch(0.384 0.046 126.826);
--chart-2: oklch(0.351 0.028 239.682);
--chart-3: oklch(0.336 0.047 344.014);
--chart-4: oklch(0.38 0.031 239.718);
--chart-5: oklch(0.389 0.051 127.047);
}