Unaware for shadcn/ui

Unaware is a shadcn/ui theme built around a near-black primary color (#0d0403) with near-black accents (#030b0d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#0d0403) on a red-tinted background (#0f0705).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0705black
Foreground
#0c0504black
#faf5f5whitesmoke
Card
#fdf8f7snow
#130807black
Card foreground
#080302black
#fcf9f8snow
Popover
#fdf8f7snow
#130807black
Popover foreground
#080302black
#fcf9f8snow
Primary
#0d0403black
#0d0403black
Primary foreground
#dd7464indianred
#dd7464indianred
Secondary
#030b0dblack
#030b0dblack
Secondary foreground
#27a1b4lightseagreen
#27a1b4lightseagreen
Muted
#e7e9e9lavender
#161818black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#030b0dblack
#030b0dblack
Accent foreground
#27a1b4lightseagreen
#27a1b4lightseagreen
Destructive
#b34614sienna
#e65a1achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0403black
#0d0403black

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.43:1AAA
Primary button6.52:1AA
Secondary button6.46:1AA
Muted text7.62:1AAA
Accent6.46:1AA
Destructive5.51:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.80:1AAA
Primary button6.52:1AA
Secondary button6.46:1AA
Muted text8.99:1AAA
Accent6.46:1AA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 27.947);
  --foreground: oklch(0.124 0.017 33.171);
  --muted: oklch(0.932 0.003 207.921);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.982 0.006 27.962);
  --popover-foreground: oklch(0.109 0.014 33.285);
  --card: oklch(0.982 0.006 27.962);
  --card-foreground: oklch(0.109 0.014 33.285);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.123 0.02 34.598);
  --primary-foreground: oklch(0.676 0.134 30.063);
  --secondary: oklch(0.141 0.017 205.4);
  --secondary-foreground: oklch(0.654 0.104 210.516);
  --accent: oklch(0.141 0.017 205.4);
  --accent-foreground: oklch(0.654 0.104 210.516);
  --destructive: oklch(0.536 0.153 41.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.123 0.02 34.598);
  --chart-1: oklch(0.123 0.02 34.598);
  --chart-2: oklch(0.141 0.017 205.4);
  --chart-3: oklch(0.141 0.017 205.4);
  --chart-4: oklch(0.189 0.024 208.178);
  --chart-5: oklch(0.122 0.021 35.076);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.017 31.825);
  --foreground: oklch(0.975 0.005 27.96);
  --muted: oklch(0.206 0.004 207.866);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.151 0.02 30.908);
  --popover-foreground: oklch(0.983 0.003 27.951);
  --card: oklch(0.151 0.02 30.908);
  --card-foreground: oklch(0.983 0.003 27.951);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.123 0.02 34.598);
  --primary-foreground: oklch(0.676 0.134 30.063);
  --secondary: oklch(0.141 0.017 205.4);
  --secondary-foreground: oklch(0.654 0.104 210.516);
  --accent: oklch(0.141 0.017 205.4);
  --accent-foreground: oklch(0.654 0.104 210.516);
  --destructive: oklch(0.642 0.187 41.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.123 0.02 34.598);
  --chart-1: oklch(0.123 0.02 34.598);
  --chart-2: oklch(0.141 0.017 205.4);
  --chart-3: oklch(0.141 0.017 205.4);
  --chart-4: oklch(0.189 0.024 208.178);
  --chart-5: oklch(0.122 0.021 35.076);
}