Rough is a shadcn/ui theme built around a light green primary color (#f1f9f1) with light purple accents (#f9f1f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f1f9f1) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #031704black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030703black |
| Card foreground | #021203black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030703black |
| Popover foreground | #021203black | #ffffffwhite |
| Primary | #f1f9f1honeydew | #f1f9f1honeydew |
| Primary foreground | #183a1adarkgreen | #183a1adarkgreen |
| Secondary | #f9f1f9whitesmoke | #f9f1f9whitesmoke |
| Secondary foreground | #81367erebeccapurple | #81367erebeccapurple |
| Muted | #e0dcdfgainsboro | #231f23black |
| Muted foreground | #564e55dimgray | #b1a9b1darkgray |
| Accent | #f9f1f9whitesmoke | #f9f1f9whitesmoke |
| Accent foreground | #81367erebeccapurple | #81367erebeccapurple |
| Destructive | #8e340bsaddlebrown | #ef6525chocolate |
| Destructive foreground | #fbddd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f9f1honeydew | #f1f9f1honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 11.78:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 5.91:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 11.78:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Rough in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.048 144.549);
--muted: oklch(0.899 0.006 327.095);
--muted-foreground: oklch(0.433 0.016 327.382);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.162 0.042 144.755);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.042 144.755);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.974 0.014 146.907);
--primary-foreground: oklch(0.312 0.068 144.707);
--secondary: oklch(0.966 0.014 327.169);
--secondary-foreground: oklch(0.463 0.139 329.496);
--accent: oklch(0.966 0.014 327.169);
--accent-foreground: oklch(0.463 0.139 329.496);
--destructive: oklch(0.45 0.131 40.92);
--destructive-foreground: oklch(0.92 0.038 46.433);
--ring: oklch(0.974 0.014 146.907);
--chart-1: oklch(0.974 0.014 146.907);
--chart-2: oklch(0.966 0.014 327.169);
--chart-3: oklch(0.966 0.014 327.169);
--chart-4: oklch(0.991 0.003 327.07);
--chart-5: oklch(0.974 0.015 146.897);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 146.111);
--foreground: oklch(0.993 0.003 147.013);
--muted: oklch(0.246 0.008 327.322);
--muted-foreground: oklch(0.745 0.014 327.214);
--popover: oklch(0.12 0.015 146.111);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.015 146.111);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.974 0.014 146.907);
--primary-foreground: oklch(0.312 0.068 144.707);
--secondary: oklch(0.966 0.014 327.169);
--secondary-foreground: oklch(0.463 0.139 329.496);
--accent: oklch(0.966 0.014 327.169);
--accent-foreground: oklch(0.463 0.139 329.496);
--destructive: oklch(0.67 0.185 41.946);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.974 0.014 146.907);
--chart-1: oklch(0.974 0.014 146.907);
--chart-2: oklch(0.966 0.014 327.169);
--chart-3: oklch(0.966 0.014 327.169);
--chart-4: oklch(0.991 0.003 327.07);
--chart-5: oklch(0.974 0.015 146.897);
}