Files
iammiti99/themes
tiennm99 e4fafef83b feat(theme): extract gallery CSS to demo-only stylesheet
Closes #11.

Move .themes-gallery__* + .variants-gallery__* selectors out of
static/css/bonsai.css into static/css/gallery.css. The demo pages
/themes/ and /variants/ load the new stylesheet via a head_extra
block defined in layouts/_default/baseof.html; the home page and
/icons/ keep getting only bonsai.css.

End-user sites stop shipping ~1.9 KB raw / ~200 B gzipped of demo-only
CSS. README "< 3 KB gzipped" claim restored to true.

Sizes (minified):
  bonsai.css   12,394 -> 10,470 raw  (-1,924)
                3,113 ->  2,910 gzip  (-203)
  gallery.css                2,252 raw / 626 gzip (loaded only on demo pages)

Verified rendered HTML at /, /themes/, /variants/, /icons/ via curl;
demo pages carry both stylesheets, others carry only bonsai.css.
2026-05-10 02:50:49 +07:00
..