Alarmed for shadcn/ui

Alarmed is a shadcn/ui theme built around a neutral gray primary color (#c4c1bf) with muted light orange accents (#e5e0dc). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#c4c1bf) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fefcfbsnow
#040201black
Foreground
#150c04black
#fdfcfcsnow
Card
#fefcfbsnow
#040201black
Card foreground
#150c04black
#fdfcfcsnow
Popover
#fefcfbsnow
#040201black
Popover foreground
#150c04black
#fdfcfcsnow
Primary
#c4c1bfsilver
#c4c1bfsilver
Primary foreground
#2a2927darkslategray
#2a2927darkslategray
Secondary
#e5e0dcgainsboro
#26201cblack
Secondary foreground
#52463ddarkolivegreen
#c5b9afsilver
Muted
#e8ddd4gainsboro
#2b2017black
Muted foreground
#6f5f52dimgray
#ad9c90rosybrown
Accent
#e5e0dcgainsboro
#26201cblack
Accent foreground
#52463ddarkolivegreen
#c5b9afsilver
Destructive
#631509maroon
#ee563ftomato
Destructive foreground
#f7b1a6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c4c1bfsilver
#c4c1bfsilver

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button8.15:1AAA
Secondary button6.95:1AA
Muted text4.56:1AA
Accent6.95:1AA
Destructive7.22:1AAA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.15:1AAA
Secondary button8.33:1AAA
Muted text6.00:1AA
Accent8.33:1AAA
Destructive6.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 60.247);
  --foreground: oklch(0.164 0.024 62.575);
  --muted: oklch(0.903 0.017 60.024);
  --muted-foreground: oklch(0.498 0.029 59.453);
  --popover: oklch(0.993 0.003 60.247);
  --popover-foreground: oklch(0.164 0.024 62.575);
  --card: oklch(0.993 0.003 60.247);
  --card-foreground: oklch(0.164 0.024 62.575);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.004 60.211);
  --primary-foreground: oklch(0.281 0.004 60.101);
  --secondary: oklch(0.909 0.008 60.165);
  --secondary-foreground: oklch(0.404 0.022 59.491);
  --accent: oklch(0.909 0.008 60.165);
  --accent-foreground: oklch(0.404 0.022 59.491);
  --destructive: oklch(0.329 0.113 31.684);
  --destructive-foreground: oklch(0.823 0.085 28.805);
  --ring: oklch(0.814 0.004 60.211);
  --chart-1: oklch(0.814 0.004 60.211);
  --chart-2: oklch(0.909 0.008 60.165);
  --chart-3: oklch(0.909 0.008 60.165);
  --chart-4: oklch(0.932 0.006 60.197);
  --chart-5: oklch(0.814 0.008 60.157);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.01 68.787);
  --foreground: oklch(0.993 0.001 60.272);
  --muted: oklch(0.254 0.023 58.862);
  --muted-foreground: oklch(0.704 0.027 59.759);
  --popover: oklch(0.093 0.01 68.787);
  --popover-foreground: oklch(0.993 0.001 60.272);
  --card: oklch(0.093 0.01 68.787);
  --card-foreground: oklch(0.993 0.001 60.272);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.814 0.004 60.211);
  --primary-foreground: oklch(0.281 0.004 60.101);
  --secondary: oklch(0.251 0.013 59.578);
  --secondary-foreground: oklch(0.792 0.02 59.944);
  --accent: oklch(0.251 0.013 59.578);
  --accent-foreground: oklch(0.792 0.02 59.944);
  --destructive: oklch(0.654 0.192 31.362);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.814 0.004 60.211);
  --chart-1: oklch(0.814 0.004 60.211);
  --chart-2: oklch(0.251 0.013 59.578);
  --chart-3: oklch(0.251 0.013 59.578);
  --chart-4: oklch(0.283 0.015 59.534);
  --chart-5: oklch(0.814 0.008 60.157);
}