Arm for shadcn/ui

Arm is a shadcn/ui theme built around a near-black primary color (#080e02) with near-black accents (#0e0208). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#080e02) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#050803black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#050803black
Popover foreground
#000000black
#ffffffwhite
Primary
#080e02black
#080e02black
Primary foreground
#79c417yellowgreen
#79c417yellowgreen
Secondary
#02080eblack
#02080eblack
Secondary foreground
#56abebcornflowerblue
#56abebcornflowerblue
Muted
#dde7eelavender
#111b22black
Muted foreground
#5c646adimgray
#959ca3darkgray
Accent
#0e0208black
#0e0208black
Accent foreground
#eb56abhotpink
#eb56abhotpink
Destructive
#c9230dfirebrick
#e1270eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080e02black
#080e02black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.06:1AAA
Secondary button8.05:1AAA
Muted text4.78:1AA
Accent6.27:1AA
Destructive5.61:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.17:1AAA
Primary button9.06:1AAA
Secondary button8.05:1AAA
Muted text6.29:1AA
Accent6.27:1AA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.922 0.015 240.511);
  --muted-foreground: oklch(0.5 0.014 240.667);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.152 0.031 125.221);
  --primary-foreground: oklch(0.743 0.201 132.097);
  --secondary: oklch(0.13 0.02 231.764);
  --secondary-foreground: oklch(0.714 0.125 243.989);
  --accent: oklch(0.118 0.036 342.629);
  --accent-foreground: oklch(0.675 0.202 348.825);
  --destructive: oklch(0.539 0.203 30.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.031 125.221);
  --chart-1: oklch(0.152 0.031 125.221);
  --chart-2: oklch(0.13 0.02 231.764);
  --chart-3: oklch(0.118 0.036 342.629);
  --chart-4: oklch(0.17 0.031 240.747);
  --chart-5: oklch(0.152 0.032 125.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.013 124.977);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.021 241.872);
  --muted-foreground: oklch(0.69 0.013 240.538);
  --popover: oklch(0.126 0.017 124.977);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.017 124.977);
  --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.152 0.031 125.221);
  --primary-foreground: oklch(0.743 0.201 132.097);
  --secondary: oklch(0.13 0.02 231.764);
  --secondary-foreground: oklch(0.714 0.125 243.989);
  --accent: oklch(0.118 0.036 342.629);
  --accent-foreground: oklch(0.675 0.202 348.825);
  --destructive: oklch(0.586 0.221 30.889);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.031 125.221);
  --chart-1: oklch(0.152 0.031 125.221);
  --chart-2: oklch(0.13 0.02 231.764);
  --chart-3: oklch(0.118 0.036 342.629);
  --chart-4: oklch(0.17 0.031 240.747);
  --chart-5: oklch(0.152 0.032 125.236);
}