Faraway is a shadcn/ui theme built around a neutral gray primary color (#3b3b3a) with muted yellow accents (#ccc5a8). The light mode uses a neutral background (#fefdfb). Dark mode keeps the neutral gray primary (#3b3b3a) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #080702black |
| Foreground | #080702black | #fdfdfcwhite |
| Card | #fefdfbsnow | #080702black |
| Card foreground | #080702black | #fdfdfcwhite |
| Popover | #fefdfbsnow | #080702black |
| Popover foreground | #080702black | #fdfdfcwhite |
| Primary | #3b3b3adarkslategray | #3b3b3adarkslategray |
| Primary foreground | #d4d4d3lightgrey | #d4d4d3lightgrey |
| Secondary | #d5d2c3lightgrey | #28251bblack |
| Secondary foreground | #3c392adarkslategray | #c8c2acsilver |
| Muted | #e9e5d8gainsboro | #272416black |
| Muted foreground | #4e4b41darkslategray | #bebbb1silver |
| Accent | #ccc5a8silver | #453f27darkolivegreen |
| Accent foreground | #2a2619black | #dcd7c1lightgrey |
| Destructive | #ca4916chocolate | #cf4b17chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b3b3adarkslategray | #3b3b3adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 4.68:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Faraway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 95.072);
--foreground: oklch(0.128 0.018 99.928);
--muted: oklch(0.922 0.018 95.255);
--muted-foreground: oklch(0.413 0.017 95.465);
--popover: oklch(0.995 0.003 95.072);
--popover-foreground: oklch(0.128 0.018 99.928);
--card: oklch(0.995 0.003 95.072);
--card-foreground: oklch(0.128 0.018 99.928);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.352 0.002 95.089);
--primary-foreground: oklch(0.87 0.001 95.047);
--secondary: oklch(0.861 0.02 95.297);
--secondary-foreground: oklch(0.342 0.025 95.694);
--accent: oklch(0.821 0.04 95.526);
--accent-foreground: oklch(0.269 0.024 95.769);
--destructive: oklch(0.577 0.174 38.952);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.352 0.002 95.089);
--chart-1: oklch(0.352 0.002 95.089);
--chart-2: oklch(0.861 0.02 95.297);
--chart-3: oklch(0.821 0.04 95.526);
--chart-4: oklch(0.882 0.017 95.254);
--chart-5: oklch(0.356 0.006 95.241);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 99.118);
--foreground: oklch(0.994 0.002 95.054);
--muted: oklch(0.258 0.024 95.771);
--muted-foreground: oklch(0.793 0.015 95.242);
--popover: oklch(0.126 0.015 99.118);
--popover-foreground: oklch(0.994 0.002 95.054);
--card: oklch(0.126 0.015 99.118);
--card-foreground: oklch(0.994 0.002 95.054);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.352 0.002 95.089);
--primary-foreground: oklch(0.87 0.001 95.047);
--secondary: oklch(0.264 0.019 95.693);
--secondary-foreground: oklch(0.814 0.031 95.435);
--accent: oklch(0.365 0.039 95.79);
--accent-foreground: oklch(0.877 0.03 95.399);
--destructive: oklch(0.587 0.177 38.926);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.352 0.002 95.089);
--chart-1: oklch(0.352 0.002 95.089);
--chart-2: oklch(0.264 0.019 95.693);
--chart-3: oklch(0.365 0.039 95.79);
--chart-4: oklch(0.299 0.023 95.712);
--chart-5: oklch(0.356 0.006 95.241);
}