Faraway is a shadcn/ui theme built around a deep red primary color (#1d0c0f) with muted red accents (#c4abb0). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep red primary (#1d0c0f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #0c0305black | #f8f6f7whitesmoke |
| Card | #fcf8f9snow | #030303black |
| Card foreground | #080203black | #fbf9f9snow |
| Popover | #fcf8f9snow | #030303black |
| Popover foreground | #080203black | #fbf9f9snow |
| Primary | #1d0c0fblack | #1d0c0fblack |
| Primary foreground | #d08a9arosybrown | #d08a9arosybrown |
| Secondary | #d4c9cblightgrey | #2d2426darkslategray |
| Secondary foreground | #3c2f32darkslategray | #c9bbbesilver |
| Muted | #e9e7e7linen | #181616black |
| Muted foreground | #6d555adimgray | #aa9298rosybrown |
| Accent | #c4abb0silver | #3f2c30darkslategray |
| Accent foreground | #24191bblack | #d7c6cathistle |
| Destructive | #d04d0bchocolate | #f36720chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d0c0fblack | #1d0c0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.41:1 | AA Large |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Faraway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 2.14);
--foreground: oklch(0.12 0.022 2.413);
--muted: oklch(0.93 0.003 2.143);
--muted-foreground: oklch(0.476 0.032 3.847);
--popover: oklch(0.982 0.005 2.215);
--popover-foreground: oklch(0.105 0.019 2.204);
--card: oklch(0.982 0.005 2.215);
--card-foreground: oklch(0.105 0.019 2.204);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.181 0.031 6.73);
--primary-foreground: oklch(0.71 0.088 5.373);
--secondary: oklch(0.845 0.013 2.5);
--secondary-foreground: oklch(0.321 0.019 3.674);
--accent: oklch(0.764 0.031 3.152);
--accent-foreground: oklch(0.229 0.018 4.18);
--destructive: oklch(0.591 0.178 40.739);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.181 0.031 6.73);
--chart-1: oklch(0.181 0.031 6.73);
--chart-2: oklch(0.845 0.013 2.5);
--chart-3: oklch(0.764 0.031 3.152);
--chart-4: oklch(0.87 0.011 2.419);
--chart-5: oklch(0.18 0.033 7.104);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 2.134);
--muted: oklch(0.202 0.004 2.578);
--muted-foreground: oklch(0.684 0.029 3.195);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 2.111);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 2.111);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.181 0.031 6.73);
--primary-foreground: oklch(0.71 0.088 5.373);
--secondary: oklch(0.273 0.014 3.443);
--secondary-foreground: oklch(0.804 0.016 2.6);
--accent: oklch(0.318 0.028 4.386);
--accent-foreground: oklch(0.842 0.019 2.683);
--destructive: oklch(0.68 0.189 42.673);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.181 0.031 6.73);
--chart-1: oklch(0.181 0.031 6.73);
--chart-2: oklch(0.273 0.014 3.443);
--chart-3: oklch(0.318 0.028 4.386);
--chart-4: oklch(0.302 0.016 3.503);
--chart-5: oklch(0.18 0.033 7.104);
}