Loggia for shadcn/ui

Loggia is a shadcn/ui theme built around a light violet primary color (#e5d8f3) with muted light violet accents (#ccbeda). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#e5d8f3) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050208black
Foreground
#050109black
#f7f5f9whitesmoke
Card
#faf7fdghostwhite
#08030cblack
Card foreground
#020104black
#faf9fbghostwhite
Popover
#fcfbfewhite
#050208black
Popover foreground
#050109black
#f7f5f9whitesmoke
Primary
#e5d8f3lavender
#e5d8f3lavender
Primary foreground
#4b2475darkslateblue
#4b2475darkslateblue
Secondary
#ded8e3gainsboro
#29282adarkslategray
Secondary foreground
#443951darkslategray
#c2c0c4silver
Muted
#e0dee3gainsboro
#1f1c21black
Muted foreground
#514e55darkslategray
#adaab1darkgray
Accent
#ccbedathistle
#38323edarkslategray
Accent foreground
#332541darkslategray
#d1cdd6lightgrey
Destructive
#8e1106darkred
#dc1b09red
Destructive foreground
#fdcdc9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5d8f3lavender
#e5d8f3lavender

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.56:1AAA
Primary button8.54:1AAA
Secondary button7.72:1AAA
Muted text6.13:1AA
Accent8.06:1AAA
Destructive6.60:1AA
Dark mode
Text on background19.00:1AAA
Text on card19.42:1AAA
Primary button8.54:1AAA
Secondary button8.16:1AAA
Muted text7.33:1AAA
Accent7.88:1AAA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 307.734);
  --foreground: oklch(0.097 0.03 309.926);
  --muted: oklch(0.904 0.006 307.709);
  --muted-foreground: oklch(0.43 0.011 307.482);
  --popover: oklch(0.99 0.005 307.734);
  --popover-foreground: oklch(0.097 0.03 309.926);
  --card: oklch(0.979 0.009 307.677);
  --card-foreground: oklch(0.077 0.024 309.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.901 0.039 307.285);
  --primary-foreground: oklch(0.359 0.133 302.293);
  --secondary: oklch(0.891 0.016 307.575);
  --secondary-foreground: oklch(0.367 0.042 306.441);
  --accent: oklch(0.822 0.041 307.213);
  --accent-foreground: oklch(0.294 0.052 305.666);
  --destructive: oklch(0.414 0.159 30.188);
  --destructive-foreground: oklch(0.889 0.054 24.278);
  --ring: oklch(0.901 0.039 307.285);
  --chart-1: oklch(0.901 0.039 307.285);
  --chart-2: oklch(0.891 0.016 307.575);
  --chart-3: oklch(0.822 0.041 307.213);
  --chart-4: oklch(0.916 0.012 307.63);
  --chart-5: oklch(0.9 0.041 307.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.022 309.268);
  --foreground: oklch(0.974 0.006 307.721);
  --muted: oklch(0.233 0.009 307.355);
  --muted-foreground: oklch(0.743 0.01 307.634);
  --popover: oklch(0.102 0.022 309.268);
  --popover-foreground: oklch(0.974 0.006 307.721);
  --card: oklch(0.117 0.025 309.031);
  --card-foreground: oklch(0.983 0.004 307.744);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.901 0.039 307.285);
  --primary-foreground: oklch(0.359 0.133 302.293);
  --secondary: oklch(0.277 0.005 307.589);
  --secondary-foreground: oklch(0.81 0.005 307.711);
  --accent: oklch(0.329 0.021 307.053);
  --accent-foreground: oklch(0.853 0.013 307.605);
  --destructive: oklch(0.57 0.223 30.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.039 307.285);
  --chart-1: oklch(0.901 0.039 307.285);
  --chart-2: oklch(0.277 0.005 307.589);
  --chart-3: oklch(0.329 0.021 307.053);
  --chart-4: oklch(0.308 0.005 307.581);
  --chart-5: oklch(0.9 0.041 307.255);
}