Alias for shadcn/ui

Alias is a shadcn/ui theme built around a neutral gray primary color (#696969) with muted red accents (#bfb0b0). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the neutral gray primary (#696969) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdfbfbsnow
#040202black
Foreground
#0b0404black
#f8f7f7whitesmoke
Card
#fcf8f8snow
#070303black
Card foreground
#080303black
#faf9f9snow
Popover
#fcf8f8snow
#070303black
Popover foreground
#080303black
#faf9f9snow
Primary
#696969dimgrey
#696969dimgrey
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0cdcdlightgrey
#262626darkslategray
Secondary foreground
#373434darkslategray
#bfbfbfsilver
Muted
#f2e8e8linen
#170d0dblack
Muted foreground
#6f5d5ddimgray
#a29090rosybrown
Accent
#bfb0b0silver
#413939darkslategray
Accent foreground
#221c1cblack
#d9d3d3lightgrey
Destructive
#99340fsaddlebrown
#e95620chocolate
Destructive foreground
#fce6dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#696969dimgrey
#696969dimgrey

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.42:1AAA
Primary button5.52:1AA
Secondary button7.81:1AAA
Muted text5.14:1AA
Accent8.06:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.51:1AAA
Primary button5.52:1AA
Secondary button8.20:1AAA
Muted text6.30:1AA
Accent7.59:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.193);
  --foreground: oklch(0.121 0.018 20.056);
  --muted: oklch(0.939 0.011 17.35);
  --muted-foreground: oklch(0.496 0.024 17.989);
  --popover: oklch(0.982 0.004 17.229);
  --popover-foreground: oklch(0.105 0.016 20.039);
  --card: oklch(0.982 0.004 17.229);
  --card-foreground: oklch(0.105 0.016 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.519 0 168.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.851 0.003 17.22);
  --secondary-foreground: oklch(0.328 0.005 17.388);
  --accent: oklch(0.771 0.016 17.514);
  --accent-foreground: oklch(0.232 0.01 17.868);
  --destructive: oklch(0.468 0.143 38.029);
  --destructive-foreground: oklch(0.941 0.026 41.116);
  --ring: oklch(0.519 0 168.69);
  --chart-1: oklch(0.519 0 168.69);
  --chart-2: oklch(0.851 0.003 17.22);
  --chart-3: oklch(0.771 0.016 17.514);
  --chart-4: oklch(0.875 0.003 17.209);
  --chart-5: oklch(0.514 0.008 17.415);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 19.117);
  --foreground: oklch(0.976 0.002 17.186);
  --muted: oklch(0.172 0.017 18.997);
  --muted-foreground: oklch(0.669 0.022 17.715);
  --popover: oklch(0.108 0.012 19.117);
  --popover-foreground: oklch(0.984 0.001 17.176);
  --card: oklch(0.108 0.012 19.117);
  --card-foreground: oklch(0.984 0.001 17.176);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.519 0 168.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.27 0 180);
  --secondary-foreground: oklch(0.805 0 169.695);
  --accent: oklch(0.353 0.012 17.737);
  --accent-foreground: oklch(0.872 0.006 17.277);
  --destructive: oklch(0.643 0.193 38.261);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0 168.69);
  --chart-1: oklch(0.519 0 168.69);
  --chart-2: oklch(0.27 0 180);
  --chart-3: oklch(0.353 0.012 17.737);
  --chart-4: oklch(0.301 0 189.462);
  --chart-5: oklch(0.514 0.008 17.415);
}