Roller is a shadcn/ui theme built around a neutral gray primary color (#e0dfe1) with muted light violet accents (#cfccd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#e0dfe1) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #030109black | #ffffffwhite |
| Card | #ffffffwhite | #020203black |
| Card foreground | #030109black | #ffffffwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #030109black | #ffffffwhite |
| Primary | #e0dfe1gainsboro | #e0dfe1gainsboro |
| Primary foreground | #46454adarkslategray | #46454adarkslategray |
| Secondary | #e5e4e7gainsboro | #1d1b22black |
| Secondary foreground | #4b4950darkslategray | #b4b0bfsilver |
| Muted | #dad4e8gainsboro | #1d172bblack |
| Muted foreground | #454054darkslategray | #b1abbfdarkgray |
| Accent | #cfccd6lightgrey | #342e42darkslategray |
| Accent foreground | #35323edarkslategray | #cec9d9lightgrey |
| Destructive | #890806darkred | #f6211ecrimson |
| Destructive foreground | #fdc5c4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0dfe1gainsboro | #e0dfe1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.74:1 | AAA |
| Text on card | 20.74:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Roller in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.092 0.029 299.372);
--muted: oklch(0.88 0.028 298.763);
--muted-foreground: oklch(0.384 0.035 297.693);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.092 0.029 299.372);
--card: oklch(1 0 180);
--card-foreground: oklch(0.092 0.029 299.372);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.003 299.256);
--primary-foreground: oklch(0.394 0.007 298.987);
--secondary: oklch(0.921 0.003 299.252);
--secondary-foreground: oklch(0.411 0.01 298.873);
--accent: oklch(0.851 0.014 299.018);
--accent-foreground: oklch(0.325 0.022 298.131);
--destructive: oklch(0.4 0.159 28.956);
--destructive-foreground: oklch(0.873 0.064 19.572);
--ring: oklch(0.906 0.003 299.256);
--chart-1: oklch(0.906 0.003 299.256);
--chart-2: oklch(0.921 0.003 299.252);
--chart-3: oklch(0.851 0.014 299.018);
--chart-4: oklch(0.945 0.002 299.269);
--chart-5: oklch(0.904 0.005 299.208);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 299.325);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.039 296.151);
--muted-foreground: oklch(0.752 0.03 298.617);
--popover: oklch(0.085 0.009 299.325);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.009 299.325);
--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.906 0.003 299.256);
--primary-foreground: oklch(0.394 0.007 298.987);
--secondary: oklch(0.228 0.013 298.309);
--secondary-foreground: oklch(0.765 0.023 298.795);
--accent: oklch(0.316 0.036 297.284);
--accent-foreground: oklch(0.844 0.023 298.831);
--destructive: oklch(0.621 0.24 28.473);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.003 299.256);
--chart-1: oklch(0.906 0.003 299.256);
--chart-2: oklch(0.228 0.013 298.309);
--chart-3: oklch(0.316 0.036 297.284);
--chart-4: oklch(0.258 0.016 298.238);
--chart-5: oklch(0.904 0.005 299.208);
}