Apt is a shadcn/ui theme built around a green primary color (#a0dabc) with pink accents (#daa0be). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#a0dabc) on a green-tinted background (#060f0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060f0ablack |
| Foreground | #020805black | #ffffffwhite |
| Card | #fbfefcwhite | #060f0ablack |
| Card foreground | #020805black | #ffffffwhite |
| Popover | #fbfefcwhite | #060f0ablack |
| Popover foreground | #020805black | #ffffffwhite |
| Primary | #a0dabcsilver | #a0dabcsilver |
| Primary foreground | #143323darkslategray | #143323darkslategray |
| Secondary | #daa0beplum | #daa0beplum |
| Secondary foreground | #331424black | #331424black |
| Muted | #e0d6dbgainsboro | #291f24black |
| Muted foreground | #626061dimgray | #9f9d9edarkgray |
| Accent | #daa0beplum | #daa0beplum |
| Accent foreground | #331424black | #331424black |
| Destructive | #bd4200firebrick | #ff600aorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a0dabcsilver | #a0dabcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 4.41:1 | AA Large |
| Accent | 7.67:1 | AAA |
| Destructive | 5.33:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.92:1 | AA |
Paste this into your globals.css to use Apt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 164.182);
--foreground: oklch(0.124 0.017 164.4);
--muted: oklch(0.886 0.013 344.657);
--muted-foreground: oklch(0.491 0.003 344.437);
--popover: oklch(0.994 0.004 164.182);
--popover-foreground: oklch(0.124 0.017 164.4);
--card: oklch(0.994 0.004 164.182);
--card-foreground: oklch(0.124 0.017 164.4);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.84 0.073 161.788);
--primary-foreground: oklch(0.293 0.048 158.826);
--secondary: oklch(0.768 0.079 346.767);
--secondary-foreground: oklch(0.245 0.056 349.755);
--accent: oklch(0.768 0.079 346.767);
--accent-foreground: oklch(0.245 0.056 349.755);
--destructive: oklch(0.545 0.169 40.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.073 161.788);
--chart-1: oklch(0.84 0.073 161.788);
--chart-2: oklch(0.768 0.079 346.767);
--chart-3: oklch(0.768 0.079 346.767);
--chart-4: oklch(0.795 0.069 346.401);
--chart-5: oklch(0.843 0.078 161.618);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.017 162.716);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.018 346.02);
--muted-foreground: oklch(0.698 0.003 344.384);
--popover: oklch(0.155 0.017 162.716);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.017 162.716);
--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.84 0.073 161.788);
--primary-foreground: oklch(0.293 0.048 158.826);
--secondary: oklch(0.768 0.079 346.767);
--secondary-foreground: oklch(0.245 0.056 349.755);
--accent: oklch(0.768 0.079 346.767);
--accent-foreground: oklch(0.245 0.056 349.755);
--destructive: oklch(0.688 0.208 41.133);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.84 0.073 161.788);
--chart-1: oklch(0.84 0.073 161.788);
--chart-2: oklch(0.768 0.079 346.767);
--chart-3: oklch(0.768 0.079 346.767);
--chart-4: oklch(0.795 0.069 346.401);
--chart-5: oklch(0.843 0.078 161.618);
}