Rubbery is a shadcn/ui theme built around a light indigo primary color (#edebf4) with light green accents (#f3f4eb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#edebf4) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #05040cblack | #f6f5fawhitesmoke |
| Card | #fcfcfcsnow | #040407black |
| Card foreground | #030208black | #f9f8fbghostwhite |
| Popover | #fcfcfcsnow | #040407black |
| Popover foreground | #030208black | #f9f8fbghostwhite |
| Primary | #edebf4lavender | #edebf4lavender |
| Primary foreground | #473c72darkslateblue | #473c72darkslateblue |
| Secondary | #f3f4eblinen | #f3f4eblinen |
| Secondary foreground | #2a2f19darkslategray | #2a2f19darkslategray |
| Muted | #e2e6d0gainsboro | #2a2f19darkslategray |
| Muted foreground | #5c5f54dimgray | #a9aba0darkgray |
| Accent | #f3f4eblinen | #f3f4eblinen |
| Accent foreground | #2a2f19darkslategray | #2a2f19darkslategray |
| Destructive | #6f0902maroon | #fb1909red |
| Destructive foreground | #feaba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edebf4lavender | #edebf4lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 12.49:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 12.49:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 12.49:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 12.49:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Rubbery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.023 294.523);
--muted: oklch(0.917 0.03 116.175);
--muted-foreground: oklch(0.479 0.017 116.228);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.02 294.645);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.02 294.645);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.944 0.013 295.328);
--primary-foreground: oklch(0.393 0.089 290.925);
--secondary: oklch(0.964 0.013 115.82);
--secondary-foreground: oklch(0.293 0.038 118.019);
--accent: oklch(0.964 0.013 115.82);
--accent-foreground: oklch(0.293 0.038 118.019);
--destructive: oklch(0.344 0.134 30.391);
--destructive-foreground: oklch(0.819 0.099 23.954);
--ring: oklch(0.944 0.013 295.328);
--chart-1: oklch(0.944 0.013 295.328);
--chart-2: oklch(0.964 0.013 115.82);
--chart-3: oklch(0.964 0.013 115.82);
--chart-4: oklch(0.982 0.006 115.697);
--chart-5: oklch(0.943 0.014 295.304);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 295.114);
--foreground: oklch(0.972 0.006 295.462);
--muted: oklch(0.293 0.038 118.019);
--muted-foreground: oklch(0.737 0.015 115.959);
--popover: oklch(0.106 0.011 295.114);
--popover-foreground: oklch(0.982 0.004 295.502);
--card: oklch(0.106 0.011 295.114);
--card-foreground: oklch(0.982 0.004 295.502);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.944 0.013 295.328);
--primary-foreground: oklch(0.393 0.089 290.925);
--secondary: oklch(0.964 0.013 115.82);
--secondary-foreground: oklch(0.293 0.038 118.019);
--accent: oklch(0.964 0.013 115.82);
--accent-foreground: oklch(0.293 0.038 118.019);
--destructive: oklch(0.627 0.249 29.744);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.944 0.013 295.328);
--chart-1: oklch(0.944 0.013 295.328);
--chart-2: oklch(0.964 0.013 115.82);
--chart-3: oklch(0.964 0.013 115.82);
--chart-4: oklch(0.982 0.006 115.697);
--chart-5: oklch(0.943 0.014 295.304);
}