Awkward for shadcn/ui

Awkward is a shadcn/ui theme built around a green primary color (#49b64e) with muted light green accents (#c0d8c1). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#49b64e) on a green-tinted background (#050f06).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050f06black
Foreground
#050f06black
#ffffffwhite
Card
#f5faf5whitesmoke
#071307black
Card foreground
#040b04black
#ffffffwhite
Popover
#f5faf5whitesmoke
#071307black
Popover foreground
#040b04black
#ffffffwhite
Primary
#49b64emediumseagreen
#49b64emediumseagreen
Primary foreground
#0f2410black
#0f2410black
Secondary
#d3ded4lightgrey
#131b14black
Secondary foreground
#364937darkslategray
#a3bda5darkgray
Muted
#d2dfd3lightgrey
#202d20darkslategray
Muted foreground
#577558dimgray
#8aa88bdarkseagreen
Accent
#c0d8c1silver
#1d2f1edarkslategray
Accent foreground
#273f28darkslategray
#b1ceb2silver
Destructive
#a8250bfirebrick
#f0350forangered
Destructive foreground
#fdebe7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#49b64emediumseagreen
#49b64emediumseagreen

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.81:1AAA
Primary button6.33:1AA
Secondary button7.02:1AAA
Muted text3.73:1AA Large
Accent7.57:1AAA
Destructive6.21:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.01:1AAA
Primary button6.33:1AA
Secondary button8.71:1AAA
Muted text5.54:1AA
Accent8.33:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 146.988);
  --foreground: oklch(0.155 0.027 145.563);
  --muted: oklch(0.891 0.022 146.809);
  --muted-foreground: oklch(0.531 0.057 145.971);
  --popover: oklch(0.98 0.008 146.962);
  --popover-foreground: oklch(0.139 0.024 145.724);
  --card: oklch(0.98 0.008 146.962);
  --card-foreground: oklch(0.139 0.024 145.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0.175 144.208);
  --primary-foreground: oklch(0.237 0.048 144.891);
  --secondary: oklch(0.89 0.019 146.836);
  --secondary-foreground: oklch(0.384 0.039 146.042);
  --accent: oklch(0.858 0.041 146.581);
  --accent-foreground: oklch(0.341 0.05 145.534);
  --destructive: oklch(0.478 0.17 32.606);
  --destructive-foreground: oklch(0.953 0.021 31.097);
  --ring: oklch(0.691 0.175 144.208);
  --chart-1: oklch(0.691 0.175 144.208);
  --chart-2: oklch(0.89 0.019 146.836);
  --chart-3: oklch(0.858 0.041 146.581);
  --chart-4: oklch(0.912 0.015 146.882);
  --chart-5: oklch(0.699 0.185 144.061);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.027 145.593);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.28 0.029 146.031);
  --muted-foreground: oklch(0.701 0.054 146.294);
  --popover: oklch(0.17 0.031 145.373);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.031 145.373);
  --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.691 0.175 144.208);
  --primary-foreground: oklch(0.237 0.048 144.891);
  --secondary: oklch(0.21 0.017 146.231);
  --secondary-foreground: oklch(0.771 0.044 146.496);
  --accent: oklch(0.284 0.038 145.686);
  --accent-foreground: oklch(0.822 0.05 146.457);
  --destructive: oklch(0.621 0.226 32.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.175 144.208);
  --chart-1: oklch(0.691 0.175 144.208);
  --chart-2: oklch(0.21 0.017 146.231);
  --chart-3: oklch(0.284 0.038 145.686);
  --chart-4: oklch(0.245 0.022 146.148);
  --chart-5: oklch(0.699 0.185 144.061);
}