Rainbow Extended is a shadcn/ui theme built around a teal primary color (#25c1a7) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode keeps the teal primary (#25c1a7) on a blue-tinted background (#282c34).
| Token | Light | Dark |
|---|---|---|
| Background | #282c34darkslategray | #282c34darkslategray |
| Foreground | #bababasilver | #bababasilver |
| Card | #23272edarkslategray | #23272edarkslategray |
| Card foreground | #c7c7c7silver | #c7c7c7silver |
| Popover | #21252bdarkslategray | #21252bdarkslategray |
| Popover foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Primary | #25c1a7lightseagreen | #25c1a7lightseagreen |
| Primary foreground | #041513black | #041513black |
| Secondary | #2d534cdarkslategray | #2d534cdarkslategray |
| Secondary foreground | #cde4e0gainsboro | #cde4e0gainsboro |
| Muted | #31363fdarkslategray | #31363fdarkslategray |
| Muted foreground | #afb5c0silver | #afb5c0silver |
| Accent | #49515fdarkslategray | #49515fdarkslategray |
| Accent foreground | #ebeceflavender | #ebeceflavender |
| Destructive | #ed2012red | #ed2012red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #393a3cdarkslategray | #393a3cdarkslategray |
| Input | #404244darkslategray | #404244darkslategray |
| Ring | #25c1a7lightseagreen | #25c1a7lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.22:1 | AAA |
| Text on card | 8.85:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 4.35:1 | AA Large |
| Text on background | 7.22:1 | AAA |
| Text on card | 8.85:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Rainbow Extended in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.292 0.016 264.298);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.332 0.017 264.31);
--muted-foreground: oklch(0.771 0.017 264.466);
--popover: oklch(0.262 0.013 264.313);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.272 0.014 264.308);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.348 0.004 264.509);
--input: oklch(0.377 0.005 264.508);
--primary: oklch(0.728 0.128 177.796);
--primary-foreground: oklch(0.181 0.025 181.77);
--secondary: oklch(0.411 0.045 182.084);
--secondary-foreground: oklch(0.902 0.025 184.716);
--accent: oklch(0.432 0.026 264.255);
--accent-foreground: oklch(0.944 0.004 264.536);
--destructive: oklch(0.604 0.234 29.736);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.128 177.796);
--chart-1: oklch(0.728 0.128 177.796);
--chart-2: oklch(0.411 0.045 182.084);
--chart-3: oklch(0.432 0.026 264.255);
--chart-4: oklch(0.444 0.05 182.023);
--chart-5: oklch(0.737 0.131 177.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.292 0.016 264.298);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.332 0.017 264.31);
--muted-foreground: oklch(0.771 0.017 264.466);
--popover: oklch(0.262 0.013 264.313);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.272 0.014 264.308);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.348 0.004 264.509);
--input: oklch(0.377 0.005 264.508);
--primary: oklch(0.728 0.128 177.796);
--primary-foreground: oklch(0.181 0.025 181.77);
--secondary: oklch(0.411 0.045 182.084);
--secondary-foreground: oklch(0.902 0.025 184.716);
--accent: oklch(0.432 0.026 264.255);
--accent-foreground: oklch(0.944 0.004 264.536);
--destructive: oklch(0.604 0.234 29.736);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.128 177.796);
--chart-1: oklch(0.728 0.128 177.796);
--chart-2: oklch(0.411 0.045 182.084);
--chart-3: oklch(0.432 0.026 264.255);
--chart-4: oklch(0.444 0.05 182.023);
--chart-5: oklch(0.737 0.131 177.496);
}