Availability for shadcn/ui

Availability is a shadcn/ui theme built around a neutral gray primary color (#aab5ac) with neutral gray accents (#aab5b2). The light mode uses a neutral background (#fbfefc). Dark mode keeps the neutral gray primary (#aab5ac) on a neutral background (#020803).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020803black
Foreground
#010402black
#ffffffwhite
Card
#f8fcf8mintcream
#040c05black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf8mintcream
#040c05black
Popover foreground
#000000black
#ffffffwhite
Primary
#aab5acdarkgray
#aab5acdarkgray
Primary foreground
#151916black
#151916black
Secondary
#aeb5aadarkgray
#aeb5aadarkgray
Secondary foreground
#161915black
#161915black
Muted
#eff1eewhitesmoke
#0f110eblack
Muted foreground
#3d4936darkslategray
#bcc9b6silver
Accent
#aab5b2darkgray
#aab5b2darkgray
Accent foreground
#151917black
#151917black
Destructive
#8d2e02saddlebrown
#f14f04orangered
Destructive foreground
#fed6c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aab5acdarkgray
#aab5acdarkgray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.27:1AAA
Primary button8.42:1AAA
Secondary button8.47:1AAA
Muted text8.40:1AAA
Accent8.45:1AAA
Destructive6.20:1AA
Dark mode
Text on background20.22:1AAA
Text on card19.85:1AAA
Primary button8.42:1AAA
Secondary button8.47:1AAA
Muted text11.00:1AAA
Accent8.45:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 150.203);
  --foreground: oklch(0.097 0.016 149.204);
  --muted: oklch(0.956 0.005 134.246);
  --muted-foreground: oklch(0.39 0.035 134.767);
  --popover: oklch(0.987 0.007 150.16);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.007 150.16);
  --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.763 0.018 149.935);
  --primary-foreground: oklch(0.207 0.007 149.781);
  --secondary: oklch(0.766 0.017 134.348);
  --secondary-foreground: oklch(0.208 0.007 134.412);
  --accent: oklch(0.765 0.013 173.053);
  --accent-foreground: oklch(0.208 0.005 172.798);
  --destructive: oklch(0.438 0.137 39.732);
  --destructive-foreground: oklch(0.904 0.052 46.292);
  --ring: oklch(0.763 0.018 149.935);
  --chart-1: oklch(0.763 0.018 149.935);
  --chart-2: oklch(0.766 0.017 134.348);
  --chart-3: oklch(0.765 0.013 173.053);
  --chart-4: oklch(0.789 0.016 134.331);
  --chart-5: oklch(0.766 0.026 149.8);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.02 149.241);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.007 134.45);
  --muted-foreground: oklch(0.82 0.03 134.425);
  --popover: oklch(0.14 0.023 149.181);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.023 149.181);
  --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.763 0.018 149.935);
  --primary-foreground: oklch(0.207 0.007 149.781);
  --secondary: oklch(0.766 0.017 134.348);
  --secondary-foreground: oklch(0.208 0.007 134.412);
  --accent: oklch(0.765 0.013 173.053);
  --accent-foreground: oklch(0.208 0.005 172.798);
  --destructive: oklch(0.647 0.209 38.319);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.018 149.935);
  --chart-1: oklch(0.763 0.018 149.935);
  --chart-2: oklch(0.766 0.017 134.348);
  --chart-3: oklch(0.765 0.013 173.053);
  --chart-4: oklch(0.789 0.016 134.331);
  --chart-5: oklch(0.766 0.026 149.8);
}