Rubbery is a shadcn/ui theme built around a red primary color (#ab1c2d) with teal accents (#1cab9a). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#ab1c2d) on a neutral background (#080203).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #080203black |
| Foreground | #040101black | #f9f6f6whitesmoke |
| Card | #fdf6f7snow | #0c0304black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fefbfbsnow | #080203black |
| Popover foreground | #040101black | #f9f6f6whitesmoke |
| Primary | #ab1c2dfirebrick | #ab1c2dfirebrick |
| Primary foreground | #fefbfbsnow | #fefbfbsnow |
| Secondary | #1cab9alightseagreen | #1cab9alightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5e1e0gainsboro | #1e2a28darkslategray |
| Muted foreground | #3a4a48darkslategray | #b5c5c3silver |
| Accent | #1cab9alightseagreen | #1cab9alightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #620d04maroon | #f0210ared |
| Destructive foreground | #fba69dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab1c2dfirebrick | #ab1c2dfirebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 2.85:1 | Fail |
| Muted text | 6.97:1 | AA |
| Accent | 2.85:1 | Fail |
| Destructive | 6.98:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 2.85:1 | Fail |
| Muted text | 8.30:1 | AAA |
| Accent | 2.85:1 | Fail |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Rubbery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 9);
--foreground: oklch(0.08 0.019 10.693);
--muted: oklch(0.901 0.013 188.562);
--muted-foreground: oklch(0.396 0.02 187.645);
--popover: oklch(0.99 0.004 9);
--popover-foreground: oklch(0.08 0.019 10.693);
--card: oklch(0.98 0.008 9.094);
--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.481 0.176 21.892);
--primary-foreground: oklch(0.99 0.004 9.004);
--secondary: oklch(0.668 0.114 182.411);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.668 0.114 182.411);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.321 0.118 30.945);
--destructive-foreground: oklch(0.807 0.102 26.496);
--ring: oklch(0.481 0.176 21.892);
--chart-1: oklch(0.481 0.176 21.892);
--chart-2: oklch(0.668 0.114 182.411);
--chart-3: oklch(0.668 0.114 182.411);
--chart-4: oklch(0.705 0.121 182.363);
--chart-5: oklch(0.484 0.181 22.5);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.018 10.113);
--foreground: oklch(0.975 0.004 9.006);
--muted: oklch(0.272 0.017 187.372);
--muted-foreground: oklch(0.81 0.018 188.389);
--popover: oklch(0.104 0.018 10.113);
--popover-foreground: oklch(0.975 0.004 9.006);
--card: oklch(0.12 0.021 10.242);
--card-foreground: oklch(0.983 0.003 8.973);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.481 0.176 21.892);
--primary-foreground: oklch(0.99 0.004 9.004);
--secondary: oklch(0.668 0.114 182.411);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.668 0.114 182.411);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.237 30.371);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.481 0.176 21.892);
--chart-1: oklch(0.481 0.176 21.892);
--chart-2: oklch(0.668 0.114 182.411);
--chart-3: oklch(0.668 0.114 182.411);
--chart-4: oklch(0.705 0.121 182.363);
--chart-5: oklch(0.484 0.181 22.5);
}