Orient for shadcn/ui

Orient is a shadcn/ui theme built around a near-black primary color (#030307) with near-black accents (#050307). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030307) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#ffffffwhite
#020203black
Foreground
#050415black
#f8f8fbghostwhite
Card
#ffffffwhite
#020203black
Card foreground
#050415black
#f8f8fbghostwhite
Popover
#ffffffwhite
#020203black
Popover foreground
#050415black
#f8f8fbghostwhite
Primary
#030307black
#030307black
Primary foreground
#c0bfe3lightsteelblue
#c0bfe3lightsteelblue
Secondary
#030507black
#030507black
Secondary foreground
#789dc4cadetblue
#789dc4cadetblue
Muted
#d4e0ecgainsboro
#131e2bblack
Muted foreground
#525e6bdimgray
#94a0addarkgray
Accent
#050307black
#050307black
Accent foreground
#d2bfe3thistle
#d2bfe3thistle
Destructive
#8a0e05darkred
#f61d0ered
Destructive foreground
#fdc8c4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030307black
#030307black

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button11.56:1AAA
Secondary button7.20:1AAA
Muted text4.94:1AA
Accent12.02:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button11.56:1AAA
Secondary button7.20:1AAA
Muted text6.31:1AA
Accent12.02:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.039 280.268);
  --muted: oklch(0.902 0.021 249.861);
  --muted-foreground: oklch(0.476 0.025 250.113);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.039 280.268);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.039 280.268);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.102 0.014 284.569);
  --primary-foreground: oklch(0.817 0.05 286.002);
  --secondary: oklch(0.113 0.009 244.109);
  --secondary-foreground: oklch(0.683 0.071 250.555);
  --accent: oklch(0.107 0.015 310.197);
  --accent-foreground: oklch(0.832 0.053 308.457);
  --destructive: oklch(0.404 0.157 29.89);
  --destructive-foreground: oklch(0.878 0.061 23.121);
  --ring: oklch(0.102 0.014 284.569);
  --chart-1: oklch(0.102 0.014 284.569);
  --chart-2: oklch(0.113 0.009 244.109);
  --chart-3: oklch(0.107 0.015 310.197);
  --chart-4: oklch(0.154 0.014 249.571);
  --chart-5: oklch(0.101 0.015 284.288);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.009 285.086);
  --foreground: oklch(0.981 0.004 287.091);
  --muted: oklch(0.231 0.029 250.783);
  --muted-foreground: oklch(0.701 0.023 249.943);
  --popover: oklch(0.083 0.009 285.086);
  --popover-foreground: oklch(0.981 0.004 287.091);
  --card: oklch(0.083 0.009 285.086);
  --card-foreground: oklch(0.981 0.004 287.091);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.102 0.014 284.569);
  --primary-foreground: oklch(0.817 0.05 286.002);
  --secondary: oklch(0.113 0.009 244.109);
  --secondary-foreground: oklch(0.683 0.071 250.555);
  --accent: oklch(0.107 0.015 310.197);
  --accent-foreground: oklch(0.832 0.053 308.457);
  --destructive: oklch(0.619 0.243 29.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.102 0.014 284.569);
  --chart-1: oklch(0.102 0.014 284.569);
  --chart-2: oklch(0.113 0.009 244.109);
  --chart-3: oklch(0.107 0.015 310.197);
  --chart-4: oklch(0.154 0.014 249.571);
  --chart-5: oklch(0.101 0.015 284.288);
}