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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 8.54:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.54:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.98:1 | AA |
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);
}