Music-box is a shadcn/ui theme built around a muted light indigo primary color (#f0f0f4) with muted light indigo accents (#cfcfe3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light indigo primary (#f0f0f4) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030307black |
| Foreground | #010104black | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #030307black |
| Card foreground | #010104black | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #030307black |
| Popover foreground | #010104black | #f6f6f9whitesmoke |
| Primary | #f0f0f4whitesmoke | #f0f0f4whitesmoke |
| Primary foreground | #4b4a68darkslateblue | #4b4a68darkslateblue |
| Secondary | #e1e1eagainsboro | #19191fblack |
| Secondary foreground | #403f5adarkslategray | #aeaebcdarkgray |
| Muted | #dfdfecgainsboro | #131320black |
| Muted foreground | #484752darkslategray | #aeadb8darkgray |
| Accent | #cfcfe3lightgrey | #242433darkslategray |
| Accent foreground | #302f50darkslategray | #bbbacesilver |
| Destructive | #c13310firebrick | #d43811firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f0f4whitesmoke | #f0f0f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 5.58:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Music-box in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.07 0.022 281.617);
--muted: oklch(0.907 0.019 287.556);
--muted-foreground: oklch(0.403 0.018 287.1);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.07 0.022 281.617);
--card: oklch(1 0 180);
--card-foreground: oklch(0.07 0.022 281.617);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.957 0.006 287.828);
--primary-foreground: oklch(0.423 0.05 285.574);
--secondary: oklch(0.912 0.012 287.687);
--secondary-foreground: oklch(0.38 0.047 285.472);
--accent: oklch(0.861 0.027 287.342);
--accent-foreground: oklch(0.323 0.058 284.167);
--destructive: oklch(0.538 0.184 34.038);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.006 287.828);
--chart-1: oklch(0.957 0.006 287.828);
--chart-2: oklch(0.912 0.012 287.687);
--chart-3: oklch(0.861 0.027 287.342);
--chart-4: oklch(0.939 0.009 287.77);
--chart-5: oklch(0.956 0.007 287.808);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.016 285.205);
--foreground: oklch(0.973 0.005 287.851);
--muted: oklch(0.193 0.028 285.023);
--muted-foreground: oklch(0.752 0.015 287.562);
--popover: oklch(0.101 0.016 285.205);
--popover-foreground: oklch(0.973 0.005 287.851);
--card: oklch(0.101 0.016 285.205);
--card-foreground: oklch(0.973 0.005 287.851);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.957 0.006 287.828);
--primary-foreground: oklch(0.423 0.05 285.574);
--secondary: oklch(0.217 0.011 286.983);
--secondary-foreground: oklch(0.755 0.021 287.417);
--accent: oklch(0.268 0.027 285.925);
--accent-foreground: oklch(0.797 0.028 287.278);
--destructive: oklch(0.576 0.198 33.967);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.006 287.828);
--chart-1: oklch(0.957 0.006 287.828);
--chart-2: oklch(0.217 0.011 286.983);
--chart-3: oklch(0.268 0.027 285.925);
--chart-4: oklch(0.247 0.013 286.902);
--chart-5: oklch(0.956 0.007 287.808);
}