Composer is a shadcn/ui theme built around a vivid deep teal primary color (#084542) with vivid deep blue accents (#082945). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#084542) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010404black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #030807black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #010404black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #084542darkslategray | #084542darkslategray |
| Primary foreground | #30e8dfturquoise | #30e8dfturquoise |
| Secondary | #084523darkgreen | #084523darkgreen |
| Secondary foreground | #30e883springgreen | #30e883springgreen |
| Muted | #eaf1edwhitesmoke | #0e1512black |
| Muted foreground | #44554cdarkslategray | #aabbb2darkgray |
| Accent | #082945midnightblue | #082945midnightblue |
| Accent foreground | #8cc4f2skyblue | #8cc4f2skyblue |
| Destructive | #ae1e04firebrick | #e52706orangered |
| Destructive foreground | #feeae6linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #084542darkslategray | #084542darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 9.20:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Composer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.009 162.39);
--muted-foreground: oklch(0.432 0.026 161.043);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.353 0.058 189.598);
--primary-foreground: oklch(0.844 0.138 189.552);
--secondary: oklch(0.344 0.083 153.132);
--secondary-foreground: oklch(0.821 0.199 152.967);
--accent: oklch(0.275 0.064 247.69);
--accent-foreground: oklch(0.799 0.088 243.866);
--destructive: oklch(0.484 0.181 31.767);
--destructive-foreground: oklch(0.952 0.023 29.568);
--ring: oklch(0.353 0.058 189.598);
--chart-1: oklch(0.353 0.058 189.598);
--chart-2: oklch(0.344 0.083 153.132);
--chart-3: oklch(0.275 0.064 247.69);
--chart-4: oklch(0.388 0.096 152.72);
--chart-5: oklch(0.357 0.059 189.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.009 192.581);
--foreground: oklch(0.993 0.001 193.589);
--muted: oklch(0.188 0.013 160.814);
--muted-foreground: oklch(0.776 0.023 161.879);
--popover: oklch(0.098 0.009 192.581);
--popover-foreground: oklch(0.993 0.001 193.589);
--card: oklch(0.124 0.012 192.581);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.353 0.058 189.598);
--primary-foreground: oklch(0.844 0.138 189.552);
--secondary: oklch(0.344 0.083 153.132);
--secondary-foreground: oklch(0.821 0.199 152.967);
--accent: oklch(0.275 0.064 247.69);
--accent-foreground: oklch(0.799 0.088 243.866);
--destructive: oklch(0.592 0.225 31.499);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.353 0.058 189.598);
--chart-1: oklch(0.353 0.058 189.598);
--chart-2: oklch(0.344 0.083 153.132);
--chart-3: oklch(0.275 0.064 247.69);
--chart-4: oklch(0.388 0.096 152.72);
--chart-5: oklch(0.357 0.059 189.505);
}