Music is a shadcn/ui theme built around an indigo primary color (#696fb0) with violet accents (#8669b0). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#696fb0) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #020412black | #f4f5fawhitesmoke |
| Card | #ffffffwhite | #010204black |
| Card foreground | #020412black | #f4f5fawhitesmoke |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #020412black | #f4f5fawhitesmoke |
| Primary | #696fb0slateblue | #696fb0slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6992b0cadetblue | #6992b0cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #eff0f1whitesmoke | #0e0f10black |
| Muted foreground | #5b656bdimgray | #949da4darkgray |
| Accent | #8669b0lightslategray | #8669b0lightslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b50d08firebrick | #f5170fred |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #696fb0slateblue | #696fb0slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 6.93:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Music in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.038 271.897);
--muted: oklch(0.954 0.002 238.389);
--muted-foreground: oklch(0.5 0.016 238.817);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.113 0.038 271.897);
--card: oklch(1 0 180);
--card-foreground: oklch(0.113 0.038 271.897);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.564 0.101 278.683);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.064 240.077);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.578 0.111 302.265);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.49 0.195 29.243);
--destructive-foreground: oklch(0.968 0.015 19.821);
--ring: oklch(0.564 0.101 278.683);
--chart-1: oklch(0.564 0.101 278.683);
--chart-2: oklch(0.641 0.064 240.077);
--chart-3: oklch(0.578 0.111 302.265);
--chart-4: oklch(0.666 0.059 239.848);
--chart-5: oklch(0.557 0.111 278.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.011 278.373);
--foreground: oklch(0.971 0.007 282.09);
--muted: oklch(0.17 0.003 238.595);
--muted-foreground: oklch(0.69 0.014 238.663);
--popover: oklch(0.082 0.011 278.373);
--popover-foreground: oklch(0.971 0.007 282.09);
--card: oklch(0.082 0.011 278.373);
--card-foreground: oklch(0.971 0.007 282.09);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.564 0.101 278.683);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.064 240.077);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.578 0.111 302.265);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.245 29.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.564 0.101 278.683);
--chart-1: oklch(0.564 0.101 278.683);
--chart-2: oklch(0.641 0.064 240.077);
--chart-3: oklch(0.578 0.111 302.265);
--chart-4: oklch(0.666 0.059 239.848);
--chart-5: oklch(0.557 0.111 278.222);
}