Alarmed for shadcn/ui

Alarmed is a shadcn/ui theme built around a vivid light purple primary color (#f693e7) with vivid light cyan accents (#93e7f6). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light purple primary (#f693e7) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#170314black
#f9f6f8whitesmoke
Card
#fcf8fbsnow
#070406black
Card foreground
#120210black
#fbf9fbsnow
Popover
#fcf8fbsnow
#070406black
Popover foreground
#120210black
#fbf9fbsnow
Primary
#f693e7violet
#f693e7violet
Primary foreground
#500745indigo
#500745indigo
Secondary
#e7f693khaki
#e7f693khaki
Secondary foreground
#455007darkolivegreen
#455007darkolivegreen
Muted
#e4e5dcgainsboro
#22231ablack
Muted foreground
#4f5049darkslategray
#b5b6afdarkgray
Accent
#93e7f6lightskyblue
#93e7f6lightskyblue
Accent foreground
#074550darkslategray
#074550darkslategray
Destructive
#ae4213sienna
#ea723etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f693e7violet
#f693e7violet

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.12:1AAA
Primary button7.02:1AAA
Secondary button7.46:1AAA
Muted text6.42:1AA
Accent7.58:1AAA
Destructive5.84:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.52:1AAA
Primary button7.02:1AAA
Secondary button7.46:1AAA
Muted text7.73:1AAA
Accent7.58:1AAA
Destructive6.94:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 330.291);
  --foreground: oklch(0.149 0.05 333.478);
  --muted: oklch(0.919 0.013 113.574);
  --muted-foreground: oklch(0.427 0.01 113.741);
  --popover: oklch(0.983 0.007 330.337);
  --popover-foreground: oklch(0.135 0.044 332.992);
  --card: oklch(0.983 0.007 330.337);
  --card-foreground: oklch(0.135 0.044 332.992);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.793 0.157 332.598);
  --primary-foreground: oklch(0.3 0.123 335.613);
  --secondary: oklch(0.94 0.124 115.809);
  --secondary-foreground: oklch(0.407 0.091 118.604);
  --accent: oklch(0.879 0.084 209.876);
  --accent-foreground: oklch(0.359 0.06 213.354);
  --destructive: oklch(0.522 0.152 40.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.157 332.598);
  --chart-1: oklch(0.793 0.157 332.598);
  --chart-2: oklch(0.94 0.124 115.809);
  --chart-3: oklch(0.879 0.084 209.876);
  --chart-4: oklch(0.947 0.109 115.473);
  --chart-5: oklch(0.792 0.162 332.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.01 330.845);
  --foreground: oklch(0.976 0.005 330.312);
  --muted: oklch(0.253 0.018 114.615);
  --muted-foreground: oklch(0.772 0.009 113.514);
  --popover: oklch(0.112 0.013 330.845);
  --popover-foreground: oklch(0.984 0.003 330.29);
  --card: oklch(0.112 0.013 330.845);
  --card-foreground: oklch(0.984 0.003 330.29);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.793 0.157 332.598);
  --primary-foreground: oklch(0.3 0.123 335.613);
  --secondary: oklch(0.94 0.124 115.809);
  --secondary-foreground: oklch(0.407 0.091 118.604);
  --accent: oklch(0.879 0.084 209.876);
  --accent-foreground: oklch(0.359 0.06 213.354);
  --destructive: oklch(0.684 0.162 42.401);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.793 0.157 332.598);
  --chart-1: oklch(0.793 0.157 332.598);
  --chart-2: oklch(0.94 0.124 115.809);
  --chart-3: oklch(0.879 0.084 209.876);
  --chart-4: oklch(0.947 0.109 115.473);
  --chart-5: oklch(0.792 0.162 332.675);
}