Awful for shadcn/ui

Awful is a shadcn/ui theme built around a teal primary color (#2e6b5d) with cyan accents (#2e5b6b). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#2e6b5d) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#030c0ablack
Foreground
#030c0ablack
#f6f9f8whitesmoke
Card
#f7fdfbmintcream
#030c0ablack
Card foreground
#030c0ablack
#f6f9f8whitesmoke
Popover
#f7fdfbmintcream
#030c0ablack
Popover foreground
#030c0ablack
#f6f9f8whitesmoke
Primary
#2e6b5ddarkslategray
#2e6b5ddarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e6b3edarkslategray
#2e6b3edarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaf5edhoneydew
#0a150dblack
Muted foreground
#3e4c42darkslategray
#b3c1b7silver
Accent
#2e5b6bdarkslategray
#2e5b6bdarkslategray
Accent foreground
#dbeaf0lavender
#dbeaf0lavender
Destructive
#d62505firebrick
#f92f0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e6b5ddarkslategray
#2e6b5ddarkslategray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.21:1AA
Secondary button6.37:1AA
Muted text8.11:1AAA
Accent6.04:1AA
Destructive5.10:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button6.21:1AA
Secondary button6.37:1AA
Muted text9.99:1AAA
Accent6.04:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 180.788);
  --foreground: oklch(0.144 0.018 180.222);
  --muted: oklch(0.96 0.015 154.243);
  --muted-foreground: oklch(0.4 0.024 153.402);
  --popover: oklch(0.989 0.006 180.788);
  --popover-foreground: oklch(0.144 0.018 180.222);
  --card: oklch(0.989 0.006 180.788);
  --card-foreground: oklch(0.144 0.018 180.222);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.483 0.068 175.733);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.475 0.096 150.026);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.445 0.056 224.031);
  --accent-foreground: oklch(0.928 0.018 221.484);
  --destructive: oklch(0.563 0.213 31.557);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.068 175.733);
  --chart-1: oklch(0.483 0.068 175.733);
  --chart-2: oklch(0.475 0.096 150.026);
  --chart-3: oklch(0.445 0.056 224.031);
  --chart-4: oklch(0.508 0.104 149.966);
  --chart-5: oklch(0.489 0.072 175.36);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 180.408);
  --foreground: oklch(0.979 0.003 180.883);
  --muted: oklch(0.181 0.023 152.048);
  --muted-foreground: oklch(0.797 0.021 154.063);
  --popover: oklch(0.143 0.016 180.408);
  --popover-foreground: oklch(0.979 0.003 180.883);
  --card: oklch(0.143 0.016 180.408);
  --card-foreground: oklch(0.979 0.003 180.883);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.483 0.068 175.733);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.475 0.096 150.026);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.445 0.056 224.031);
  --accent-foreground: oklch(0.928 0.018 221.484);
  --destructive: oklch(0.633 0.237 31.637);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.068 175.733);
  --chart-1: oklch(0.483 0.068 175.733);
  --chart-2: oklch(0.475 0.096 150.026);
  --chart-3: oklch(0.445 0.056 224.031);
  --chart-4: oklch(0.508 0.104 149.966);
  --chart-5: oklch(0.489 0.072 175.36);
}