Far-off for shadcn/ui

Far-off is a shadcn/ui theme built around a muted deep purple primary color (#261725) with muted light purple accents (#e2d5e1). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#261725) on a purple-tinted background (#10050f).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#10050fblack
Foreground
#080208black
#fdfcfdwhite
Card
#fbf3fbghostwhite
#140613black
Card foreground
#040104black
#ffffffwhite
Popover
#fbf3fbghostwhite
#140613black
Popover foreground
#040104black
#ffffffwhite
Primary
#261725black
#261725black
Primary foreground
#c9a6c7silver
#c9a6c7silver
Secondary
#e2d5e1gainsboro
#181117black
Secondary foreground
#4f364edarkslategray
#baa0b9darkgray
Muted
#f2eef1whitesmoke
#110d11black
Muted foreground
#504e50darkslategray
#b1afb1darkgray
Accent
#e2d5e1gainsboro
#181117black
Accent foreground
#4f364edarkslategray
#baa0b9darkgray
Destructive
#5d1b09maroon
#eb4f24chocolate
Destructive foreground
#f6b4a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#261725black
#261725black

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.14:1AAA
Primary button7.91:1AAA
Secondary button7.51:1AAA
Muted text7.16:1AAA
Accent7.51:1AAA
Destructive7.34:1AAA
Dark mode
Text on background19.55:1AAA
Text on card19.73:1AAA
Primary button7.91:1AAA
Secondary button7.79:1AAA
Muted text8.82:1AAA
Accent7.79:1AAA
Destructive3.71:1AA Large

CSS variables

Paste this into your globals.css to use Far-off in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 327.123);
  --foreground: oklch(0.107 0.028 328.634);
  --muted: oklch(0.952 0.007 327.102);
  --muted-foreground: oklch(0.427 0.003 327.107);
  --popover: oklch(0.973 0.014 327.166);
  --popover-foreground: oklch(0.085 0.022 328.634);
  --card: oklch(0.973 0.014 327.166);
  --card-foreground: oklch(0.085 0.022 328.634);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.231 0.034 328.311);
  --primary-foreground: oklch(0.767 0.06 327.729);
  --secondary: oklch(0.886 0.023 327.273);
  --secondary-foreground: oklch(0.37 0.052 328.256);
  --accent: oklch(0.886 0.023 327.273);
  --accent-foreground: oklch(0.37 0.052 328.256);
  --destructive: oklch(0.327 0.101 35.678);
  --destructive-foreground: oklch(0.827 0.082 36.05);
  --ring: oklch(0.231 0.034 328.311);
  --chart-1: oklch(0.231 0.034 328.311);
  --chart-2: oklch(0.886 0.023 327.273);
  --chart-3: oklch(0.886 0.023 327.273);
  --chart-4: oklch(0.911 0.018 327.217);
  --chart-5: oklch(0.231 0.038 328.457);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.031 328.73);
  --foreground: oklch(0.992 0.002 327.062);
  --muted: oklch(0.167 0.01 327.582);
  --muted-foreground: oklch(0.756 0.003 327.072);
  --popover: oklch(0.152 0.036 328.913);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.036 328.913);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.231 0.034 328.311);
  --primary-foreground: oklch(0.767 0.06 327.729);
  --secondary: oklch(0.189 0.016 327.792);
  --secondary-foreground: oklch(0.738 0.046 327.596);
  --accent: oklch(0.189 0.016 327.792);
  --accent-foreground: oklch(0.738 0.046 327.596);
  --destructive: oklch(0.637 0.199 35.538);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.231 0.034 328.311);
  --chart-1: oklch(0.231 0.034 328.311);
  --chart-2: oklch(0.189 0.016 327.792);
  --chart-3: oklch(0.189 0.016 327.792);
  --chart-4: oklch(0.222 0.021 327.883);
  --chart-5: oklch(0.231 0.038 328.457);
}