Flawless for shadcn/ui

Flawless is a shadcn/ui theme built around a muted yellow primary color (#a7976c) with muted green accents (#99a76c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#a7976c) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#080602black
#faf9f5whitesmoke
Card
#fcfcfcsnow
#080602black
Card foreground
#040301black
#fcfbf8snow
Popover
#ffffffwhite
#040301black
Popover foreground
#080602black
#faf9f5whitesmoke
Primary
#a7976cdarkkhaki
#a7976cdarkkhaki
Primary foreground
#000000black
#000000black
Secondary
#a77a6cgray
#a77a6cgray
Secondary foreground
#000000black
#000000black
Muted
#eeedeclinen
#131111black
Muted foreground
#4e403cdarkslategray
#c3b5b1silver
Accent
#99a76cdarkkhaki
#99a76cdarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#7f2205maroon
#f0400aorangered
Destructive foreground
#fccabapeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7976cdarkkhaki
#a7976cdarkkhaki

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.17:1AAA
Primary button7.31:1AAA
Secondary button5.64:1AA
Muted text8.44:1AAA
Accent8.10:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.52:1AAA
Primary button7.31:1AAA
Secondary button5.64:1AA
Muted text9.45:1AAA
Accent8.10:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.014 94.918);
  --muted: oklch(0.946 0.002 37.732);
  --muted-foreground: oklch(0.385 0.02 37.596);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.014 94.918);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.011 94.918);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.062 90.388);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.621 0.06 37.613);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.703 0.082 119.238);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.399 0.133 35.647);
  --destructive-foreground: oklch(0.878 0.061 37.592);
  --ring: oklch(0.681 0.062 90.388);
  --chart-1: oklch(0.681 0.062 90.388);
  --chart-2: oklch(0.621 0.06 37.613);
  --chart-3: oklch(0.703 0.082 119.238);
  --chart-4: oklch(0.646 0.056 37.602);
  --chart-5: oklch(0.687 0.068 90.34);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 95.236);
  --foreground: oklch(0.981 0.005 90.16);
  --muted: oklch(0.181 0.003 37.671);
  --muted-foreground: oklch(0.785 0.017 37.653);
  --popover: oklch(0.099 0.012 95.236);
  --popover-foreground: oklch(0.981 0.005 90.16);
  --card: oklch(0.125 0.015 95.236);
  --card-foreground: oklch(0.987 0.003 90.147);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.681 0.062 90.388);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.621 0.06 37.613);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.703 0.082 119.238);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.63 0.219 34.645);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.062 90.388);
  --chart-1: oklch(0.681 0.062 90.388);
  --chart-2: oklch(0.621 0.06 37.613);
  --chart-3: oklch(0.703 0.082 119.238);
  --chart-4: oklch(0.646 0.056 37.602);
  --chart-5: oklch(0.687 0.068 90.34);
}