Soprano is a shadcn/ui theme built around a teal primary color (#33d7d7) with yellow accents (#d7d733). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#33d7d7) on a teal-tinted background (#060f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f0fblack |
| Foreground | #041010black | #f5fafamintcream |
| Card | #ffffffwhite | #060f0fblack |
| Card foreground | #041010black | #f5fafamintcream |
| Popover | #ffffffwhite | #060f0fblack |
| Popover foreground | #041010black | #f5fafamintcream |
| Primary | #33d7d7turquoise | #33d7d7turquoise |
| Primary foreground | #0a3333darkslategray | #0a3333darkslategray |
| Secondary | #d733d7mediumorchid | #d733d7mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f0f4whitesmoke | #0f0b0fblack |
| Muted foreground | #525152darkslategray | #aeadaedarkgray |
| Accent | #d7d733goldenrod | #d7d733goldenrod |
| Accent foreground | #33330adarkgreen | #33330adarkgreen |
| Destructive | #801f05maroon | #f85b30tomato |
| Destructive foreground | #fdc8bapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #33d7d7turquoise | #33d7d7turquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 7.01:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 8.74:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 6.52:1 | AA |
Paste this into your globals.css to use Soprano in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.019 195.442);
--muted: oklch(0.96 0.007 325.634);
--muted-foreground: oklch(0.436 0.003 325.634);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.019 195.442);
--card: oklch(1 0 180);
--card-foreground: oklch(0.162 0.019 195.442);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.799 0.127 194.91);
--primary-foreground: oklch(0.294 0.044 195.036);
--secondary: oklch(0.634 0.259 328.105);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.851 0.172 109.557);
--accent-foreground: oklch(0.312 0.059 109.371);
--destructive: oklch(0.398 0.136 34.807);
--destructive-foreground: oklch(0.876 0.063 35.978);
--ring: oklch(0.799 0.127 194.91);
--chart-1: oklch(0.799 0.127 194.91);
--chart-2: oklch(0.634 0.259 328.105);
--chart-3: oklch(0.851 0.172 109.557);
--chart-4: oklch(0.649 0.249 327.985);
--chart-5: oklch(0.809 0.13 194.887);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.014 195.805);
--foreground: oklch(0.981 0.006 197.059);
--muted: oklch(0.155 0.012 326.117);
--muted-foreground: oklch(0.748 0.003 325.606);
--popover: oklch(0.157 0.014 195.805);
--popover-foreground: oklch(0.981 0.006 197.059);
--card: oklch(0.157 0.014 195.805);
--card-foreground: oklch(0.981 0.006 197.059);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.799 0.127 194.91);
--primary-foreground: oklch(0.294 0.044 195.036);
--secondary: oklch(0.634 0.259 328.105);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.851 0.172 109.557);
--accent-foreground: oklch(0.312 0.059 109.371);
--destructive: oklch(0.673 0.199 35.888);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.799 0.127 194.91);
--chart-1: oklch(0.799 0.127 194.91);
--chart-2: oklch(0.634 0.259 328.105);
--chart-3: oklch(0.851 0.172 109.557);
--chart-4: oklch(0.649 0.249 327.985);
--chart-5: oklch(0.809 0.13 194.887);
}