Romaine is a shadcn/ui theme built around a near-white primary color (#eae9ec) with near-white accents (#ebe9ec). The light mode uses a neutral background (#f9f7fc). Dark mode keeps the near-white primary (#eae9ec) on a violet-tinted background (#06030c).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fcghostwhite | #06030cblack |
| Foreground | #06030cblack | #f9f8fbghostwhite |
| Card | #f6f4fbghostwhite | #080410black |
| Card foreground | #040208black | #fcfcfdwhite |
| Popover | #f6f4fbghostwhite | #080410black |
| Popover foreground | #040208black | #fcfcfdwhite |
| Primary | #eae9eclavender | #eae9eclavender |
| Primary foreground | #4f4d56darkslategray | #4f4d56darkslategray |
| Secondary | #e9eaeclavender | #e9eaeclavender |
| Secondary foreground | #4d4f56darkslategray | #4d4f56darkslategray |
| Muted | #e8ebf2lavender | #0d0f17black |
| Muted foreground | #5c5e66dimgray | #999ca3darkgray |
| Accent | #ebe9eclavender | #ebe9eclavender |
| Accent foreground | #544d56darkslategray | #544d56darkslategray |
| Destructive | #c34e13chocolate | #da5716chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eae9eclavender | #eae9eclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.40:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 4.75:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Romaine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 298.444);
--foreground: oklch(0.112 0.026 298.207);
--muted: oklch(0.939 0.01 272.543);
--muted-foreground: oklch(0.484 0.012 272.382);
--popover: oklch(0.969 0.01 298.38);
--popover-foreground: oklch(0.098 0.022 298.416);
--card: oklch(0.969 0.01 298.38);
--card-foreground: oklch(0.098 0.022 298.416);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.936 0.003 298.504);
--primary-foreground: oklch(0.425 0.016 297.894);
--secondary: oklch(0.937 0.003 272.628);
--secondary-foreground: oklch(0.428 0.013 272.329);
--accent: oklch(0.937 0.004 318.326);
--accent-foreground: oklch(0.43 0.019 318.287);
--destructive: oklch(0.571 0.163 42.142);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.936 0.003 298.504);
--chart-1: oklch(0.936 0.003 298.504);
--chart-2: oklch(0.937 0.003 272.628);
--chart-3: oklch(0.937 0.004 318.326);
--chart-4: oklch(0.961 0.002 272.64);
--chart-5: oklch(0.935 0.005 298.473);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.025 298.241);
--foreground: oklch(0.982 0.004 298.498);
--muted: oklch(0.171 0.016 271.477);
--muted-foreground: oklch(0.692 0.011 272.486);
--popover: oklch(0.125 0.028 297.141);
--popover-foreground: oklch(0.991 0.002 298.533);
--card: oklch(0.125 0.028 297.141);
--card-foreground: oklch(0.991 0.002 298.533);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.936 0.003 298.504);
--primary-foreground: oklch(0.425 0.016 297.894);
--secondary: oklch(0.937 0.003 272.628);
--secondary-foreground: oklch(0.428 0.013 272.329);
--accent: oklch(0.937 0.004 318.326);
--accent-foreground: oklch(0.43 0.019 318.287);
--destructive: oklch(0.62 0.178 41.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.936 0.003 298.504);
--chart-1: oklch(0.936 0.003 298.504);
--chart-2: oklch(0.937 0.003 272.628);
--chart-3: oklch(0.937 0.004 318.326);
--chart-4: oklch(0.961 0.002 272.64);
--chart-5: oklch(0.935 0.005 298.473);
}