Aware for shadcn/ui

Aware is a shadcn/ui theme built around a muted light green primary color (#c8dacc) with muted light teal accents (#c8dad5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#c8dacc) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b05black
Foreground
#010903black
#f9fbf9mintcream
Card
#fcfcfcsnow
#050f07black
Card foreground
#010501black
#fcfdfcwhite
Popover
#ffffffwhite
#040b05black
Popover foreground
#010903black
#f9fbf9mintcream
Primary
#c8dacclightgrey
#c8dacclightgrey
Primary foreground
#2d4332darkslategray
#2d4332darkslategray
Secondary
#cedac8lightgrey
#cedac8lightgrey
Secondary foreground
#34432ddarkslategray
#34432ddarkslategray
Muted
#ecf1ealinen
#10150eblack
Muted foreground
#4c5648darkslategray
#adb7a9darkgray
Accent
#c8dad5lightgrey
#c8dad5lightgrey
Accent foreground
#2d433cdarkslategray
#2d433cdarkslategray
Destructive
#c61b15firebrick
#e82821crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8dacclightgrey
#c8dacclightgrey

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.07:1AAA
Primary button7.31:1AAA
Secondary button7.27:1AAA
Muted text6.69:1AA
Accent7.29:1AAA
Destructive5.86:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.09:1AAA
Primary button7.31:1AAA
Secondary button7.27:1AAA
Muted text8.88:1AAA
Accent7.29:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.028 150.799);
  --muted: oklch(0.952 0.011 136.063);
  --muted-foreground: oklch(0.44 0.026 136.248);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.028 150.799);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.022 150.799);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.871 0.027 151.538);
  --primary-foreground: oklch(0.358 0.04 150.185);
  --secondary: oklch(0.874 0.027 136.136);
  --secondary-foreground: oklch(0.362 0.041 136.487);
  --accent: oklch(0.873 0.02 175.976);
  --accent-foreground: oklch(0.362 0.029 174.046);
  --destructive: oklch(0.53 0.204 28.85);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.027 151.538);
  --chart-1: oklch(0.871 0.027 151.538);
  --chart-2: oklch(0.874 0.027 136.136);
  --chart-3: oklch(0.873 0.02 175.976);
  --chart-4: oklch(0.895 0.022 136.114);
  --chart-5: oklch(0.872 0.031 151.464);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.02 151.233);
  --foreground: oklch(0.986 0.004 151.946);
  --muted: oklch(0.19 0.016 136.358);
  --muted-foreground: oklch(0.768 0.023 136.131);
  --popover: oklch(0.139 0.02 151.233);
  --popover-foreground: oklch(0.986 0.004 151.946);
  --card: oklch(0.155 0.023 150.69);
  --card-foreground: oklch(0.993 0.002 151.976);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.027 151.538);
  --primary-foreground: oklch(0.358 0.04 150.185);
  --secondary: oklch(0.874 0.027 136.136);
  --secondary-foreground: oklch(0.362 0.041 136.487);
  --accent: oklch(0.873 0.02 175.976);
  --accent-foreground: oklch(0.362 0.029 174.046);
  --destructive: oklch(0.599 0.225 28.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.027 151.538);
  --chart-1: oklch(0.871 0.027 151.538);
  --chart-2: oklch(0.874 0.027 136.136);
  --chart-3: oklch(0.873 0.02 175.976);
  --chart-4: oklch(0.895 0.022 136.114);
  --chart-5: oklch(0.872 0.031 151.464);
}