Far-off is a shadcn/ui theme built around a muted deep yellow primary color (#3c3d24) with muted deep purple accents (#3d243c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#3c3d24) on a yellow-tinted background (#0e0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0f06black |
| Foreground | #131406black | #fafaf9snow |
| Card | #ffffffwhite | #0e0f06black |
| Card foreground | #131406black | #fafaf9snow |
| Popover | #ffffffwhite | #0e0f06black |
| Popover foreground | #131406black | #fafaf9snow |
| Primary | #3c3d24darkslategray | #3c3d24darkslategray |
| Primary foreground | #d6d7bclightgrey | #d6d7bclightgrey |
| Secondary | #243c3ddarkslategray | #243c3ddarkslategray |
| Secondary foreground | #bcd6d7lightblue | #bcd6d7lightblue |
| Muted | #ebf4f4whitesmoke | #0b1414black |
| Muted foreground | #5f6d6ddimgray | #92a0a0darkgray |
| Accent | #3d243cdarkslategray | #3d243cdarkslategray |
| Accent foreground | #d7bcd6thistle | #d7bcd6thistle |
| Destructive | #951c04darkred | #f93f1aorangered |
| Destructive foreground | #fed5cdbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c3d24darkslategray | #3c3d24darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 18.48:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Far-off in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.185 0.026 109.517);
--muted: oklch(0.961 0.01 198.213);
--muted-foreground: oklch(0.523 0.017 197.893);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.185 0.026 109.517);
--card: oklch(1 0 180);
--card-foreground: oklch(0.185 0.026 109.517);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.039 109.063);
--primary-foreground: oklch(0.871 0.036 107.903);
--secondary: oklch(0.337 0.03 197.198);
--secondary-foreground: oklch(0.858 0.028 197.889);
--accent: oklch(0.302 0.053 327.365);
--accent-foreground: oklch(0.826 0.047 326.498);
--destructive: oklch(0.435 0.159 32.502);
--destructive-foreground: oklch(0.906 0.047 31.233);
--ring: oklch(0.351 0.039 109.063);
--chart-1: oklch(0.351 0.039 109.063);
--chart-2: oklch(0.337 0.03 197.198);
--chart-3: oklch(0.302 0.053 327.365);
--chart-4: oklch(0.371 0.033 197.175);
--chart-5: oklch(0.356 0.043 109.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.018 109.031);
--foreground: oklch(0.986 0.001 107.197);
--muted: oklch(0.181 0.013 197.355);
--muted-foreground: oklch(0.694 0.016 198.025);
--popover: oklch(0.163 0.018 109.031);
--popover-foreground: oklch(0.986 0.001 107.197);
--card: oklch(0.163 0.018 109.031);
--card-foreground: oklch(0.986 0.001 107.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.039 109.063);
--primary-foreground: oklch(0.871 0.036 107.903);
--secondary: oklch(0.337 0.03 197.198);
--secondary-foreground: oklch(0.858 0.028 197.889);
--accent: oklch(0.302 0.053 327.365);
--accent-foreground: oklch(0.826 0.047 326.498);
--destructive: oklch(0.646 0.226 32.763);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.039 109.063);
--chart-1: oklch(0.351 0.039 109.063);
--chart-2: oklch(0.337 0.03 197.198);
--chart-3: oklch(0.302 0.053 327.365);
--chart-4: oklch(0.371 0.033 197.175);
--chart-5: oklch(0.356 0.043 109.222);
}