Theme engine — derives all design tokens from a single seed. Canvas generators, scenes, and interior/dungeon demos live on the demo index.
Derived from palette + seed. Same seed, same assignment. Change the seed for a new identity.
Art-pixel values × pixel scale → CSS pixels
Bitmap headings rendered to <canvas> (internal 5×7 font + effects). Body copy uses CSS from theme tokens.
createPage — full-bleed-ready shell, background layer, and content container; pair with buildAppStylesheet for standalone pages.
Content createCard — variants default, bordered, raised, inset; optional title bar with icon and close button.
Pixel UI createButton — theme tokens via var(--pf-*), press and focus states per W3 spec.
createPanel — framed content regions; CSS or nine-slice borders.
createBadge — status chips and dot indicator.
createDivider — rules and optional centred label.
createLoader — spinner, progress bar, dots, or blinking sprite icon. Supports size: 'sm' | 'md' | 'lg'.
createNav — horizontal/vertical/tabs nav with active link state and a mobile drawer.
createHero — large landing section with procedural background, title, subtitle, and CTA.
createFooter — page footer with link list and optional seed display.
createInput — text/password/email/textarea fields with optional label and aria-label fallback.
createModal — dialog with focus trap, ESC to close, optional buttons.
createToast — corner-pinned auto-dismissing notifications.
createTooltip — hover/focus tooltip attached to any target element.
createLayout — pixel-snapped grid, BREAKPOINTS (art-px × scale → CSS media queries), snap.
createHybridMount — PixelCanvas layer + DOM overlay (when canvas 2D is available).
28 hand-defined 12×12 templates mapped to theme roles (text, muted, primary, …). Unknown names use a deterministic symmetric sprite.
createGradientBackground, createNoiseBackground, createPatternBackground,
createSceneBackground — PNG data URLs + CSS (scene mounts a canvas).
createLandingPage, createPortfolioPage, createBlogPage,
createDashboardPage, createGameUI (hero-style blocks live in presets / createHero elsewhere). Uses master seed & palette above.
generateStaticSite supports landing, portfolio, blog, and DSL document exports. Dashboard and Game UI remain preview-only.
RenderedPage.animatedScene — populated only for the DSL preset when its background is an animated type: 'scene'.
CSS custom properties applied — everything below uses var(--pf-*)
Inject this into your page to apply the theme