Rubber is a shadcn/ui theme built around a muted light yellow primary color (#e7e3d5) with muted light blue accents (#d5d9e7). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the muted light yellow primary (#e7e3d5) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf7snow | #070603black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fbfaf4floralwhite | #0b0a04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfbf7snow | #070603black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #e7e3d5gainsboro | #e7e3d5gainsboro |
| Primary foreground | #574f32darkolivegreen | #574f32darkolivegreen |
| Secondary | #d5d9e7gainsboro | #d5d9e7gainsboro |
| Secondary foreground | #323a57darkslategray | #323a57darkslategray |
| Muted | #ccd2e5lightgrey | #1a1f33darkslategray |
| Muted foreground | #3f4046darkslategray | #b9bbc0silver |
| Accent | #d5d9e7gainsboro | #d5d9e7gainsboro |
| Accent foreground | #323a57darkslategray | #323a57darkslategray |
| Destructive | #74220bmaroon | #ea572echocolate |
| Destructive foreground | #f8c7b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7e3d5gainsboro | #e7e3d5gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Rubber in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 93.924);
--foreground: oklch(0 0 0);
--muted: oklch(0.864 0.028 273.475);
--muted-foreground: oklch(0.374 0.009 273.579);
--popover: oklch(0.989 0.005 93.924);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.008 93.953);
--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.915 0.019 94.081);
--primary-foreground: oklch(0.429 0.045 94.486);
--secondary: oklch(0.886 0.02 273.604);
--secondary-foreground: oklch(0.356 0.052 271.725);
--accent: oklch(0.886 0.02 273.604);
--accent-foreground: oklch(0.356 0.052 271.725);
--destructive: oklch(0.379 0.119 35.497);
--destructive-foreground: oklch(0.869 0.059 35.972);
--ring: oklch(0.915 0.019 94.081);
--chart-1: oklch(0.915 0.019 94.081);
--chart-2: oklch(0.886 0.02 273.604);
--chart-3: oklch(0.886 0.02 273.604);
--chart-4: oklch(0.912 0.015 273.674);
--chart-5: oklch(0.916 0.021 94.102);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.012 97.441);
--foreground: oklch(0.993 0.001 93.879);
--muted: oklch(0.245 0.039 271.508);
--muted-foreground: oklch(0.792 0.007 273.758);
--popover: oklch(0.124 0.012 97.441);
--popover-foreground: oklch(0.993 0.001 93.879);
--card: oklch(0.142 0.013 97.284);
--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.915 0.019 94.081);
--primary-foreground: oklch(0.429 0.045 94.486);
--secondary: oklch(0.886 0.02 273.604);
--secondary-foreground: oklch(0.356 0.052 271.725);
--accent: oklch(0.886 0.02 273.604);
--accent-foreground: oklch(0.356 0.052 271.725);
--destructive: oklch(0.647 0.19 35.918);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.019 94.081);
--chart-1: oklch(0.915 0.019 94.081);
--chart-2: oklch(0.886 0.02 273.604);
--chart-3: oklch(0.886 0.02 273.604);
--chart-4: oklch(0.912 0.015 273.674);
--chart-5: oklch(0.916 0.021 94.102);
}