Chromolithograph is a shadcn/ui theme built around a near-white primary color (#fcf6fe) with near-white accents (#ebeaeb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-white primary (#fcf6fe) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030203black |
| Foreground | #070109black | #f9f5faghostwhite |
| Card | #fbf7fcghostwhite | #060307black |
| Card foreground | #030104black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #030203black |
| Popover foreground | #070109black | #f9f5faghostwhite |
| Primary | #fcf6feghostwhite | #fcf6feghostwhite |
| Primary foreground | #8513aedarkmagenta | #8513aedarkmagenta |
| Secondary | #ebeaeblavender | #342938darkslategray |
| Secondary foreground | #525053darkslategray | #cdc1d2thistle |
| Muted | #e8e0eblavender | #1c141fblack |
| Muted foreground | #69586fdimgray | #a190a7darkgray |
| Accent | #ebeaeblavender | #342938darkslategray |
| Accent foreground | #525053darkslategray | #cdc1d2thistle |
| Destructive | #bc3415firebrick | #ea6143tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcf6feghostwhite | #fcf6feghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 6.65:1 | AA |
| Muted text | 5.05:1 | AA |
| Accent | 6.65:1 | AA |
| Destructive | 5.77:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Chromolithograph in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 317.181);
--foreground: oklch(0.101 0.033 319.909);
--muted: oklch(0.916 0.017 317.148);
--muted-foreground: oklch(0.485 0.043 316.984);
--popover: oklch(0.991 0.004 317.181);
--popover-foreground: oklch(0.101 0.033 319.909);
--card: oklch(0.982 0.008 317.172);
--card-foreground: oklch(0.08 0.026 319.909);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.98 0.012 317.16);
--primary-foreground: oklch(0.47 0.221 313.802);
--secondary: oklch(0.938 0.001 317.186);
--secondary-foreground: oklch(0.435 0.006 317.157);
--accent: oklch(0.938 0.001 317.186);
--accent-foreground: oklch(0.435 0.006 317.157);
--destructive: oklch(0.529 0.178 33.631);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.98 0.012 317.16);
--chart-1: oklch(0.98 0.012 317.16);
--chart-2: oklch(0.938 0.001 317.186);
--chart-3: oklch(0.938 0.001 317.186);
--chart-4: oklch(0.962 0.001 317.188);
--chart-5: oklch(0.979 0.013 317.159);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.01 318.247);
--foreground: oklch(0.974 0.008 317.171);
--muted: oklch(0.207 0.024 316.918);
--muted-foreground: oklch(0.675 0.04 317.055);
--popover: oklch(0.087 0.01 318.247);
--popover-foreground: oklch(0.974 0.008 317.171);
--card: oklch(0.11 0.013 318.247);
--card-foreground: oklch(0.983 0.005 317.177);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.98 0.012 317.16);
--primary-foreground: oklch(0.47 0.221 313.802);
--secondary: oklch(0.299 0.032 316.943);
--secondary-foreground: oklch(0.826 0.027 317.114);
--accent: oklch(0.299 0.032 316.943);
--accent-foreground: oklch(0.826 0.027 317.114);
--destructive: oklch(0.662 0.176 34.142);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.98 0.012 317.16);
--chart-1: oklch(0.98 0.012 317.16);
--chart-2: oklch(0.299 0.032 316.943);
--chart-3: oklch(0.299 0.032 316.943);
--chart-4: oklch(0.328 0.036 316.935);
--chart-5: oklch(0.979 0.013 317.159);
}