fix(layout): restore mx-auto centering by scoping CSS reset to @layer base

Unlayered CSS always wins over Tailwind's @layer utilities, so the
bare * { margin: 0 } reset was overriding mx-auto everywhere. Moving
it into @layer base restores correct cascade order.
This commit is contained in:
lerko96
2026-04-12 19:59:59 -04:00
parent a58fafc563
commit b3fc7b2114
5 changed files with 19 additions and 15 deletions

View File

@@ -39,10 +39,12 @@ html {
font-family: var(--font-mono);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
@layer base {
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
}
/* Default transitions — linear, fast */