From d0fee77bae752ad329dc58d9131d954274b3e28a Mon Sep 17 00:00:00 2001 From: mandalore Date: Fri, 4 Sep 2026 15:39:36 -0500 Subject: [PATCH] Fix broken header styling: stop gitignoring generated header.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tailwind v4's automatic content detection skips gitignored files, and public/header.html was gitignored (generated) — so every header-only utility class (hero-carousel, navbar-center, swap-rotate, menu-horizontal, drop-shadow-2xl, etc.) got purged from the compiled CSS on the last deploy. The header markup was correct, just entirely unstyled. Fixed two ways for certainty: added an explicit @source in each site's style.css (Tailwind's documented way to force-include a gitignored path), and also stopped gitignoring public/header.html so automatic detection picks it up regardless — matching how the original per-site repos worked before this generated a real file. predev/prebuild still regenerate it on every dev/build, so it can't go stale. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01SBzcNkW7JcYipnAX6HfgmK --- sites/40k-rankings/.gitignore | 2 - sites/40k-rankings/public/header.html | 59 +++++++++++++++++++++++++ sites/40k-rankings/src/style.css | 5 +++ sites/aos-rankings/.gitignore | 2 - sites/aos-rankings/public/header.html | 59 +++++++++++++++++++++++++ sites/aos-rankings/src/style.css | 5 +++ sites/kingmaker/.gitignore | 2 - sites/kingmaker/public/header.html | 63 +++++++++++++++++++++++++++ sites/kingmaker/src/style.css | 5 +++ sites/scouting/.gitignore | 2 - sites/scouting/public/header.html | 57 ++++++++++++++++++++++++ sites/scouting/src/style.css | 5 +++ 12 files changed, 258 insertions(+), 8 deletions(-) create mode 100644 sites/40k-rankings/public/header.html create mode 100644 sites/aos-rankings/public/header.html create mode 100644 sites/kingmaker/public/header.html create mode 100644 sites/scouting/public/header.html diff --git a/sites/40k-rankings/.gitignore b/sites/40k-rankings/.gitignore index 800a23d..573ecc5 100644 --- a/sites/40k-rankings/.gitignore +++ b/sites/40k-rankings/.gitignore @@ -3,5 +3,3 @@ dist/ .env .env.local -# generated from shared/header.template.html — see scripts/render-header.mjs -public/header.html diff --git a/sites/40k-rankings/public/header.html b/sites/40k-rankings/public/header.html new file mode 100644 index 0000000..ff6ea8d --- /dev/null +++ b/sites/40k-rankings/public/header.html @@ -0,0 +1,59 @@ +
+ + +
+ + + + + +
+ + +
+ + Gateway Gamers + +
+ +
+ + + + +
diff --git a/sites/40k-rankings/src/style.css b/sites/40k-rankings/src/style.css index 4c1b0c2..d34322b 100644 --- a/sites/40k-rankings/src/style.css +++ b/sites/40k-rankings/src/style.css @@ -1,2 +1,7 @@ @import "tailwindcss"; @plugin "daisyui"; + +/* header.html is generated (gitignored) — Tailwind's automatic content + detection skips gitignored files, so name it explicitly or its classes + get purged from the build. */ +@source "../public/header.html"; diff --git a/sites/aos-rankings/.gitignore b/sites/aos-rankings/.gitignore index 800a23d..573ecc5 100644 --- a/sites/aos-rankings/.gitignore +++ b/sites/aos-rankings/.gitignore @@ -3,5 +3,3 @@ dist/ .env .env.local -# generated from shared/header.template.html — see scripts/render-header.mjs -public/header.html diff --git a/sites/aos-rankings/public/header.html b/sites/aos-rankings/public/header.html new file mode 100644 index 0000000..983cf7b --- /dev/null +++ b/sites/aos-rankings/public/header.html @@ -0,0 +1,59 @@ +
+ + +
+ + + + + +
+ + +
+ + Gateway Gamers + +
+ +
+ + + + +
diff --git a/sites/aos-rankings/src/style.css b/sites/aos-rankings/src/style.css index 4c1b0c2..d34322b 100644 --- a/sites/aos-rankings/src/style.css +++ b/sites/aos-rankings/src/style.css @@ -1,2 +1,7 @@ @import "tailwindcss"; @plugin "daisyui"; + +/* header.html is generated (gitignored) — Tailwind's automatic content + detection skips gitignored files, so name it explicitly or its classes + get purged from the build. */ +@source "../public/header.html"; diff --git a/sites/kingmaker/.gitignore b/sites/kingmaker/.gitignore index 800a23d..573ecc5 100644 --- a/sites/kingmaker/.gitignore +++ b/sites/kingmaker/.gitignore @@ -3,5 +3,3 @@ dist/ .env .env.local -# generated from shared/header.template.html — see scripts/render-header.mjs -public/header.html diff --git a/sites/kingmaker/public/header.html b/sites/kingmaker/public/header.html new file mode 100644 index 0000000..8bea7c7 --- /dev/null +++ b/sites/kingmaker/public/header.html @@ -0,0 +1,63 @@ +
+ + +
+ + + + + +
+ + +
+ + Gateway Gamers + +
+ +
+ + + + +
diff --git a/sites/kingmaker/src/style.css b/sites/kingmaker/src/style.css index 4c1b0c2..d34322b 100644 --- a/sites/kingmaker/src/style.css +++ b/sites/kingmaker/src/style.css @@ -1,2 +1,7 @@ @import "tailwindcss"; @plugin "daisyui"; + +/* header.html is generated (gitignored) — Tailwind's automatic content + detection skips gitignored files, so name it explicitly or its classes + get purged from the build. */ +@source "../public/header.html"; diff --git a/sites/scouting/.gitignore b/sites/scouting/.gitignore index 4fcdf22..d4e0534 100644 --- a/sites/scouting/.gitignore +++ b/sites/scouting/.gitignore @@ -4,5 +4,3 @@ dist/ .env.local .claude/settings.local.json -# generated from shared/header.template.html — see scripts/render-header.mjs -public/header.html diff --git a/sites/scouting/public/header.html b/sites/scouting/public/header.html new file mode 100644 index 0000000..c4923b7 --- /dev/null +++ b/sites/scouting/public/header.html @@ -0,0 +1,57 @@ +
+ + +
+ + + + + +
+ + +
+ + Gateway Gamers + +
+ +
+ + + + +
diff --git a/sites/scouting/src/style.css b/sites/scouting/src/style.css index d9825ce..e571a9e 100644 --- a/sites/scouting/src/style.css +++ b/sites/scouting/src/style.css @@ -1,6 +1,11 @@ @import "tailwindcss"; @plugin "daisyui"; +/* header.html is generated (gitignored) — Tailwind's automatic content + detection skips gitignored files, so name it explicitly or its classes + get purged from the build. */ +@source "../public/header.html"; + /* Data-viz accent (sequential blue, single hue) — dataviz skill palette, blue slot */ :root[data-theme="dark"] { --viz-accent: #3987e5; } :root[data-theme="light"] { --viz-accent: #2a78d6; }