Atom One Light is a shadcn/ui theme built around a muted deep blue primary color (#121417) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the muted deep blue primary (#121417) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #383a42darkslategray | #383a42darkslategray |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #2d2e34darkslategray | #2d2e34darkslategray |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #212227black | #212227black |
| Primary | #121417black | #121417black |
| Primary foreground | #a4abb7darkgray | #a4abb7darkgray |
| Secondary | #bebfc1silver | #bebfc1silver |
| Secondary foreground | #252627darkslategray | #252627darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #db0d06red | #db0d06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #121417black | #121417black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.85:1 | AAA |
| Text on card | 12.38:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.16:1 | AA |
| Text on background | 10.85:1 | AAA |
| Text on card | 12.38:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.16:1 | AA |
Paste this into your globals.css to use Atom One Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.351 0.014 274.517);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.253 0.009 274.584);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.303 0.011 274.544);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.19 0.007 258.369);
--primary-foreground: oklch(0.74 0.019 258.361);
--secondary: oklch(0.804 0.002 258.32);
--secondary-foreground: oklch(0.269 0.002 258.331);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.562 0.227 29.355);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.19 0.007 258.369);
--chart-1: oklch(0.19 0.007 258.369);
--chart-2: oklch(0.804 0.002 258.32);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.828 0.002 258.319);
--chart-5: oklch(0.189 0.008 258.372);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.351 0.014 274.517);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.253 0.009 274.584);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.303 0.011 274.544);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.19 0.007 258.369);
--primary-foreground: oklch(0.74 0.019 258.361);
--secondary: oklch(0.804 0.002 258.32);
--secondary-foreground: oklch(0.269 0.002 258.331);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.562 0.227 29.355);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.19 0.007 258.369);
--chart-1: oklch(0.19 0.007 258.369);
--chart-2: oklch(0.804 0.002 258.32);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.828 0.002 258.319);
--chart-5: oklch(0.189 0.008 258.372);
}