Rough is a shadcn/ui theme built around a deep red primary color (#682c34) with neutral gray accents (#d4cece). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep red primary (#682c34) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #040101black |
| Foreground | #110406black | #fbf8f9snow |
| Card | #fcf8f9snow | #040101black |
| Card foreground | #110406black | #fbf8f9snow |
| Popover | #fcf8f9snow | #040101black |
| Popover foreground | #110406black | #fbf8f9snow |
| Primary | #682c34saddlebrown | #682c34saddlebrown |
| Primary foreground | #eed7dbgainsboro | #eed7dbgainsboro |
| Secondary | #dededegainsboro | #1a1919black |
| Secondary foreground | #454545darkslategray | #b4b1b1darkgray |
| Muted | #e5dcdcgainsboro | #231a1bblack |
| Muted foreground | #565252dimgray | #ada9aadarkgray |
| Accent | #d4cecelightgrey | #2a2223darkslategray |
| Accent foreground | #3b3535darkslategray | #c6b9bbsilver |
| Destructive | #6c2304maroon | #f65009orangered |
| Destructive foreground | #fcc0a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #682c34saddlebrown | #682c34saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Rough in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 7.837);
--foreground: oklch(0.132 0.027 9.997);
--muted: oklch(0.902 0.009 17.331);
--muted-foreground: oklch(0.443 0.004 17.323);
--popover: oklch(0.983 0.004 7.837);
--popover-foreground: oklch(0.132 0.027 9.997);
--card: oklch(0.983 0.004 7.837);
--card-foreground: oklch(0.132 0.027 9.997);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.379 0.087 13.993);
--primary-foreground: oklch(0.9 0.026 8.446);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.857 0.006 17.276);
--accent-foreground: oklch(0.335 0.01 17.64);
--destructive: oklch(0.366 0.111 39.866);
--destructive-foreground: oklch(0.856 0.077 44.274);
--ring: oklch(0.379 0.087 13.993);
--chart-1: oklch(0.379 0.087 13.993);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.857 0.006 17.276);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.379 0.093 14.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.015 8.828);
--foreground: oklch(0.983 0.003 7.831);
--muted: oklch(0.23 0.014 9.198);
--muted-foreground: oklch(0.738 0.004 7.879);
--popover: oklch(0.082 0.015 8.828);
--popover-foreground: oklch(0.983 0.003 7.831);
--card: oklch(0.082 0.015 8.828);
--card-foreground: oklch(0.983 0.003 7.831);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.379 0.087 13.993);
--primary-foreground: oklch(0.9 0.026 8.446);
--secondary: oklch(0.215 0.002 7.933);
--secondary-foreground: oklch(0.763 0.004 7.862);
--accent: oklch(0.263 0.012 8.836);
--accent-foreground: oklch(0.796 0.015 8.197);
--destructive: oklch(0.656 0.212 37.878);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.379 0.087 13.993);
--chart-1: oklch(0.379 0.087 13.993);
--chart-2: oklch(0.215 0.002 7.933);
--chart-3: oklch(0.263 0.012 8.836);
--chart-4: oklch(0.247 0.002 7.95);
--chart-5: oklch(0.379 0.093 14.568);
}