Awful for shadcn/ui

Awful is a shadcn/ui theme built around a neutral gray primary color (#c8cac4) with muted light green accents (#d7dccb). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c8cac4) on a neutral background (#060704).

Color palette

TokenLightDark
Background
#ffffffwhite
#060704black
Foreground
#060802black
#ffffffwhite
Card
#fcfcfcsnow
#090a05black
Card foreground
#030401black
#ffffffwhite
Popover
#fcfcfcsnow
#090a05black
Popover foreground
#030401black
#ffffffwhite
Primary
#c8cac4silver
#c8cac4silver
Primary foreground
#2f302cdarkslategray
#2f302cdarkslategray
Secondary
#e4e6e0gainsboro
#1a1b18black
Secondary foreground
#4d5341darkolivegreen
#b4b6afdarkgray
Muted
#e6ecdabeige
#202513black
Muted foreground
#555b49darkolivegreen
#b1b6a4darkgray
Accent
#d7dccblightgrey
#303229darkslategray
Accent foreground
#3f4630darkslategray
#c9cdc1silver
Destructive
#cf190cfirebrick
#f23426orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8cac4silver
#c8cac4silver

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.11:1AAA
Primary button8.02:1AAA
Secondary button6.36:1AA
Muted text5.82:1AA
Accent7.03:1AAA
Destructive5.51:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.86:1AAA
Primary button8.02:1AAA
Secondary button8.47:1AAA
Muted text7.58:1AAA
Accent8.00:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.019 119.904);
  --muted: oklch(0.933 0.024 120.468);
  --muted-foreground: oklch(0.459 0.029 121.115);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.102 0.015 119.904);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.015 119.904);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.008 120.197);
  --primary-foreground: oklch(0.307 0.008 120.493);
  --secondary: oklch(0.922 0.009 120.207);
  --secondary-foreground: oklch(0.431 0.029 121.191);
  --accent: oklch(0.886 0.023 120.473);
  --accent-foreground: oklch(0.381 0.037 121.739);
  --destructive: oklch(0.545 0.213 29.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.008 120.197);
  --chart-1: oklch(0.835 0.008 120.197);
  --chart-2: oklch(0.922 0.009 120.207);
  --chart-3: oklch(0.886 0.023 120.473);
  --chart-4: oklch(0.944 0.007 120.157);
  --chart-5: oklch(0.839 0.013 120.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 119.959);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.032 122.272);
  --muted-foreground: oklch(0.768 0.026 120.604);
  --popover: oklch(0.141 0.012 119.959);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.012 119.959);
  --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.835 0.008 120.197);
  --primary-foreground: oklch(0.307 0.008 120.493);
  --secondary: oklch(0.219 0.004 120.348);
  --secondary-foreground: oklch(0.772 0.009 120.23);
  --accent: oklch(0.313 0.016 120.926);
  --accent-foreground: oklch(0.841 0.016 120.354);
  --destructive: oklch(0.626 0.227 29.342);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.008 120.197);
  --chart-1: oklch(0.835 0.008 120.197);
  --chart-2: oklch(0.219 0.004 120.348);
  --chart-3: oklch(0.313 0.016 120.926);
  --chart-4: oklch(0.252 0.005 120.375);
  --chart-5: oklch(0.839 0.013 120.292);
}