Tussle is a shadcn/ui theme built around a light green primary color (#d8eedb) with light red accents (#eedbd8). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#d8eedb) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #010402black |
| Foreground | #000000black | #f8fcf9mintcream |
| Card | #f8fbf9mintcream | #020803black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #010402black |
| Popover foreground | #000000black | #f8fcf9mintcream |
| Primary | #d8eedbgainsboro | #d8eedbgainsboro |
| Primary foreground | #0e2011black | #0e2011black |
| Secondary | #dbd8eegainsboro | #dbd8eegainsboro |
| Secondary foreground | #362e66midnightblue | #362e66midnightblue |
| Muted | #dedce9gainsboro | #181623black |
| Muted foreground | #4a4950darkslategray | #b0afb6darkgray |
| Accent | #eedbd8gainsboro | #eedbd8gainsboro |
| Accent foreground | #66362esaddlebrown | #66362esaddlebrown |
| Destructive | #6f2406maroon | #f4723etomato |
| Destructive foreground | #fac3adlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8eedbgainsboro | #d8eedbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 13.89:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 13.89:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 7.30:1 | AAA |
Paste this into your globals.css to use Tussle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 150.215);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.018 292.939);
--muted-foreground: oklch(0.41 0.01 292.839);
--popover: oklch(0.993 0.002 150.215);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 150.182);
--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.927 0.033 149.772);
--primary-foreground: oklch(0.222 0.037 147.749);
--secondary: oklch(0.892 0.029 292.688);
--secondary-foreground: oklch(0.341 0.095 287.118);
--accent: oklch(0.907 0.021 29.56);
--accent-foreground: oklch(0.392 0.07 31.047);
--destructive: oklch(0.372 0.113 38.965);
--destructive-foreground: oklch(0.861 0.07 42.598);
--ring: oklch(0.927 0.033 149.772);
--chart-1: oklch(0.927 0.033 149.772);
--chart-2: oklch(0.892 0.029 292.688);
--chart-3: oklch(0.907 0.021 29.56);
--chart-4: oklch(0.922 0.021 292.876);
--chart-5: oklch(0.928 0.036 149.735);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 149.147);
--foreground: oklch(0.987 0.006 150.17);
--muted: oklch(0.207 0.025 290.876);
--muted-foreground: oklch(0.758 0.009 293.09);
--popover: oklch(0.097 0.017 149.147);
--popover-foreground: oklch(0.987 0.006 150.17);
--card: oklch(0.123 0.022 149.147);
--card-foreground: oklch(0.993 0.003 150.209);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.927 0.033 149.772);
--primary-foreground: oklch(0.222 0.037 147.749);
--secondary: oklch(0.892 0.029 292.688);
--secondary-foreground: oklch(0.341 0.095 287.118);
--accent: oklch(0.907 0.021 29.56);
--accent-foreground: oklch(0.392 0.07 31.047);
--destructive: oklch(0.698 0.173 40.944);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.927 0.033 149.772);
--chart-1: oklch(0.927 0.033 149.772);
--chart-2: oklch(0.892 0.029 292.688);
--chart-3: oklch(0.907 0.021 29.56);
--chart-4: oklch(0.922 0.021 292.876);
--chart-5: oklch(0.928 0.036 149.735);
}