Avenue for shadcn/ui

Avenue is a shadcn/ui theme built around a light purple primary color (#f7edf5) with light pink accents (#f7edf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f7edf5) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#080207black
#fdfcfdwhite
Card
#ffffffwhite
#030203black
Card foreground
#080207black
#fdfcfdwhite
Popover
#ffffffwhite
#030203black
Popover foreground
#080207black
#fdfcfdwhite
Primary
#f7edf5whitesmoke
#f7edf5whitesmoke
Primary foreground
#7d366frebeccapurple
#7d366frebeccapurple
Secondary
#f4edf7whitesmoke
#f4edf7whitesmoke
Secondary foreground
#68367drebeccapurple
#68367drebeccapurple
Muted
#f3f0f5whitesmoke
#0e0a0fblack
Muted foreground
#5b4c61dimgray
#ac9eb3darkgray
Accent
#f7edf0whitesmoke
#f7edf0whitesmoke
Accent foreground
#7d364bbrown
#7d364bbrown
Destructive
#b91d09firebrick
#db230afirebrick
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7edf5whitesmoke
#f7edf5whitesmoke

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button7.00:1AAA
Secondary button7.60:1AAA
Muted text7.00:1AAA
Accent7.34:1AAA
Destructive6.08:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.00:1AAA
Secondary button7.60:1AAA
Muted text7.75:1AAA
Accent7.34:1AAA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.023 332.901);
  --muted: oklch(0.958 0.008 315.993);
  --muted-foreground: oklch(0.44 0.038 315.711);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.108 0.023 332.901);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.108 0.023 332.901);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.957 0.015 332.242);
  --primary-foreground: oklch(0.448 0.123 335.774);
  --secondary: oklch(0.955 0.015 315.963);
  --secondary-foreground: oklch(0.427 0.124 314.688);
  --accent: oklch(0.955 0.012 357.009);
  --accent-foreground: oklch(0.434 0.102 3.418);
  --destructive: oklch(0.505 0.192 30.871);
  --destructive-foreground: oklch(0.98 0.009 26.502);
  --ring: oklch(0.957 0.015 332.242);
  --chart-1: oklch(0.957 0.015 332.242);
  --chart-2: oklch(0.955 0.015 315.963);
  --chart-3: oklch(0.955 0.012 357.009);
  --chart-4: oklch(0.982 0.006 315.999);
  --chart-5: oklch(0.956 0.016 332.26);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 332.584);
  --foreground: oklch(0.992 0.002 332.028);
  --muted: oklch(0.153 0.012 315.733);
  --muted-foreground: oklch(0.718 0.034 315.853);
  --popover: oklch(0.088 0.012 332.584);
  --popover-foreground: oklch(0.992 0.002 332.028);
  --card: oklch(0.088 0.012 332.584);
  --card-foreground: oklch(0.992 0.002 332.028);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.957 0.015 332.242);
  --primary-foreground: oklch(0.448 0.123 335.774);
  --secondary: oklch(0.955 0.015 315.963);
  --secondary-foreground: oklch(0.427 0.124 314.688);
  --accent: oklch(0.955 0.012 357.009);
  --accent-foreground: oklch(0.434 0.102 3.418);
  --destructive: oklch(0.572 0.218 30.808);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.957 0.015 332.242);
  --chart-1: oklch(0.957 0.015 332.242);
  --chart-2: oklch(0.955 0.015 315.963);
  --chart-3: oklch(0.955 0.012 357.009);
  --chart-4: oklch(0.982 0.006 315.999);
  --chart-5: oklch(0.956 0.016 332.26);
}