Ridge is a shadcn/ui theme built around a muted deep orange primary color (#38312e) with muted deep violet accents (#312e38). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#38312e) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070403black |
| Foreground | #0d0602black | #fbfaf9snow |
| Card | #fcfcfcsnow | #0a0705black |
| Card foreground | #090401black | #fdfcfcsnow |
| Popover | #ffffffwhite | #070403black |
| Popover foreground | #0d0602black | #fbfaf9snow |
| Primary | #38312edarkslategray | #38312edarkslategray |
| Primary foreground | #d1cac7lightgrey | #d1cac7lightgrey |
| Secondary | #2e3831darkslategray | #2e3831darkslategray |
| Secondary foreground | #c7d1calightgrey | #c7d1calightgrey |
| Muted | #dee3dfgainsboro | #1c211eblack |
| Muted foreground | #586f5fdimgray | #90a798darkseagreen |
| Accent | #312e38darkslategray | #312e38darkslategray |
| Accent foreground | #cac7d1lightgrey | #cac7d1lightgrey |
| Destructive | #a83810brown | #ee7144tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #38312edarkslategray | #38312edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 4.19:1 | AA Large |
| Accent | 7.98:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 7.09:1 | AAA |
Paste this into your globals.css to use Ridge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.021 59.69);
--muted: oklch(0.911 0.008 157.093);
--muted-foreground: oklch(0.519 0.038 155.689);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.021 59.69);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.114 0.018 60.724);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.32 0.011 48.342);
--primary-foreground: oklch(0.844 0.009 48.622);
--secondary: oklch(0.329 0.018 156.091);
--secondary-foreground: oklch(0.851 0.014 156.916);
--accent: oklch(0.308 0.019 300.518);
--accent-foreground: oklch(0.835 0.014 301.213);
--destructive: oklch(0.499 0.154 37.803);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.32 0.011 48.342);
--chart-1: oklch(0.32 0.011 48.342);
--chart-2: oklch(0.329 0.018 156.091);
--chart-3: oklch(0.308 0.019 300.518);
--chart-4: oklch(0.36 0.02 156.057);
--chart-5: oklch(0.32 0.015 48.231);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.008 53.856);
--foreground: oklch(0.985 0.002 48.726);
--muted: oklch(0.242 0.011 156.342);
--muted-foreground: oklch(0.707 0.035 156.212);
--popover: oklch(0.115 0.008 53.856);
--popover-foreground: oklch(0.985 0.002 48.726);
--card: oklch(0.131 0.009 53.833);
--card-foreground: oklch(0.992 0.001 48.739);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.32 0.011 48.342);
--primary-foreground: oklch(0.844 0.009 48.622);
--secondary: oklch(0.329 0.018 156.091);
--secondary-foreground: oklch(0.851 0.014 156.916);
--accent: oklch(0.308 0.019 300.518);
--accent-foreground: oklch(0.835 0.014 301.213);
--destructive: oklch(0.69 0.165 39.945);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.32 0.011 48.342);
--chart-1: oklch(0.32 0.011 48.342);
--chart-2: oklch(0.329 0.018 156.091);
--chart-3: oklch(0.308 0.019 300.518);
--chart-4: oklch(0.36 0.02 156.057);
--chart-5: oklch(0.32 0.015 48.231);
}