staccato-hugo
2026-01-28
Initial release of staccato-hugo theme
132 files · 35,499+
TypeScript effect system
6 files changed
BaseEffect.tsAbstract base class with lifecycle and canvas managementEffectManager.tsEffect registry and switcherEffectUI.tsUI controls for effect selection and configurationPolyCentriCityEffect.tsPrimary effect: 2570-line polycentric city network simulationConstellationEffect.tsConstellation star-field effectStarfieldEffect.ts3D starfield with Three.js
- Six canvas effects: PolyCentriCity (polycentric city network), Constellation, GeometricMesh, NoiseField, ParticleWave, and Starfield. BaseEffect provides lifecycle hooks (init/render/resize/destroy), EffectManager handles switching, EffectUI exposes controls. Full test coverage: 6 effect test suites plus polycentric sub-tests (network, trails). Storybook stories for each effect.
instantiate
behavioral
3 files
BaseEffect.tsEffectManager.tsPolyCentriCityEffect.ts
Hugo layouts, partials, and shortcodes
6 files changed
baseof.htmlBase template with settings drawer, search modal, analyticssingle.htmlPost single template with TOC, breadcrumbs, schemasettings-drawer.htmlSettings drawer: theme, typography, effects controlsanalytics.htmlAnalytics partial (privacy-respecting)callout.htmlCallout shortcodeplayground.htmlInteractive playground shortcode
- Full Hugo layout hierarchy: baseof, list, single, posts/single, projects/list, sitemap. Partials cover header, footer, breadcrumbs, search modal, settings drawer, analytics, social share, schema (Article, BreadcrumbList, Organization, Website), staccato-beats, post-item. Shortcodes: callout, figure, img, playground.
instantiate
behavioral
2 files
baseof.htmlsettings-drawer.html
CSS component library
4 files changed
base.cssBase reset and custom propertiesdirlist.cssDirectory listing component with pulse animationsthemes.cssLight/dark theme variablessyntax.cssCode syntax highlighting (601 lines)
- 20+ CSS component files: base, themes, layouts, dirlist, syntax, playground, and components/ subtree covering breadcrumbs, callouts, code-blocks, comments, dropdowns, focus-mode, footer, header, lightbox, newsletter, posts, previews, projects, reading-progress, related-posts, responsive, search, settings-drawer, social-share, terminal, toast, TOC, typography-controls, utilities.
instantiate
behavioral
2 files
themes.cssdirlist.css
Search, theme switcher, and utility TypeScript
5 files changed
search.tsFuzzy search with Fuse.js and keyboard navigationtheme-switcher.tsTheme and typography control panel (1305 lines)main.tsEntry point: search, TOC, settings drawer initializationdirlist.tsDirectory listing JStoc.tsTable of contents scroll tracking
- Search: Fuse.js fuzzy search with keyboard navigation (335 lines, 635-line test suite). Theme switcher: light/dark/custom themes with font family/size/weight/line-height sliders stored to localStorage (1305 lines). main.ts bootstraps all components on DOMContentLoaded. TOC scroll-spy. Toast notifications.
instantiate
behavioral
2 files
search.tstheme-switcher.ts