Tassel is a shadcn/ui theme built around a teal primary color (#90c6af) with cyan accents (#90c1c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#90c6af) on a neutral background (#020806).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020806black |
| Foreground | #05100bblack | #f6f9f8whitesmoke |
| Card | #ffffffwhite | #020806black |
| Card foreground | #05100bblack | #f6f9f8whitesmoke |
| Popover | #ffffffwhite | #020806black |
| Popover foreground | #05100bblack | #f6f9f8whitesmoke |
| Primary | #90c6afdarkseagreen | #90c6afdarkseagreen |
| Primary foreground | #0c1813black | #0c1813black |
| Secondary | #90c694darkseagreen | #90c694darkseagreen |
| Secondary foreground | #0c180dblack | #0c180dblack |
| Muted | #f1f3f2whitesmoke | #0c0e0cblack |
| Muted foreground | #5d5f5edimgray | #a0a2a0darkgray |
| Accent | #90c1c6lightsteelblue | #90c1c6lightsteelblue |
| Accent foreground | #0c1718black | #0c1718black |
| Destructive | #b33600firebrick | #ff570forangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #90c6afdarkseagreen | #90c6afdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 9.25:1 | AAA |
| Destructive | 6.62:1 | AA |
Paste this into your globals.css to use Tassel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.158 0.02 167.461);
--muted: oklch(0.963 0.003 148.033);
--muted-foreground: oklch(0.484 0.004 147.986);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.158 0.02 167.461);
--card: oklch(1 0 180);
--card-foreground: oklch(0.158 0.02 167.461);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.782 0.065 167.058);
--primary-foreground: oklch(0.194 0.019 166.459);
--secondary: oklch(0.775 0.089 146.758);
--secondary-foreground: oklch(0.192 0.027 146.466);
--accent: oklch(0.779 0.052 203.146);
--accent-foreground: oklch(0.193 0.015 203.123);
--destructive: oklch(0.513 0.169 37.729);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.065 167.058);
--chart-1: oklch(0.782 0.065 167.058);
--chart-2: oklch(0.775 0.089 146.758);
--chart-3: oklch(0.779 0.052 203.146);
--chart-4: oklch(0.795 0.081 146.921);
--chart-5: oklch(0.786 0.07 166.814);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 169.927);
--foreground: oklch(0.979 0.004 169.555);
--muted: oklch(0.159 0.004 147.764);
--muted-foreground: oklch(0.709 0.003 148.016);
--popover: oklch(0.124 0.015 169.927);
--popover-foreground: oklch(0.979 0.004 169.555);
--card: oklch(0.124 0.015 169.927);
--card-foreground: oklch(0.979 0.004 169.555);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.782 0.065 167.058);
--primary-foreground: oklch(0.194 0.019 166.459);
--secondary: oklch(0.775 0.089 146.758);
--secondary-foreground: oklch(0.192 0.027 146.466);
--accent: oklch(0.779 0.052 203.146);
--accent-foreground: oklch(0.193 0.015 203.123);
--destructive: oklch(0.679 0.215 38.49);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.782 0.065 167.058);
--chart-1: oklch(0.782 0.065 167.058);
--chart-2: oklch(0.775 0.089 146.758);
--chart-3: oklch(0.779 0.052 203.146);
--chart-4: oklch(0.795 0.081 146.921);
--chart-5: oklch(0.786 0.07 166.814);
}