DEV Community

We built 200+ website templates as single HTML files - here's what we learned

When we started BLISS TECH, we set a constraint that sounded almost silly: every template we ship must be a single, self-contained HTML file.

No package.json. No build step. No node_modules. One file you can drag onto any host (or even open straight from your desktop) and it just works.

Today the library has 200+ templates across 40+ industries - real estate, hotels, restaurants, clinics, law firms, SaaS, and more - and the single-file constraint has shaped everything about how we build. Here's what that looks like in practice, and why we'd make the same call again.

Why single-file?

1. Templates are products, not starter kits. When a small business buys a template, they want to edit a headline, swap a few images, and publish. A build chain is a liability for them. A single file deploys anywhere, needs zero tooling, and survives years of neglect.

2. Longevity. Sites built on heavy frameworks age fast; plain HTML/CSS/JS does not. When your product is the file, dependency rot is not a risk you carry.

3. One file is testable in isolation. You can open it via file://, audit its markup end to end, and diff versions meaningfully. No generated soup.

What's inside each file

Design tokens as CSS variables. Every color, type scale, and spacing decision lives in :root custom properties, so re-theming is a handful of variable edits - not a refactor.

Fluid typography and layout. Headings scale with clamp(), structure comes from CSS Grid and Flexbox, so one file looks right on every screen.

Motion without weight. Scroll reveals and parallax are driven by IntersectionObserver plus a requestAnimationFrame loop with an early exit when nothing is moving - transform/opacity only. And a prefers-reduced-motion guard is always in place.

Accessibility as a baseline. Semantic HTML5 landmarks, ARIA roles where they help, keyboard-visible focus, descriptive alt text. WCAG 2.2-minded from the start.

Lessons

  1. "No build" is a feature customers feel immediately - in handoff, hosting costs, and editability.
  2. The last 10% is the product. Motion polish and spacing rhythm take most of the time - and that's exactly what makes a template feel premium.
  3. Constraints compound. The single-file rule kept our dependency count at zero and keeps the pages fast by construction.
  4. Sell to businesses, not just designers. Most buyers care about time-to-launch, not tooling novelty.

Try it

You can browse the whole library at zeusgroup.ai/tech/templates - 200+ templates, 40+ industries, every demo live, every file production-ready.

If you build single-file sites too, I'd love to hear what constraints you work under. Drop a comment.

Top comments (0)