Apt is a shadcn/ui theme built around a vivid deep teal primary color (#02502d) with vivid deep pink accents (#500225). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid deep teal primary (#02502d) on a teal-tinted background (#050f0b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #050f0bblack |
| Foreground | #02120bblack | #ffffffwhite |
| Card | #f4fbf8mintcream | #07130dblack |
| Card foreground | #020d08black | #ffffffwhite |
| Popover | #f4fbf8mintcream | #07130dblack |
| Popover foreground | #020d08black | #ffffffwhite |
| Primary | #02502ddarkgreen | #02502ddarkgreen |
| Primary foreground | #24f999mediumspringgreen | #24f999mediumspringgreen |
| Secondary | #500225maroon | #500225maroon |
| Secondary foreground | #fc88bchotpink | #fc88bchotpink |
| Muted | #eee2e7mistyrose | #1d1116black |
| Muted foreground | #4d4247darkslategray | #bdb2b7silver |
| Accent | #500225maroon | #500225maroon |
| Accent foreground | #fc88bchotpink | #fc88bchotpink |
| Destructive | #652106maroon | #f15213orangered |
| Destructive foreground | #fabca3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #02502ddarkgreen | #02502ddarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 7.61:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 8.94:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Apt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 167.653);
--foreground: oklch(0.164 0.028 164.858);
--muted: oklch(0.923 0.016 348.279);
--muted-foreground: oklch(0.391 0.018 349.009);
--popover: oklch(0.982 0.009 167.572);
--popover-foreground: oklch(0.146 0.024 167.209);
--card: oklch(0.982 0.009 167.572);
--card-foreground: oklch(0.146 0.024 167.209);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.378 0.09 156.09);
--primary-foreground: oklch(0.867 0.203 156.27);
--secondary: oklch(0.28 0.11 1.58);
--secondary-foreground: oklch(0.768 0.152 352.906);
--accent: oklch(0.28 0.11 1.58);
--accent-foreground: oklch(0.768 0.152 352.906);
--destructive: oklch(0.35 0.105 39.225);
--destructive-foreground: oklch(0.845 0.079 42.543);
--ring: oklch(0.378 0.09 156.09);
--chart-1: oklch(0.378 0.09 156.09);
--chart-2: oklch(0.28 0.11 1.58);
--chart-3: oklch(0.28 0.11 1.58);
--chart-4: oklch(0.314 0.124 2.437);
--chart-5: oklch(0.382 0.092 155.832);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.019 165.87);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.024 350.94);
--muted-foreground: oklch(0.774 0.015 348.329);
--popover: oklch(0.172 0.022 164.362);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.172 0.022 164.362);
--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.378 0.09 156.09);
--primary-foreground: oklch(0.867 0.203 156.27);
--secondary: oklch(0.28 0.11 1.58);
--secondary-foreground: oklch(0.768 0.152 352.906);
--accent: oklch(0.28 0.11 1.58);
--accent-foreground: oklch(0.768 0.152 352.906);
--destructive: oklch(0.651 0.206 38.026);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.09 156.09);
--chart-1: oklch(0.378 0.09 156.09);
--chart-2: oklch(0.28 0.11 1.58);
--chart-3: oklch(0.28 0.11 1.58);
--chart-4: oklch(0.314 0.124 2.437);
--chart-5: oklch(0.382 0.092 155.832);
}