Small Mountain Fig is a shadcn/ui theme built around a muted deep indigo primary color (#393a46) with muted indigo accents (#acadc8). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted deep indigo primary (#393a46) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #05050ablack |
| Foreground | #000000black | #f5f5fawhitesmoke |
| Card | #f3f4fbwhitesmoke | #07070eblack |
| Card foreground | #000000black | #f8f8fbghostwhite |
| Popover | #f3f4fbwhitesmoke | #07070eblack |
| Popover foreground | #000000black | #f8f8fbghostwhite |
| Primary | #393a46darkslategray | #393a46darkslategray |
| Primary foreground | #d5d5ddgainsboro | #d5d5ddgainsboro |
| Secondary | #c5c5d3lightgrey | #1f2028black |
| Secondary foreground | #2c2c3adarkslategray | #b5b5c5silver |
| Muted | #d8d9eegainsboro | #111227black |
| Muted foreground | #424257darkslategray | #a8a8bddarkgray |
| Accent | #acadc8silver | #30304bdarkslategray |
| Accent foreground | #1b1b28black | #cdcedflightgrey |
| Destructive | #bf4b08chocolate | #f77d36coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e0e1e5gainsboro | #1e1e24black |
| Input | #e0e1e5gainsboro | #1e1e24black |
| Ring | #393a46darkslategray | #393a46darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 7.91:1 | AAA |
Paste this into your globals.css to use Small Mountain Fig in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 285.493);
--foreground: oklch(0 0 0);
--muted: oklch(0.89 0.029 285.029);
--muted-foreground: oklch(0.388 0.036 283.853);
--popover: oklch(0.968 0.01 285.427);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.968 0.01 285.427);
--card-foreground: oklch(0 0 0);
--border: oklch(0.91 0.007 285.485);
--input: oklch(0.91 0.007 285.485);
--primary: oklch(0.352 0.022 284.461);
--primary-foreground: oklch(0.875 0.01 285.406);
--secondary: oklch(0.828 0.019 285.189);
--secondary-foreground: oklch(0.299 0.025 284.001);
--accent: oklch(0.756 0.039 284.666);
--accent-foreground: oklch(0.227 0.025 283.45);
--destructive: oklch(0.561 0.163 42.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.352 0.022 284.461);
--chart-1: oklch(0.352 0.022 284.461);
--chart-2: oklch(0.828 0.019 285.189);
--chart-3: oklch(0.756 0.039 284.666);
--chart-4: oklch(0.854 0.016 285.269);
--chart-5: oklch(0.346 0.028 284.057);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.014 283.159);
--foreground: oklch(0.972 0.006 285.51);
--muted: oklch(0.193 0.042 281.005);
--muted-foreground: oklch(0.739 0.03 284.864);
--popover: oklch(0.132 0.016 283.09);
--popover-foreground: oklch(0.981 0.004 285.547);
--card: oklch(0.132 0.016 283.09);
--card-foreground: oklch(0.981 0.004 285.547);
--border: oklch(0.239 0.011 284.751);
--input: oklch(0.239 0.011 284.751);
--primary: oklch(0.352 0.022 284.461);
--primary-foreground: oklch(0.875 0.01 285.406);
--secondary: oklch(0.245 0.016 284.394);
--secondary-foreground: oklch(0.778 0.022 285.099);
--accent: oklch(0.322 0.047 282.693);
--accent-foreground: oklch(0.855 0.024 285.098);
--destructive: oklch(0.718 0.17 47.354);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.352 0.022 284.461);
--chart-1: oklch(0.352 0.022 284.461);
--chart-2: oklch(0.245 0.016 284.394);
--chart-3: oklch(0.322 0.047 282.693);
--chart-4: oklch(0.274 0.019 284.321);
--chart-5: oklch(0.346 0.028 284.057);
}