How nirmal-mekala/siteify works
Siteify turns an existing HTML page into a themed microsite by inserting a Preact header above its main content. The header provides a configurable link and dark-mode and optional alternate-theme toggles; changes update document classes and persist selections. CSS supplies the base themes, while a documented inline bootstrap initializes theme classes before the app loads. The runtime entry and component calls are shown in source; CSS internals and the inline bootstrap are documented but not present as repository source files in the excerpts.
Main entry points: header/index.tsx Header · main.tsx Runtime Entry · app.tsx App · headerLink/index.tsx Header Link
Components 14
Page Runtime
- Runtime Entry
src/main.tsx - App
src/app.tsx - Theme Preferences
- Theme Bootstrap
Header Controls
- Header
src/components/header/index.tsx - Header Link
src/components/headerLink/index.tsx - Link Text
src/components/headerLinkText/index.tsx - Toggle Control
src/components/toggle/index.tsx - Theme Helpers
src/components/header/utils.ts
Themes and Styles
- Base Styles
src/index.css - Theme Styles
src/styles
Other components
- Microsite Page
- Browser Document
- Site Configuration
Connections 17
- Microsite Page → Runtime Entry: loads bundle
README.md - Runtime Entry → App: renders
src/main.tsx - App → Header: renders
src/app.tsx - Runtime Entry → Browser Document: inserts header
src/main.tsx - Runtime Entry → Base Styles: imports styles
src/main.tsx - Header → Header Link: renders
src/components/header/index.tsx - Header Link → Link Text: renders
src/components/headerLink/index.tsx - Header → Toggle Control: renders
src/components/header/index.tsx - Header → Theme Helpers: calls helpers
src/components/header/index.tsx - Header → Theme Bootstrap: reads configuration
src/components/header/index.tsx - Header → Theme Preferences: persists selections
- Theme Bootstrap → Theme Preferences: reads selections
README.md - Theme Bootstrap → Browser Document: sets theme classes
README.md - Theme Helpers → Browser Document: updates classes
src/components/header/utils.ts - Header → Browser Document: unhides page
src/components/header/index.tsx - Site Configuration → Header: configures controls
README.md - Theme Styles → Browser Document: styles theme classes
README.md