Awe for shadcn/ui

Awe is a shadcn/ui theme built around a muted violet primary color (#8673ab) with muted green accents (#73ab86). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#8673ab) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040208black
Foreground
#06020dblack
#ffffffwhite
Card
#f9f8fcghostwhite
#06040cblack
Card foreground
#040109black
#ffffffwhite
Popover
#f9f8fcghostwhite
#06040cblack
Popover foreground
#040109black
#ffffffwhite
Primary
#8673ablightslategray
#8673ablightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ab8673rosybrown
#ab8673rosybrown
Secondary foreground
#000000black
#000000black
Muted
#f2ece8linen
#17100dblack
Muted foreground
#756157dimgray
#a8948arosybrown
Accent
#73ab86darkseagreen
#73ab86darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#bd1c14firebrick
#de2117crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8673ablightslategray
#8673ablightslategray

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.57:1AAA
Primary button4.16:1AA Large
Secondary button6.40:1AA
Muted text4.96:1AA
Accent7.88:1AAA
Destructive6.27:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.41:1AAA
Primary button4.16:1AA Large
Secondary button6.40:1AA
Muted text6.50:1AA
Accent7.88:1AAA
Destructive4.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 302.166);
  --foreground: oklch(0.109 0.033 302.71);
  --muted: oklch(0.946 0.008 50.548);
  --muted-foreground: oklch(0.51 0.031 49.945);
  --popover: oklch(0.981 0.006 302.117);
  --popover-foreground: oklch(0.095 0.028 303.174);
  --card: oklch(0.981 0.006 302.117);
  --card-foreground: oklch(0.095 0.028 303.174);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.086 299.861);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.651 0.053 49.7);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.08 155.243);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.513 0.195 29.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.086 299.861);
  --chart-1: oklch(0.595 0.086 299.861);
  --chart-2: oklch(0.651 0.053 49.7);
  --chart-3: oklch(0.691 0.08 155.243);
  --chart-4: oklch(0.675 0.049 49.805);
  --chart-5: oklch(0.589 0.097 299.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.021 302.866);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.013 49.845);
  --muted-foreground: oklch(0.682 0.028 50.154);
  --popover: oklch(0.115 0.024 302.68);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.024 302.68);
  --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.595 0.086 299.861);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.651 0.053 49.7);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.08 155.243);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.576 0.22 29.249);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.086 299.861);
  --chart-1: oklch(0.595 0.086 299.861);
  --chart-2: oklch(0.651 0.053 49.7);
  --chart-3: oklch(0.691 0.08 155.243);
  --chart-4: oklch(0.675 0.049 49.805);
  --chart-5: oklch(0.589 0.097 299.529);
}