Attached is a shadcn/ui theme built around a teal primary color (#5aaa9d) with red accents (#aa5a67). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#5aaa9d) on a teal-tinted background (#04100e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04100eblack |
| Foreground | #010403black | #f9fbfbghostwhite |
| Card | #fcfcfcsnow | #061412black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #061412black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #5aaa9dcadetblue | #5aaa9dcadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #aa5a67indianred | #aa5a67indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f1f1whitesmoke | #0e0c0cblack |
| Muted foreground | #524245darkslategray | #bdadb0darkgray |
| Accent | #aa5a67indianred | #aa5a67indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #732a02saddlebrown | #fa6514orangered |
| Destructive foreground | #fdc7aanavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5aaa9dcadetblue | #5aaa9dcadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 4.80:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 4.80:1 | AA |
| Muted text | 9.09:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 6.92:1 | AA |
Paste this into your globals.css to use Attached in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.01 185.143);
--muted: oklch(0.96 0.003 5.517);
--muted-foreground: oklch(0.396 0.023 6.917);
--popover: oklch(0.992 0 161.565);
--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.683 0.082 181.686);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.566 0.105 10.406);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.566 0.105 10.406);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.387 0.113 42.885);
--destructive-foreground: oklch(0.871 0.073 49.671);
--ring: oklch(0.683 0.082 181.686);
--chart-1: oklch(0.683 0.082 181.686);
--chart-2: oklch(0.566 0.105 10.406);
--chart-3: oklch(0.566 0.105 10.406);
--chart-4: oklch(0.592 0.098 9.78);
--chart-5: oklch(0.692 0.088 181.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.019 183.124);
--foreground: oklch(0.986 0.002 185.396);
--muted: oklch(0.156 0.004 6.111);
--muted-foreground: oklch(0.762 0.019 6.092);
--popover: oklch(0.176 0.021 182.254);
--popover-foreground: oklch(0.993 0.001 185.423);
--card: oklch(0.176 0.021 182.254);
--card-foreground: oklch(0.993 0.001 185.423);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.082 181.686);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.566 0.105 10.406);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.566 0.105 10.406);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.687 0.199 42.465);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.683 0.082 181.686);
--chart-1: oklch(0.683 0.082 181.686);
--chart-2: oklch(0.566 0.105 10.406);
--chart-3: oklch(0.566 0.105 10.406);
--chart-4: oklch(0.592 0.098 9.78);
--chart-5: oklch(0.692 0.088 181.363);
}