Atelier is a shadcn/ui theme built around a muted purple primary color (#7d5972) with muted light purple accents (#e8dee5). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the muted purple primary (#7d5972) on a neutral background (#070406).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #070406black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdf7fbsnow | #070406black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdf7fbsnow | #070406black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #7d5972dimgray | #7d5972dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8dee5gainsboro | #392833darkslategray |
| Secondary foreground | #573d4fdarkslategray | #d3c0cdthistle |
| Muted | #e6d1dfgainsboro | #2e1927black |
| Muted foreground | #634b5bdimgray | #b49caddarkgray |
| Accent | #e8dee5gainsboro | #392833darkslategray |
| Accent foreground | #573d4fdarkslategray | #d3c0cdthistle |
| Destructive | #812303maroon | #f9561forangered |
| Destructive foreground | #fdcab9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d5972dimgray | #7d5972dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.92:1 | AA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 5.92:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Atelier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 336.731);
--foreground: oklch(0 0 0);
--muted: oklch(0.882 0.03 337.202);
--muted-foreground: oklch(0.443 0.041 338.286);
--popover: oklch(0.981 0.009 336.731);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 336.731);
--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.51 0.06 338.703);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.911 0.014 336.847);
--secondary-foreground: oklch(0.396 0.044 338.599);
--accent: oklch(0.911 0.014 336.847);
--accent-foreground: oklch(0.396 0.044 338.599);
--destructive: oklch(0.404 0.134 36.317);
--destructive-foreground: oklch(0.88 0.063 39.244);
--ring: oklch(0.51 0.06 338.703);
--chart-1: oklch(0.51 0.06 338.703);
--chart-2: oklch(0.911 0.014 336.847);
--chart-3: oklch(0.911 0.014 336.847);
--chart-4: oklch(0.935 0.01 336.762);
--chart-5: oklch(0.509 0.07 339.07);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.012 336.808);
--foreground: oklch(0.992 0.002 336.59);
--muted: oklch(0.249 0.04 339.5);
--muted-foreground: oklch(0.72 0.037 337.52);
--popover: oklch(0.111 0.012 336.808);
--popover-foreground: oklch(0.992 0.002 336.59);
--card: oklch(0.111 0.012 336.808);
--card-foreground: oklch(0.992 0.002 336.59);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.51 0.06 338.703);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.301 0.031 338.445);
--secondary-foreground: oklch(0.828 0.026 337.171);
--accent: oklch(0.301 0.031 338.445);
--accent-foreground: oklch(0.828 0.026 337.171);
--destructive: oklch(0.668 0.209 37.001);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.51 0.06 338.703);
--chart-1: oklch(0.51 0.06 338.703);
--chart-2: oklch(0.301 0.031 338.445);
--chart-3: oklch(0.301 0.031 338.445);
--chart-4: oklch(0.33 0.035 338.503);
--chart-5: oklch(0.509 0.07 339.07);
}