Far-off for shadcn/ui

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

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button6.95:1AA
Secondary button6.71:1AA
Muted text8.19:1AAA
Accent6.92:1AA
Destructive4.20:1AA Large
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button6.95:1AA
Secondary button6.71:1AA
Muted text8.65:1AAA
Accent6.92:1AA
Destructive3.88: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.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);
}