Distant is a shadcn/ui theme built around an orange primary color (#87501c) with yellow accents (#87861c). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#87501c) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #070503black |
| Foreground | #000000black | #fbfaf9snow |
| Card | #fdfaf7snow | #0a0805black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdfaf7snow | #0a0805black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #87501csaddlebrown | #87501csaddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #871c1ebrown | #871c1ebrown |
| Secondary foreground | #f8dddemistyrose | #f8dddemistyrose |
| Muted | #e8d4d4gainsboro | #2b1717black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #87861colive | #87861colive |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c8390efirebrick | #f05b2dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #87501csaddlebrown | #87501csaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 3.85:1 | AA Large |
| Destructive | 5.16:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 9.02:1 | AAA |
| Accent | 3.85:1 | AA Large |
| Destructive | 6.24:1 | AA |
Paste this into your globals.css to use Distant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 65.933);
--foreground: oklch(0 0 0);
--muted: oklch(0.886 0.023 16.436);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.986 0.006 65.898);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.006 65.898);
--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.486 0.099 59.487);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.411 0.143 25.479);
--secondary-foreground: oklch(0.92 0.03 16.557);
--accent: oklch(0.602 0.121 108.523);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.556 0.186 35.374);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.099 59.487);
--chart-1: oklch(0.486 0.099 59.487);
--chart-2: oklch(0.411 0.143 25.479);
--chart-3: oklch(0.602 0.121 108.523);
--chart-4: oklch(0.438 0.153 25.606);
--chart-5: oklch(0.489 0.102 58.938);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.008 71.107);
--foreground: oklch(0.985 0.002 65.943);
--muted: oklch(0.233 0.033 18.863);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.135 0.009 71.091);
--popover-foreground: oklch(0.993 0.001 65.954);
--card: oklch(0.135 0.009 71.091);
--card-foreground: oklch(0.993 0.001 65.954);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.486 0.099 59.487);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.411 0.143 25.479);
--secondary-foreground: oklch(0.92 0.03 16.557);
--accent: oklch(0.602 0.121 108.523);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.193 36.834);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.486 0.099 59.487);
--chart-1: oklch(0.486 0.099 59.487);
--chart-2: oklch(0.411 0.143 25.479);
--chart-3: oklch(0.602 0.121 108.523);
--chart-4: oklch(0.438 0.153 25.606);
--chart-5: oklch(0.489 0.102 58.938);
}