Mountain is a shadcn/ui theme built around a vivid deep yellow primary color (#291f00) with muted light yellow accents (#d3d0c5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep yellow primary (#291f00) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0a0905black |
| Foreground | #100d04black | #fbfaf9snow |
| Card | #fdfbf7snow | #0e0c06black |
| Card foreground | #0c0a03black | #fdfdfcwhite |
| Popover | #fdfbf7snow | #0e0c06black |
| Popover foreground | #0c0a03black | #fdfdfcwhite |
| Primary | #291f00black | #291f00black |
| Primary foreground | #f4bb01orange | #f4bb01orange |
| Secondary | #d3d0c5lightgrey | #161513black |
| Secondary foreground | #3a372cdarkslategray | #b5b1a6darkgray |
| Muted | #eeeaddbeige | #221e11black |
| Muted foreground | #55534edarkslategray | #b1afaadarkgray |
| Accent | #d3d0c5lightgrey | #161513black |
| Accent foreground | #3a372cdarkslategray | #b5b1a6darkgray |
| Destructive | #8e210bdarkred | #f05233tomato |
| Destructive foreground | #fbd7d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #291f00black | #291f00black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 8.49:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Mountain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 92.687);
--foreground: oklch(0.16 0.02 95.005);
--muted: oklch(0.936 0.017 92.829);
--muted-foreground: oklch(0.443 0.008 92.832);
--popover: oklch(0.989 0.006 92.717);
--popover-foreground: oklch(0.144 0.017 96.794);
--card: oklch(0.989 0.006 92.717);
--card-foreground: oklch(0.144 0.017 96.794);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.244 0.05 92.365);
--primary-foreground: oklch(0.821 0.168 86.499);
--secondary: oklch(0.857 0.015 92.825);
--secondary-foreground: oklch(0.336 0.019 93.091);
--accent: oklch(0.857 0.015 92.825);
--accent-foreground: oklch(0.336 0.019 93.091);
--destructive: oklch(0.427 0.148 32.806);
--destructive-foreground: oklch(0.908 0.042 31.205);
--ring: oklch(0.244 0.05 92.365);
--chart-1: oklch(0.244 0.05 92.365);
--chart-2: oklch(0.857 0.015 92.825);
--chart-3: oklch(0.857 0.015 92.825);
--chart-4: oklch(0.878 0.013 92.797);
--chart-5: oklch(0.246 0.051 92.338);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 95.898);
--foreground: oklch(0.986 0.002 92.674);
--muted: oklch(0.235 0.023 93.16);
--muted-foreground: oklch(0.754 0.007 92.75);
--popover: oklch(0.155 0.013 94.24);
--popover-foreground: oklch(0.993 0.001 92.665);
--card: oklch(0.155 0.013 94.24);
--card-foreground: oklch(0.993 0.001 92.665);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.244 0.05 92.365);
--primary-foreground: oklch(0.821 0.168 86.499);
--secondary: oklch(0.197 0.006 92.914);
--secondary-foreground: oklch(0.761 0.016 92.854);
--accent: oklch(0.197 0.006 92.914);
--accent-foreground: oklch(0.761 0.016 92.854);
--destructive: oklch(0.651 0.199 33.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.244 0.05 92.365);
--chart-1: oklch(0.244 0.05 92.365);
--chart-2: oklch(0.197 0.006 92.914);
--chart-3: oklch(0.197 0.006 92.914);
--chart-4: oklch(0.232 0.007 92.94);
--chart-5: oklch(0.246 0.051 92.338);
}