Apt is a shadcn/ui theme built around a neutral gray primary color (#6f706b) with neutral gray accents (#706b6f). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#6f706b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040401black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #6f706bdimgray | #6f706bdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6b6f70dimgray | #6b6f70dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff5f6whitesmoke | #090f10black |
| Muted foreground | #465558darkslategray | #a7b6b9darkgray |
| Accent | #706b6fdimgray | #706b6fdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a11502darkred | #f62004red |
| Destructive foreground | #fedbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f706bdimgray | #6f706bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 5.06:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 5.19:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 5.06:1 | AA |
| Muted text | 9.20:1 | AAA |
| Accent | 5.19:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Apt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.014 113.586);
--muted: oklch(0.965 0.007 207.904);
--muted-foreground: oklch(0.439 0.019 207.837);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.014 113.586);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.014 113.586);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.007 112.776);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.005 207.897);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.008 329.865);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.453 0.175 30.984);
--destructive-foreground: oklch(0.921 0.04 26.784);
--ring: oklch(0.543 0.007 112.776);
--chart-1: oklch(0.543 0.007 112.776);
--chart-2: oklch(0.539 0.005 207.897);
--chart-3: oklch(0.535 0.008 329.865);
--chart-4: oklch(0.566 0.005 207.896);
--chart-5: oklch(0.551 0.017 113.107);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.01 207.835);
--muted-foreground: oklch(0.766 0.017 207.856);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.543 0.007 112.776);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.005 207.897);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.008 329.865);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.62 0.243 30.595);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.007 112.776);
--chart-1: oklch(0.543 0.007 112.776);
--chart-2: oklch(0.539 0.005 207.897);
--chart-3: oklch(0.535 0.008 329.865);
--chart-4: oklch(0.566 0.005 207.896);
--chart-5: oklch(0.551 0.017 113.107);
}