Tattered is a shadcn/ui theme built around an indigo primary color (#3e3ecc) with muted light indigo accents (#c8c8da). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#3e3ecc) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050ablack |
| Foreground | #060613black | #f5f5fawhitesmoke |
| Card | #ffffffwhite | #05050ablack |
| Card foreground | #060613black | #f5f5fawhitesmoke |
| Popover | #ffffffwhite | #05050ablack |
| Popover foreground | #060613black | #f5f5fawhitesmoke |
| Primary | #3e3eccroyalblue | #3e3eccroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c8c8dalightgrey | #111118black |
| Secondary foreground | #2d2d43darkslategray | #a0a0bbdarkgray |
| Muted | #d8d8e4gainsboro | #1b1b27black |
| Muted foreground | #3c3c44darkslategray | #bbbbc3silver |
| Accent | #c8c8dalightgrey | #111118black |
| Accent foreground | #2d2d43darkslategray | #a0a0bbdarkgray |
| Destructive | #8d2c0csaddlebrown | #ed6335tomato |
| Destructive foreground | #fbdbd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e3eccroyalblue | #3e3eccroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 8.93:1 | AAA |
| Accent | 7.38:1 | AAA |
| Destructive | 6.46:1 | AA |
Paste this into your globals.css to use Tattered in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.029 281.749);
--muted: oklch(0.885 0.017 286.044);
--muted-foreground: oklch(0.359 0.013 285.721);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.029 281.749);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.029 281.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.463 0.212 274.319);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.839 0.024 285.869);
--secondary-foreground: oklch(0.309 0.038 283.946);
--accent: oklch(0.839 0.024 285.869);
--accent-foreground: oklch(0.309 0.038 283.946);
--destructive: oklch(0.437 0.137 36.962);
--destructive-foreground: oklch(0.915 0.039 39.306);
--ring: oklch(0.463 0.212 274.319);
--chart-1: oklch(0.463 0.212 274.319);
--chart-2: oklch(0.839 0.024 285.869);
--chart-3: oklch(0.839 0.024 285.869);
--chart-4: oklch(0.867 0.02 285.977);
--chart-5: oklch(0.459 0.221 273.412);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.015 283.775);
--foreground: oklch(0.97 0.008 286.259);
--muted: oklch(0.228 0.024 284.304);
--muted-foreground: oklch(0.796 0.011 286.154);
--popover: oklch(0.118 0.015 283.775);
--popover-foreground: oklch(0.97 0.008 286.259);
--card: oklch(0.118 0.015 283.775);
--card-foreground: oklch(0.97 0.008 286.259);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.463 0.212 274.319);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.181 0.014 284.896);
--secondary-foreground: oklch(0.713 0.04 285.339);
--accent: oklch(0.181 0.014 284.896);
--accent-foreground: oklch(0.713 0.04 285.339);
--destructive: oklch(0.668 0.181 38.242);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.463 0.212 274.319);
--chart-1: oklch(0.463 0.212 274.319);
--chart-2: oklch(0.181 0.014 284.896);
--chart-3: oklch(0.181 0.014 284.896);
--chart-4: oklch(0.21 0.019 284.675);
--chart-5: oklch(0.459 0.221 273.412);
}