Rash is a shadcn/ui theme built around a vivid deep purple primary color (#720456) with vivid deep red accents (#72041f). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid deep purple primary (#720456) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #11030eblack | #fdfcfdwhite |
| Card | #fdf7fbsnow | #030303black |
| Card foreground | #0d030ablack | #ffffffwhite |
| Popover | #fdf7fbsnow | #030303black |
| Popover foreground | #0d030ablack | #ffffffwhite |
| Primary | #720456purple | #720456purple |
| Primary foreground | #fcabe8plum | #fcabe8plum |
| Secondary | #560472indigo | #560472indigo |
| Secondary foreground | #e8abfcplum | #e8abfcplum |
| Muted | #e5d7eagainsboro | #231528black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #72041fmaroon | #72041fmaroon |
| Accent foreground | #fcabbflightpink | #fcabbflightpink |
| Destructive | #c82f09firebrick | #f44215orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #720456purple | #720456purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 5.43:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Rash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.945);
--foreground: oklch(0.136 0.036 336.436);
--muted: oklch(0.896 0.029 317.711);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.982 0.008 334.014);
--popover-foreground: oklch(0.122 0.032 335.269);
--card: oklch(0.982 0.008 334.014);
--card-foreground: oklch(0.122 0.032 335.269);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.372 0.157 342.326);
--primary-foreground: oklch(0.838 0.122 336.166);
--secondary: oklch(0.342 0.166 314.356);
--secondary-foreground: oklch(0.825 0.128 317.48);
--accent: oklch(0.352 0.138 17.169);
--accent-foreground: oklch(0.825 0.099 3.117);
--destructive: oklch(0.546 0.193 33.536);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.372 0.157 342.326);
--chart-1: oklch(0.372 0.157 342.326);
--chart-2: oklch(0.342 0.166 314.356);
--chart-3: oklch(0.352 0.138 17.169);
--chart-4: oklch(0.373 0.181 314.181);
--chart-5: oklch(0.375 0.159 342.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 333.892);
--muted: oklch(0.224 0.04 317.427);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.372 0.157 342.326);
--primary-foreground: oklch(0.838 0.122 336.166);
--secondary: oklch(0.342 0.166 314.356);
--secondary-foreground: oklch(0.825 0.128 317.48);
--accent: oklch(0.352 0.138 17.169);
--accent-foreground: oklch(0.825 0.099 3.117);
--destructive: oklch(0.639 0.22 33.947);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.372 0.157 342.326);
--chart-1: oklch(0.372 0.157 342.326);
--chart-2: oklch(0.342 0.166 314.356);
--chart-3: oklch(0.352 0.138 17.169);
--chart-4: oklch(0.373 0.181 314.181);
--chart-5: oklch(0.375 0.159 342.542);
}