Rowdy is a shadcn/ui theme built around a neutral gray primary color (#8c828b) with neutral gray accents (#828b8c). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the neutral gray primary (#8c828b) on a neutral background (#080207).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #080207black |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #fcf8fbsnow | #080207black |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #fcf8fbsnow | #080207black |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #8c828bgray | #8c828bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8b8c82gray | #8b8c82gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5e9cegainsboro | #2e3116darkslategray |
| Muted foreground | #6f725adimgray | #a2a58ddarkgray |
| Accent | #828b8cgray | #828b8cgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #d64405orangered | #fa6829tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c828bgray | #8c828bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.16:1 | AA |
| Muted text | 3.98:1 | AA Large |
| Accent | 6.01:1 | AA |
| Destructive | 4.48:1 | AA Large |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.16:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 6.01:1 | AA |
| Destructive | 7.04:1 | AAA |
Paste this into your globals.css to use Rowdy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 329.207);
--foreground: oklch(0.086 0.018 330.295);
--muted: oklch(0.923 0.035 112.488);
--muted-foreground: oklch(0.543 0.037 113.032);
--popover: oklch(0.983 0.006 329.207);
--popover-foreground: oklch(0.086 0.018 330.295);
--card: oklch(0.983 0.006 329.207);
--card-foreground: oklch(0.086 0.018 330.295);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.619 0.017 329.447);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.014 112.193);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.01 206.352);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.59 0.191 37.843);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.619 0.017 329.447);
--chart-1: oklch(0.619 0.017 329.447);
--chart-2: oklch(0.636 0.014 112.193);
--chart-3: oklch(0.63 0.01 206.352);
--chart-4: oklch(0.661 0.013 112.149);
--chart-5: oklch(0.616 0.03 329.681);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.023 330.295);
--foreground: oklch(0.984 0.003 329.167);
--muted: oklch(0.302 0.043 114.477);
--muted-foreground: oklch(0.714 0.035 112.68);
--popover: oklch(0.108 0.023 330.295);
--popover-foreground: oklch(0.984 0.003 329.167);
--card: oklch(0.108 0.023 330.295);
--card-foreground: oklch(0.984 0.003 329.167);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.619 0.017 329.447);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.014 112.193);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.01 206.352);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.691 0.192 40.901);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.619 0.017 329.447);
--chart-1: oklch(0.619 0.017 329.447);
--chart-2: oklch(0.636 0.014 112.193);
--chart-3: oklch(0.63 0.01 206.352);
--chart-4: oklch(0.661 0.013 112.149);
--chart-5: oklch(0.616 0.03 329.681);
}