Article is a shadcn/ui theme built around a vivid purple primary color (#f91af5) with vivid green accents (#1af91e). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#f91af5) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #0b040bblack |
| Foreground | #040104black | #ffffffwhite |
| Card | #fcf3fcghostwhite | #0f060fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf3fcghostwhite | #0f060fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f91af5magenta | #f91af5magenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1af91elime | #1af91elime |
| Secondary foreground | #024603darkgreen | #024603darkgreen |
| Muted | #dbe1dbgainsboro | #1e241eblack |
| Muted foreground | #444b44darkslategray | #b4bbb4silver |
| Accent | #1af91elime | #1af91elime |
| Accent foreground | #024603darkgreen | #024603darkgreen |
| Destructive | #962d03saddlebrown | #e14305orangered |
| Destructive foreground | #fedbcdbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f91af5magenta | #f91af5magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 3.22:1 | AA Large |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 3.22:1 | AA Large |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Article in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 326.133);
--foreground: oklch(0.085 0.023 327.785);
--muted: oklch(0.903 0.01 145.962);
--muted-foreground: oklch(0.404 0.015 145.75);
--popover: oklch(0.973 0.015 326.174);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.015 326.174);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.308 329.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.853 0.283 142.667);
--secondary-foreground: oklch(0.341 0.113 142.764);
--accent: oklch(0.853 0.283 142.667);
--accent-foreground: oklch(0.341 0.113 142.764);
--destructive: oklch(0.453 0.147 37.622);
--destructive-foreground: oklch(0.917 0.044 42.776);
--ring: oklch(0.692 0.308 329.13);
--chart-1: oklch(0.692 0.308 329.13);
--chart-2: oklch(0.853 0.283 142.667);
--chart-3: oklch(0.853 0.283 142.667);
--chart-4: oklch(0.856 0.277 142.79);
--chart-5: oklch(0.698 0.313 329.156);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.023 327.329);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.014 145.595);
--muted-foreground: oklch(0.785 0.013 145.923);
--popover: oklch(0.14 0.027 327.437);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.027 327.437);
--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.692 0.308 329.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.853 0.283 142.667);
--secondary-foreground: oklch(0.341 0.113 142.764);
--accent: oklch(0.853 0.283 142.667);
--accent-foreground: oklch(0.341 0.113 142.764);
--destructive: oklch(0.608 0.203 36.704);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.308 329.13);
--chart-1: oklch(0.692 0.308 329.13);
--chart-2: oklch(0.853 0.283 142.667);
--chart-3: oklch(0.853 0.283 142.667);
--chart-4: oklch(0.856 0.277 142.79);
--chart-5: oklch(0.698 0.313 329.156);
}