Other for shadcn/ui

Other is a shadcn/ui theme built around a near-black primary color (#080707) with near-black accents (#070808). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the near-black primary (#080707) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#fdf9f7snow
#080402black
Foreground
#140b06black
#fafaf9snow
Card
#fbf6f3whitesmoke
#0c0603black
Card foreground
#100905black
#fdfcfcsnow
Popover
#fdf9f7snow
#080402black
Popover foreground
#140b06black
#fafaf9snow
Primary
#080707black
#080707black
Primary foreground
#ab9e96darkgray
#ab9e96darkgray
Secondary
#070808black
#070808black
Secondary foreground
#96a3abdarkgray
#96a3abdarkgray
Muted
#e7eff3lavender
#0c1318black
Muted foreground
#404345darkslategray
#babdbfsilver
Accent
#070808black
#070808black
Accent foreground
#96a3abdarkgray
#96a3abdarkgray
Destructive
#9a1d04darkred
#f94824orangered
Destructive foreground
#fedad2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080707black
#080707black

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.46:1AAA
Primary button7.70:1AAA
Secondary button7.76:1AAA
Muted text8.55:1AAA
Accent7.76:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.61:1AAA
Primary button7.70:1AAA
Secondary button7.76:1AAA
Muted text9.88:1AAA
Accent7.76:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 52.518);
  --foreground: oklch(0.16 0.019 54.071);
  --muted: oklch(0.947 0.01 232.732);
  --muted-foreground: oklch(0.38 0.006 232.79);
  --popover: oklch(0.985 0.004 52.518);
  --popover-foreground: oklch(0.16 0.019 54.071);
  --card: oklch(0.977 0.007 52.487);
  --card-foreground: oklch(0.147 0.016 57.427);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.132 0.003 54.052);
  --primary-foreground: oklch(0.708 0.019 52.228);
  --secondary: oklch(0.132 0.003 231.175);
  --secondary-foreground: oklch(0.709 0.019 232.968);
  --accent: oklch(0.132 0.003 231.175);
  --accent-foreground: oklch(0.709 0.019 232.968);
  --destructive: oklch(0.446 0.164 32.451);
  --destructive-foreground: oklch(0.915 0.042 31.2);
  --ring: oklch(0.132 0.003 54.052);
  --chart-1: oklch(0.132 0.003 54.052);
  --chart-2: oklch(0.132 0.003 231.175);
  --chart-3: oklch(0.132 0.003 231.175);
  --chart-4: oklch(0.17 0.004 232.954);
  --chart-5: oklch(0.132 0.003 54.466);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.013 61.286);
  --foreground: oklch(0.985 0.001 52.568);
  --muted: oklch(0.183 0.015 234.028);
  --muted-foreground: oklch(0.798 0.005 232.662);
  --popover: oklch(0.115 0.013 61.286);
  --popover-foreground: oklch(0.985 0.001 52.568);
  --card: oklch(0.132 0.015 60.752);
  --card-foreground: oklch(0.992 0 52.574);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.132 0.003 54.052);
  --primary-foreground: oklch(0.708 0.019 52.228);
  --secondary: oklch(0.132 0.003 231.175);
  --secondary-foreground: oklch(0.709 0.019 232.968);
  --accent: oklch(0.132 0.003 231.175);
  --accent-foreground: oklch(0.709 0.019 232.968);
  --destructive: oklch(0.655 0.219 33.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.132 0.003 54.052);
  --chart-1: oklch(0.132 0.003 54.052);
  --chart-2: oklch(0.132 0.003 231.175);
  --chart-3: oklch(0.132 0.003 231.175);
  --chart-4: oklch(0.17 0.004 232.954);
  --chart-5: oklch(0.132 0.003 54.466);
}