Underlying Fernweh is a shadcn/ui theme built around a yellow primary color (#9c7a2b) with blue accents (#2b4d9c). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#9c7a2b) on a yellow-tinted background (#0b0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0b0904black |
| Foreground | #040301black | #ffffffwhite |
| Card | #fefdfbsnow | #0b0904black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fefdfbsnow | #0b0904black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #9c7a2bsienna | #9c7a2bsienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2b4d9cdarkslateblue | #2b4d9cdarkslateblue |
| Secondary foreground | #fbfcfewhite | #fbfcfewhite |
| Muted | #eaecf0lavender | #0f1115black |
| Muted foreground | #414858darkslategray | #a7aebedarkgray |
| Accent | #2b4d9cdarkslateblue | #2b4d9cdarkslateblue |
| Accent foreground | #fbfcfewhite | #fbfcfewhite |
| Destructive | #dd2403orangered | #e22503orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e7e5dfgainsboro | #1d1b16black |
| Input | #e7e5dfgainsboro | #1d1b16black |
| Ring | #9c7a2bsienna | #9c7a2bsienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 7.75:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use Underlying Fernweh in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 87.437);
--foreground: oklch(0.099 0.013 93.406);
--muted: oklch(0.943 0.006 267.383);
--muted-foreground: oklch(0.401 0.029 266.861);
--popover: oklch(0.995 0.003 87.437);
--popover-foreground: oklch(0.099 0.013 93.406);
--card: oklch(0.995 0.003 87.437);
--card-foreground: oklch(0.099 0.013 93.406);
--border: oklch(0.921 0.008 87.463);
--input: oklch(0.921 0.008 87.463);
--primary: oklch(0.598 0.104 84.937);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.44 0.135 264.147);
--secondary-foreground: oklch(0.991 0.003 267.403);
--accent: oklch(0.44 0.135 264.147);
--accent-foreground: oklch(0.991 0.003 267.403);
--destructive: oklch(0.576 0.22 31.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.104 84.937);
--chart-1: oklch(0.598 0.104 84.937);
--chart-2: oklch(0.44 0.135 264.147);
--chart-3: oklch(0.44 0.135 264.147);
--chart-4: oklch(0.463 0.144 264.118);
--chart-5: oklch(0.604 0.108 84.577);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 91.579);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.009 267.033);
--muted-foreground: oklch(0.75 0.024 267.202);
--popover: oklch(0.14 0.012 91.579);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.012 91.579);
--card-foreground: oklch(1 0 180);
--border: oklch(0.222 0.01 87.568);
--input: oklch(0.222 0.01 87.568);
--primary: oklch(0.598 0.104 84.937);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.44 0.135 264.147);
--secondary-foreground: oklch(0.991 0.003 267.403);
--accent: oklch(0.44 0.135 264.147);
--accent-foreground: oklch(0.991 0.003 267.403);
--destructive: oklch(0.586 0.224 31.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.104 84.937);
--chart-1: oklch(0.598 0.104 84.937);
--chart-2: oklch(0.44 0.135 264.147);
--chart-3: oklch(0.44 0.135 264.147);
--chart-4: oklch(0.463 0.144 264.118);
--chart-5: oklch(0.604 0.108 84.577);
}