Distant for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.58:1AAA
Text on card20.17:1AAA
Primary button6.57:1AA
Secondary button7.38:1AAA
Muted text7.06:1AAA
Accent3.85:1AA Large
Destructive5.16:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.55:1AAA
Primary button6.57:1AA
Secondary button7.38:1AAA
Muted text9.02:1AAA
Accent3.85:1AA Large
Destructive6.24:1AA

CSS variables

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);
}