Awkward for shadcn/ui

Awkward is a shadcn/ui theme built around a muted green primary color (#7c7e67) with muted green accents (#707e67). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted green primary (#7c7e67) on a green-tinted background (#0a0b05).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0a0b05black
Foreground
#040501black
#f9faf5whitesmoke
Card
#fbfbf8snow
#0d0e06black
Card foreground
#000000black
#fbfcf8snow
Popover
#fbfbf8snow
#0d0e06black
Popover foreground
#000000black
#fbfcf8snow
Primary
#7c7e67gray
#7c7e67gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7e7567dimgray
#7e7567dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ece7dfantiquewhite
#201b13black
Muted foreground
#53504bdarkslategray
#b4b1acdarkgray
Accent
#707e67dimgray
#707e67dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a13702saddlebrown
#fb6013orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c7e67gray
#7c7e67gray

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.31:1AAA
Primary button4.16:1AA Large
Secondary button4.51:1AA
Muted text6.52:1AA
Accent4.30:1AA Large
Destructive6.85:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.79:1AAA
Primary button4.16:1AA Large
Secondary button4.51:1AA
Muted text7.99:1AAA
Accent4.30:1AA Large
Destructive6.81: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.002 111.818);
  --foreground: oklch(0.107 0.02 113.35);
  --muted: oklch(0.93 0.013 79.906);
  --muted-foreground: oklch(0.432 0.009 79.885);
  --popover: oklch(0.988 0.004 111.856);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 111.856);
  --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.585 0.034 112.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.568 0.024 79.784);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.038 133.462);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.485 0.15 40.378);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.585 0.034 112.856);
  --chart-1: oklch(0.585 0.034 112.856);
  --chart-2: oklch(0.568 0.024 79.784);
  --chart-3: oklch(0.575 0.038 133.462);
  --chart-4: oklch(0.595 0.025 79.782);
  --chart-5: oklch(0.594 0.044 113.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.015 112.767);
  --foreground: oklch(0.983 0.006 111.903);
  --muted: oklch(0.226 0.018 79.447);
  --muted-foreground: oklch(0.761 0.008 79.915);
  --popover: oklch(0.161 0.017 113.424);
  --popover-foreground: oklch(0.988 0.004 111.861);
  --card: oklch(0.161 0.017 113.424);
  --card-foreground: oklch(0.988 0.004 111.861);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.585 0.034 112.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.568 0.024 79.784);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.038 133.462);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.684 0.204 41.106);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.585 0.034 112.856);
  --chart-1: oklch(0.585 0.034 112.856);
  --chart-2: oklch(0.568 0.024 79.784);
  --chart-3: oklch(0.575 0.038 133.462);
  --chart-4: oklch(0.595 0.025 79.782);
  --chart-5: oklch(0.594 0.044 113.14);
}