Rambler is a shadcn/ui theme built around a near-white primary color (#fefdfb) with near-white accents (#fdfbfe). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the near-white primary (#fefdfb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #000000black |
| Foreground | #080602black | #fbfaf9snow |
| Card | #fcf9f3floralwhite | #030303black |
| Card foreground | #040301black | #fdfdfcwhite |
| Popover | #fdfbf7snow | #000000black |
| Popover foreground | #080602black | #fbfaf9snow |
| Primary | #fefdfbsnow | #fefdfbsnow |
| Primary foreground | #493918darkolivegreen | #493918darkolivegreen |
| Secondary | #fbfefdwhite | #fbfefdwhite |
| Secondary foreground | #184939darkslategray | #184939darkslategray |
| Muted | #d5ece5gainsboro | #132a23black |
| Muted foreground | #5e6865dimgray | #97a19ddarkgray |
| Accent | #fdfbfewhite | #fdfbfewhite |
| Accent foreground | #763295rebeccapurple | #763295rebeccapurple |
| Destructive | #b51308firebrick | #f52819orangered |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefdfbsnow | #fefdfbsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 10.96:1 | AAA |
| Secondary button | 10.07:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 10.96:1 | AAA |
| Secondary button | 10.07:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Rambler in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 86.029);
--foreground: oklch(0.124 0.016 92.237);
--muted: oklch(0.924 0.026 174.757);
--muted-foreground: oklch(0.509 0.013 174.844);
--popover: oklch(0.988 0.006 86.029);
--popover-foreground: oklch(0.124 0.016 92.237);
--card: oklch(0.983 0.009 86.04);
--card-foreground: oklch(0.099 0.012 92.237);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.994 0.002 86.016);
--primary-foreground: oklch(0.355 0.053 84.551);
--secondary: oklch(0.994 0.003 175.531);
--secondary-foreground: oklch(0.366 0.059 168.992);
--accent: oklch(0.991 0.004 315.411);
--accent-foreground: oklch(0.456 0.163 313.252);
--destructive: oklch(0.492 0.193 29.776);
--destructive-foreground: oklch(0.969 0.014 22.383);
--ring: oklch(0.994 0.002 86.016);
--chart-1: oklch(0.994 0.002 86.016);
--chart-2: oklch(0.994 0.003 175.531);
--chart-3: oklch(0.991 0.004 315.411);
--chart-4: oklch(1.012 0.006 355.781);
--chart-5: oklch(0.994 0.003 86.017);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.001 86.011);
--muted: oklch(0.264 0.033 171.122);
--muted-foreground: oklch(0.699 0.012 175.098);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.001 86.011);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 86.009);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.994 0.002 86.016);
--primary-foreground: oklch(0.355 0.053 84.551);
--secondary: oklch(0.994 0.003 175.531);
--secondary-foreground: oklch(0.366 0.059 168.992);
--accent: oklch(0.991 0.004 315.411);
--accent-foreground: oklch(0.456 0.163 313.252);
--destructive: oklch(0.623 0.237 29.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.002 86.016);
--chart-1: oklch(0.994 0.002 86.016);
--chart-2: oklch(0.994 0.003 175.531);
--chart-3: oklch(0.991 0.004 315.411);
--chart-4: oklch(1.012 0.006 355.781);
--chart-5: oklch(0.994 0.003 86.017);
}