Spotify is a shadcn/ui theme built around a green primary color (#43c83c) with muted green accents (#b5c0b4). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#43c83c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #000000black |
| Foreground | #010401black | #f9fbf9mintcream |
| Card | #f7fdf7mintcream | #000000black |
| Card foreground | #010401black | #f9fbf9mintcream |
| Popover | #f7fdf7mintcream | #000000black |
| Popover foreground | #010401black | #f9fbf9mintcream |
| Primary | #43c83climegreen | #43c83climegreen |
| Primary foreground | #0e2c0cblack | #0e2c0cblack |
| Secondary | #cbcdcblightgrey | #282a28darkslategray |
| Secondary foreground | #323432darkslategray | #c0c4c0silver |
| Muted | #dae8d9gainsboro | #182617black |
| Muted foreground | #566d54dimgray | #93ab92darkseagreen |
| Accent | #b5c0b4silver | #343d33darkslategray |
| Accent foreground | #1e241eblack | #cdd5cdlightgrey |
| Destructive | #642302maroon | #e65005orangered |
| Destructive foreground | #fdbc9bburlywood | #ffffffwhite |
| Border | #ebefebwhitesmoke | #222a22darkslategray |
| Input | #ebefebwhitesmoke | #222a22darkslategray |
| Ring | #43c83climegreen | #43c83climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 8.43:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Spotify in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.011 144.066);
--foreground: oklch(0.097 0.02 142.313);
--muted: oklch(0.916 0.025 143.971);
--muted-foreground: oklch(0.51 0.048 143.556);
--popover: oklch(0.988 0.011 144.066);
--popover-foreground: oklch(0.097 0.02 142.313);
--card: oklch(0.988 0.011 144.066);
--card-foreground: oklch(0.097 0.02 142.313);
--border: oklch(0.949 0.007 144.09);
--input: oklch(0.949 0.007 144.09);
--primary: oklch(0.733 0.212 142.379);
--primary-foreground: oklch(0.261 0.065 142.582);
--secondary: oklch(0.846 0.003 144.106);
--secondary-foreground: oklch(0.322 0.004 144.049);
--accent: oklch(0.796 0.022 143.971);
--accent-foreground: oklch(0.253 0.014 143.806);
--destructive: oklch(0.35 0.103 42.33);
--destructive-foreground: oklch(0.846 0.088 47.658);
--ring: oklch(0.733 0.212 142.379);
--chart-1: oklch(0.733 0.212 142.379);
--chart-2: oklch(0.846 0.003 144.106);
--chart-3: oklch(0.796 0.022 143.971);
--chart-4: oklch(0.87 0.003 144.11);
--chart-5: oklch(0.742 0.22 142.35);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 144.112);
--muted: oklch(0.251 0.033 143.316);
--muted-foreground: oklch(0.715 0.045 143.755);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 144.112);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.003 144.112);
--border: oklch(0.276 0.019 143.719);
--input: oklch(0.276 0.019 143.719);
--primary: oklch(0.733 0.212 142.379);
--primary-foreground: oklch(0.261 0.065 142.582);
--secondary: oklch(0.282 0.006 144.015);
--secondary-foreground: oklch(0.815 0.006 144.085);
--accent: oklch(0.348 0.021 143.761);
--accent-foreground: oklch(0.865 0.014 144.035);
--destructive: oklch(0.63 0.198 39.593);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.212 142.379);
--chart-1: oklch(0.733 0.212 142.379);
--chart-2: oklch(0.282 0.006 144.015);
--chart-3: oklch(0.348 0.021 143.761);
--chart-4: oklch(0.313 0.006 144.01);
--chart-5: oklch(0.742 0.22 142.35);
}