Arc Dark for shadcn/ui

Arc Dark is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#585e74). The light mode uses a blue-tinted background (#373b49). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#373b49).

Color palette

TokenLightDark
Background
#373b49darkslategray
#373b49darkslategray
Foreground
#d3d6degainsboro
#d3d6degainsboro
Card
#323643darkslategray
#323643darkslategray
Card foreground
#e2e3e9gainsboro
#e2e3e9gainsboro
Popover
#303440darkslategray
#303440darkslategray
Popover foreground
#f0f1f4whitesmoke
#f0f1f4whitesmoke
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#414553darkslategray
#414553darkslategray
Muted foreground
#c3c6d0silver
#c3c6d0silver
Accent
#585e74dimgray
#585e74dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ed201dcrimson
#ed201dcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#494b50darkslategray
#494b50darkslategray
Input
#515258darkslategray
#515258darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background7.69:1AAA
Text on card9.39:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.59:1AA
Accent6.43:1AA
Destructive4.36:1AA Large
Dark mode
Text on background7.69:1AAA
Text on card9.39:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.59:1AA
Accent6.43:1AA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.353 0.025 272.944);
  --foreground: oklch(0.876 0.012 273.71);
  --muted: oklch(0.392 0.024 273.076);
  --muted-foreground: oklch(0.827 0.014 273.663);
  --popover: oklch(0.325 0.022 272.971);
  --popover-foreground: oklch(0.959 0.004 273.82);
  --card: oklch(0.335 0.023 272.961);
  --card-foreground: oklch(0.918 0.008 273.769);
  --border: oklch(0.412 0.008 273.634);
  --input: oklch(0.44 0.009 273.631);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.485 0.037 272.863);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.604 0.233 28.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.485 0.037 272.863);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.353 0.025 272.944);
  --foreground: oklch(0.876 0.012 273.71);
  --muted: oklch(0.392 0.024 273.076);
  --muted-foreground: oklch(0.827 0.014 273.663);
  --popover: oklch(0.325 0.022 272.971);
  --popover-foreground: oklch(0.959 0.004 273.82);
  --card: oklch(0.335 0.023 272.961);
  --card-foreground: oklch(0.918 0.008 273.769);
  --border: oklch(0.412 0.008 273.634);
  --input: oklch(0.44 0.009 273.631);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.485 0.037 272.863);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.604 0.233 28.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.485 0.037 272.863);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}