Loggia is a shadcn/ui theme built around a neutral gray primary color (#2d2c2a) with neutral gray accents (#2c2a2d). The light mode uses a neutral background (#fefdfb). Dark mode keeps the neutral gray primary (#2d2c2a) on an orange-tinted background (#0c0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0c0904black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdfbf7snow | #0f0c05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefdfbsnow | #0c0904black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2d2c2adarkslategray | #2d2c2adarkslategray |
| Primary foreground | #c7c5c2silver | #c7c5c2silver |
| Secondary | #2a2d2cdarkslategray | #2a2d2cdarkslategray |
| Secondary foreground | #c2c7c5silver | #c2c7c5silver |
| Muted | #d6e6e0gainsboro | #192924black |
| Muted foreground | #5a726adimgray | #8da59ddarkseagreen |
| Accent | #2c2a2ddarkslategray | #2c2a2ddarkslategray |
| Accent foreground | #c5c2c7silver | #c5c2c7silver |
| Destructive | #a01008darkred | #f32116red |
| Destructive foreground | #fddfddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d2c2adarkslategray | #2d2c2adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 4.01:1 | AA Large |
| Accent | 8.10:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Loggia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 83.057);
--foreground: oklch(0 0 0);
--muted: oklch(0.911 0.019 172.946);
--muted-foreground: oklch(0.531 0.032 171.699);
--popover: oklch(0.994 0.003 83.057);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.006 83.06);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.293 0.004 83.065);
--primary-foreground: oklch(0.824 0.005 83.06);
--secondary: oklch(0.294 0.005 173.033);
--secondary-foreground: oklch(0.825 0.006 173.374);
--accent: oklch(0.287 0.007 314.085);
--accent-foreground: oklch(0.818 0.007 314.17);
--destructive: oklch(0.449 0.176 29.42);
--destructive-foreground: oklch(0.927 0.034 21.381);
--ring: oklch(0.293 0.004 83.065);
--chart-1: oklch(0.293 0.004 83.065);
--chart-2: oklch(0.294 0.005 173.033);
--chart-3: oklch(0.287 0.007 314.085);
--chart-4: oklch(0.325 0.006 173.013);
--chart-5: oklch(0.295 0.008 83.059);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 88.353);
--foreground: oklch(1 0 180);
--muted: oklch(0.266 0.025 170.466);
--muted-foreground: oklch(0.701 0.03 172.268);
--popover: oklch(0.14 0.015 88.353);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.016 85.506);
--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.293 0.004 83.065);
--primary-foreground: oklch(0.824 0.005 83.06);
--secondary: oklch(0.294 0.005 173.033);
--secondary-foreground: oklch(0.825 0.006 173.374);
--accent: oklch(0.287 0.007 314.085);
--accent-foreground: oklch(0.818 0.007 314.17);
--destructive: oklch(0.615 0.238 29.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.293 0.004 83.065);
--chart-1: oklch(0.293 0.004 83.065);
--chart-2: oklch(0.294 0.005 173.033);
--chart-3: oklch(0.287 0.007 314.085);
--chart-4: oklch(0.325 0.006 173.013);
--chart-5: oklch(0.295 0.008 83.059);
}