Rider is a shadcn/ui theme built around a green primary color (#2a9d20) with green accents (#209d54). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#2a9d20) on a green-tinted background (#051004).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #051004black |
| Foreground | #010401black | #ffffffwhite |
| Card | #f8fdf7mintcream | #051004black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #051004black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #2a9d20forestgreen | #2a9d20forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #699d20olivedrab | #699d20olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe5cdgainsboro | #28321adarkslategray |
| Muted foreground | #667156dimgray | #9ea98edarkseagreen |
| Accent | #209d54seagreen | #209d54seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d44108orangered | #f75718orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a9d20forestgreen | #2a9d20forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 3.54:1 | AA Large |
| Secondary button | 3.27:1 | AA Large |
| Muted text | 3.96:1 | AA Large |
| Accent | 3.50:1 | AA Large |
| Destructive | 4.60:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 3.54:1 | AA Large |
| Secondary button | 3.27:1 | AA Large |
| Muted text | 5.42:1 | AA |
| Accent | 3.50:1 | AA Large |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Rider in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 143.092);
--foreground: oklch(0.098 0.02 141.296);
--muted: oklch(0.908 0.034 125.578);
--muted-foreground: oklch(0.532 0.044 126.245);
--popover: oklch(0.988 0.009 143.092);
--popover-foreground: oklch(0.098 0.02 141.296);
--card: oklch(0.988 0.009 143.092);
--card-foreground: oklch(0.098 0.02 141.296);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.609 0.187 141.937);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.635 0.159 130.352);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.151 151.96);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.584 0.191 37.178);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.187 141.937);
--chart-1: oklch(0.609 0.187 141.937);
--chart-2: oklch(0.635 0.159 130.352);
--chart-3: oklch(0.613 0.151 151.96);
--chart-4: oklch(0.672 0.169 130.404);
--chart-5: oklch(0.616 0.192 141.952);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.031 141.567);
--foreground: oklch(1 0 180);
--muted: oklch(0.302 0.044 127.267);
--muted-foreground: oklch(0.719 0.041 125.86);
--popover: oklch(0.157 0.031 141.567);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.031 141.567);
--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.609 0.187 141.937);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.635 0.159 130.352);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.151 151.96);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.206 38.412);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.187 141.937);
--chart-1: oklch(0.609 0.187 141.937);
--chart-2: oklch(0.635 0.159 130.352);
--chart-3: oklch(0.613 0.151 151.96);
--chart-4: oklch(0.672 0.169 130.404);
--chart-5: oklch(0.616 0.192 141.952);
}