Awkward for shadcn/ui

Awkward is a shadcn/ui theme built around a vivid green primary color (#0e9a18) with vivid red accents (#9a180e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#0e9a18) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#010401black
#ffffffwhite
Card
#ffffffwhite
#010401black
Card foreground
#010401black
#ffffffwhite
Popover
#ffffffwhite
#010401black
Popover foreground
#010401black
#ffffffwhite
Primary
#0e9a18forestgreen
#0e9a18forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#180e9adarkblue
#180e9adarkblue
Secondary foreground
#e0defclavender
#e0defclavender
Muted
#dad8e8gainsboro
#181727black
Muted foreground
#55545fdimgray
#a1a0abdarkgray
Accent
#9a180edarkred
#9a180edarkred
Accent foreground
#fce0demistyrose
#fce0demistyrose
Destructive
#a20101darkred
#f40101red
Destructive foreground
#ffd6d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e9a18forestgreen
#0e9a18forestgreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button3.71:1AA Large
Secondary button10.21:1AAA
Muted text5.32:1AA
Accent6.72:1AA
Destructive6.21:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button3.71:1AA Large
Secondary button10.21:1AAA
Muted text6.85:1AA
Accent6.72:1AA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.022 145.846);
  --muted: oklch(0.889 0.022 289.017);
  --muted-foreground: oklch(0.45 0.017 288.744);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.022 145.846);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.022 145.846);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.194 143.093);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.328 0.203 269.418);
  --secondary-foreground: oklch(0.912 0.04 288.635);
  --accent: oklch(0.442 0.166 29.58);
  --accent-foreground: oklch(0.93 0.031 22.611);
  --destructive: oklch(0.448 0.184 29.178);
  --destructive-foreground: oklch(0.911 0.045 18.014);
  --ring: oklch(0.596 0.194 143.093);
  --chart-1: oklch(0.596 0.194 143.093);
  --chart-2: oklch(0.328 0.203 269.418);
  --chart-3: oklch(0.442 0.166 29.58);
  --chart-4: oklch(0.348 0.217 269.158);
  --chart-5: oklch(0.603 0.198 143.021);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.019 146.103);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.031 286.482);
  --muted-foreground: oklch(0.711 0.015 289.069);
  --popover: oklch(0.097 0.019 146.103);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.019 146.103);
  --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.596 0.194 143.093);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.328 0.203 269.418);
  --secondary-foreground: oklch(0.912 0.04 288.635);
  --accent: oklch(0.442 0.166 29.58);
  --accent-foreground: oklch(0.93 0.031 22.611);
  --destructive: oklch(0.607 0.249 29.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.194 143.093);
  --chart-1: oklch(0.596 0.194 143.093);
  --chart-2: oklch(0.328 0.203 269.418);
  --chart-3: oklch(0.442 0.166 29.58);
  --chart-4: oklch(0.348 0.217 269.158);
  --chart-5: oklch(0.603 0.198 143.021);
}