Rye is a shadcn/ui theme built around a near-white primary color (#eff0ef) with neutral gray accents (#e0e2df). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the near-white primary (#eff0ef) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020401black |
| Foreground | #000000black | #f6f9f5whitesmoke |
| Card | #f4fcf2honeydew | #030802black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #f4fcf2honeydew | #030802black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #eff0efwhitesmoke | #eff0efwhitesmoke |
| Primary foreground | #555954dimgray | #555954dimgray |
| Secondary | #e0e2dfgainsboro | #1d211cblack |
| Secondary foreground | #464a45darkslategray | #b4beb1silver |
| Muted | #e6ece4beige | #141b13black |
| Muted foreground | #60635fdimgray | #9da09cdarkgray |
| Accent | #e0e2dfgainsboro | #1d211cblack |
| Accent foreground | #464a45darkslategray | #b4beb1silver |
| Destructive | #d73904orangered | #fa4e14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eff0efwhitesmoke | #eff0efwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 5.06:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 4.69:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 8.48:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Rye in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.011 139.981);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.012 139.979);
--muted-foreground: oklch(0.495 0.007 139.978);
--popover: oklch(0.983 0.016 139.977);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.016 139.977);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.955 0.001 139.99);
--primary-foreground: oklch(0.46 0.01 139.972);
--secondary: oklch(0.909 0.004 139.987);
--secondary-foreground: oklch(0.404 0.011 139.966);
--accent: oklch(0.909 0.004 139.987);
--accent-foreground: oklch(0.404 0.011 139.966);
--destructive: oklch(0.581 0.201 35.137);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.955 0.001 139.99);
--chart-1: oklch(0.955 0.001 139.99);
--chart-2: oklch(0.909 0.004 139.987);
--chart-3: oklch(0.909 0.004 139.987);
--chart-4: oklch(0.932 0.003 139.988);
--chart-5: oklch(0.955 0.003 139.988);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.019 138.141);
--foreground: oklch(0.98 0.006 139.985);
--muted: oklch(0.212 0.018 139.924);
--muted-foreground: oklch(0.702 0.007 139.983);
--popover: oklch(0.124 0.024 138.141);
--popover-foreground: oklch(0.986 0.004 139.987);
--card: oklch(0.124 0.024 138.141);
--card-foreground: oklch(0.986 0.004 139.987);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.955 0.001 139.99);
--primary-foreground: oklch(0.46 0.01 139.972);
--secondary: oklch(0.243 0.012 139.947);
--secondary-foreground: oklch(0.79 0.021 139.967);
--accent: oklch(0.243 0.012 139.947);
--accent-foreground: oklch(0.79 0.021 139.967);
--destructive: oklch(0.661 0.217 36.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.955 0.001 139.99);
--chart-1: oklch(0.955 0.001 139.99);
--chart-2: oklch(0.243 0.012 139.947);
--chart-3: oklch(0.243 0.012 139.947);
--chart-4: oklch(0.276 0.015 139.945);
--chart-5: oklch(0.955 0.003 139.988);
}