Awkward for shadcn/ui

Awkward is a shadcn/ui theme built around a neutral gray primary color (#7c837c) with neutral gray accents (#e2e4e2). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#7c837c) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fbfefbwhite
#020302black
Foreground
#010401black
#ffffffwhite
Card
#fbfefbwhite
#020302black
Card foreground
#010401black
#ffffffwhite
Popover
#fbfefbwhite
#020302black
Popover foreground
#010401black
#ffffffwhite
Primary
#7c837cgray
#7c837cgray
Primary foreground
#000000black
#000000black
Secondary
#e2e4e2gainsboro
#151915black
Secondary foreground
#474e46darkslategray
#aab7a9darkgray
Muted
#eef2eewhitesmoke
#0e110dblack
Muted foreground
#586558dimgray
#9ba79adarkgray
Accent
#e2e4e2gainsboro
#151915black
Accent foreground
#474e46darkslategray
#aab7a9darkgray
Destructive
#6e1307maroon
#f3543ftomato
Destructive foreground
#fab6aelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c837cgray
#7c837cgray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button5.41:1AA
Secondary button6.72:1AA
Muted text5.42:1AA
Accent6.72:1AA
Destructive7.01:1AAA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button5.41:1AA
Secondary button8.50:1AAA
Muted text7.58:1AAA
Accent8.50:1AAA
Destructive6.14:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 144.105);
  --foreground: oklch(0.097 0.018 142.5);
  --muted: oklch(0.956 0.007 144.09);
  --muted-foreground: oklch(0.492 0.026 143.817);
  --popover: oklch(0.994 0.004 144.105);
  --popover-foreground: oklch(0.097 0.018 142.5);
  --card: oklch(0.994 0.004 144.105);
  --card-foreground: oklch(0.097 0.018 142.5);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.603 0.014 143.991);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.917 0.005 144.1);
  --secondary-foreground: oklch(0.414 0.015 143.914);
  --accent: oklch(0.917 0.005 144.1);
  --accent-foreground: oklch(0.414 0.015 143.914);
  --destructive: oklch(0.352 0.127 31.122);
  --destructive-foreground: oklch(0.838 0.08 27.368);
  --ring: oklch(0.603 0.014 143.991);
  --chart-1: oklch(0.603 0.014 143.991);
  --chart-2: oklch(0.917 0.005 144.1);
  --chart-3: oklch(0.917 0.005 144.1);
  --chart-4: oklch(0.94 0.003 144.109);
  --chart-5: oklch(0.607 0.028 143.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.012 143.022);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.01 143.782);
  --muted-foreground: oklch(0.715 0.024 143.935);
  --popover: oklch(0.095 0.012 143.022);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.012 143.022);
  --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.603 0.014 143.991);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.208 0.01 143.843);
  --secondary-foreground: oklch(0.765 0.025 143.937);
  --accent: oklch(0.208 0.01 143.843);
  --accent-foreground: oklch(0.765 0.025 143.937);
  --destructive: oklch(0.659 0.198 30.542);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.603 0.014 143.991);
  --chart-1: oklch(0.603 0.014 143.991);
  --chart-2: oklch(0.208 0.01 143.843);
  --chart-3: oklch(0.208 0.01 143.843);
  --chart-4: oklch(0.242 0.013 143.813);
  --chart-5: oklch(0.607 0.028 143.852);
}