Standoff for shadcn/ui

Standoff is a shadcn/ui theme built around a vivid deep violet primary color (#0b0119) with muted light violet accents (#cbc8d0). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid deep violet primary (#0b0119) on a neutral background (#050407).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#050407black
Foreground
#07040cblack
#ffffffwhite
Card
#f7f3fcghostwhite
#07050ablack
Card foreground
#050208black
#ffffffwhite
Popover
#f7f3fcghostwhite
#07050ablack
Popover foreground
#050208black
#ffffffwhite
Primary
#0b0119black
#0b0119black
Primary foreground
#d4b5fdthistle
#d4b5fdthistle
Secondary
#cbc8d0lightgrey
#292929darkslategray
Secondary foreground
#322f37darkslategray
#c2c2c2silver
Muted
#f2edf7whitesmoke
#120808black
Muted foreground
#44404adarkslategray
#bfb5b5silver
Accent
#cbc8d0lightgrey
#292929darkslategray
Accent foreground
#322f37darkslategray
#c2c2c2silver
Destructive
#690902maroon
#fa1a0ared
Destructive foreground
#fda6a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0119black
#0b0119black

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.82:1AAA
Primary button11.46:1AAA
Secondary button7.96:1AAA
Muted text8.79:1AAA
Accent7.96:1AAA
Destructive6.79:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.25:1AAA
Primary button11.46:1AAA
Secondary button8.18:1AAA
Muted text9.87:1AAA
Accent8.18:1AAA
Destructive4.02:1AA Large

CSS variables

Paste this into your globals.css to use Standoff in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 305.631);
  --foreground: oklch(0.117 0.023 306.713);
  --muted: oklch(0.953 0.014 305.549);
  --muted-foreground: oklch(0.379 0.017 305.142);
  --popover: oklch(0.97 0.012 305.575);
  --popover-foreground: oklch(0.102 0.02 306.892);
  --card: oklch(0.97 0.012 305.575);
  --card-foreground: oklch(0.102 0.02 306.892);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.124 0.059 303.116);
  --primary-foreground: oklch(0.824 0.104 304.033);
  --secondary: oklch(0.838 0.012 305.551);
  --secondary-foreground: oklch(0.312 0.015 305.093);
  --accent: oklch(0.838 0.012 305.551);
  --accent-foreground: oklch(0.312 0.015 305.093);
  --destructive: oklch(0.333 0.129 30.365);
  --destructive-foreground: oklch(0.81 0.104 24.084);
  --ring: oklch(0.124 0.059 303.116);
  --chart-1: oklch(0.124 0.059 303.116);
  --chart-2: oklch(0.838 0.012 305.551);
  --chart-3: oklch(0.838 0.012 305.551);
  --chart-4: oklch(0.863 0.01 305.585);
  --chart-5: oklch(0.123 0.062 303.074);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 306.364);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.148 0.018 19.398);
  --muted-foreground: oklch(0.782 0.011 17.391);
  --popover: oklch(0.124 0.013 306.364);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 306.364);
  --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.124 0.059 303.116);
  --primary-foreground: oklch(0.824 0.104 304.033);
  --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.625 0.248 29.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.124 0.059 303.116);
  --chart-1: oklch(0.124 0.059 303.116);
  --chart-2: oklch(0.28 0 180);
  --chart-3: oklch(0.28 0 180);
  --chart-4: oklch(0.311 0 180);
  --chart-5: oklch(0.123 0.062 303.074);
}