Far-off is a shadcn/ui theme built around a vivid light purple primary color (#ea8bf9) with vivid light pink accents (#f98bd0). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light purple primary (#ea8bf9) on a purple-tinted background (#0b030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0b030cblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdfcfdwhite | #0b030cblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #0b030cblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #ea8bf9violet | #ea8bf9violet |
| Primary foreground | #44044eindigo | #44044eindigo |
| Secondary | #b38bf9mediumpurple | #b38bf9mediumpurple |
| Secondary foreground | #1f044emidnightblue | #1f044emidnightblue |
| Muted | #ecebf0lavender | #110f14black |
| Muted foreground | #484153darkslategray | #b3acbedarkgray |
| Accent | #f98bd0violet | #f98bd0violet |
| Accent foreground | #4e0433maroon | #4e0433maroon |
| Destructive | #d35309chocolate | #dc5709chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea8bf9violet | #ea8bf9violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 4.20:1 | AA Large |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.65:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Far-off in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 321.6);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.007 302.816);
--muted-foreground: oklch(0.389 0.031 301.717);
--popover: oklch(0.991 0.003 321.6);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 321.6);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.775 0.18 322.103);
--primary-foreground: oklch(0.282 0.128 321.616);
--secondary: oklch(0.719 0.16 299.276);
--secondary-foreground: oklch(0.225 0.119 289.796);
--accent: oklch(0.775 0.156 342.719);
--accent-foreground: oklch(0.283 0.113 348.549);
--destructive: oklch(0.602 0.176 42.764);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.18 322.103);
--chart-1: oklch(0.775 0.18 322.103);
--chart-2: oklch(0.719 0.16 299.276);
--chart-3: oklch(0.775 0.156 342.719);
--chart-4: oklch(0.753 0.139 299.959);
--chart-5: oklch(0.775 0.185 322.111);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.027 323.118);
--foreground: oklch(0.991 0.003 321.601);
--muted: oklch(0.175 0.011 302.002);
--muted-foreground: oklch(0.756 0.026 302.403);
--popover: oklch(0.123 0.027 323.118);
--popover-foreground: oklch(0.991 0.003 321.601);
--card: oklch(0.123 0.027 323.118);
--card-foreground: oklch(0.991 0.003 321.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.775 0.18 322.103);
--primary-foreground: oklch(0.282 0.128 321.616);
--secondary: oklch(0.719 0.16 299.276);
--secondary-foreground: oklch(0.225 0.119 289.796);
--accent: oklch(0.775 0.156 342.719);
--accent-foreground: oklch(0.283 0.113 348.549);
--destructive: oklch(0.623 0.182 42.67);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.18 322.103);
--chart-1: oklch(0.775 0.18 322.103);
--chart-2: oklch(0.719 0.16 299.276);
--chart-3: oklch(0.775 0.156 342.719);
--chart-4: oklch(0.753 0.139 299.959);
--chart-5: oklch(0.775 0.185 322.111);
}