Far is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e0d1d1). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdf7f7snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f7snow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e0d1d1lightgrey | #292929darkslategray |
| Secondary foreground | #4c3434darkslategray | #c2c2c2silver |
| Muted | #f1dfdfmistyrose | #200e0eblack |
| Muted foreground | #6b6161dimgray | #9e9494rosybrown |
| Accent | #e0d1d1lightgrey | #292929darkslategray |
| Accent foreground | #4c3434darkslategray | #c2c2c2silver |
| Destructive | #ad130bfirebrick | #e1190ered |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 4.66:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Far in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 17.208);
--foreground: oklch(0 0 0);
--muted: oklch(0.918 0.02 17.527);
--muted-foreground: oklch(0.502 0.013 17.597);
--popover: oklch(0.981 0.006 17.259);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 17.259);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.874 0.016 17.467);
--secondary-foreground: oklch(0.352 0.035 18.982);
--accent: oklch(0.874 0.016 17.467);
--accent-foreground: oklch(0.352 0.035 18.982);
--destructive: oklch(0.476 0.185 29.386);
--destructive-foreground: oklch(0.959 0.019 21.141);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.874 0.016 17.467);
--chart-3: oklch(0.874 0.016 17.467);
--chart-4: oklch(0.899 0.013 17.394);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.032 20.427);
--muted-foreground: oklch(0.675 0.012 17.457);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.28 0 180);
--secondary-foreground: oklch(0.813 0 165.964);
--accent: oklch(0.28 0 180);
--accent-foreground: oklch(0.813 0 165.964);
--destructive: oklch(0.579 0.228 29.447);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.28 0 180);
--chart-3: oklch(0.28 0 180);
--chart-4: oklch(0.311 0 180);
--chart-5: oklch(1 0 180);
}