Rubbish is a shadcn/ui theme built around a deep indigo primary color (#261268) with deep green accents (#546812). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#261268) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #ffffffwhite | #020203black |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #261268midnightblue | #261268midnightblue |
| Primary foreground | #c7baf3thistle | #c7baf3thistle |
| Secondary | #546812darkolivegreen | #546812darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaeddebeige | #1e2112black |
| Muted foreground | #6b6f5ddimgray | #9ea290darkgray |
| Accent | #546812darkolivegreen | #546812darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b9360efirebrick | #ee4c1borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #261268midnightblue | #261268midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.81:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 4.35:1 | AA Large |
| Accent | 6.23:1 | AA |
| Destructive | 5.84:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Rubbish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.075 0.021 296.351);
--muted: oklch(0.94 0.021 117.474);
--muted-foreground: oklch(0.533 0.028 118.036);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.075 0.021 296.351);
--card: oklch(1 0 180);
--card-foreground: oklch(0.075 0.021 296.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.281 0.137 283.896);
--primary-foreground: oklch(0.818 0.081 295.264);
--secondary: oklch(0.484 0.109 122.477);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.109 122.477);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.526 0.174 35.558);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.281 0.137 283.896);
--chart-1: oklch(0.281 0.137 283.896);
--chart-2: oklch(0.484 0.109 122.477);
--chart-3: oklch(0.484 0.109 122.477);
--chart-4: oklch(0.526 0.12 122.572);
--chart-5: oklch(0.279 0.141 283.04);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 296.771);
--foreground: oklch(0.992 0.001 297.062);
--muted: oklch(0.24 0.028 119.241);
--muted-foreground: oklch(0.704 0.027 117.757);
--popover: oklch(0.083 0.01 296.771);
--popover-foreground: oklch(0.992 0.001 297.062);
--card: oklch(0.083 0.01 296.771);
--card-foreground: oklch(0.992 0.001 297.062);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.281 0.137 283.896);
--primary-foreground: oklch(0.818 0.081 295.264);
--secondary: oklch(0.484 0.109 122.477);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.109 122.477);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.206 35.958);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.281 0.137 283.896);
--chart-1: oklch(0.281 0.137 283.896);
--chart-2: oklch(0.484 0.109 122.477);
--chart-3: oklch(0.484 0.109 122.477);
--chart-4: oklch(0.526 0.12 122.572);
--chart-5: oklch(0.279 0.141 283.04);
}