Skip to the stack
Paramaguru

Menu

Colours for this site

Home

2D template · Electrical & Energy

How Ohmline is built

Wiring, panels and rooftop solar for homes and factories.

An electrical contractor's page that runs on current. Power flows through a circuit diagram as you scroll, a wall switch lights up the page, and a load calculator sizes the breaker and wire.

The stack

What each part does here.

I built the interactive parts of Ohmline with Preact. These are the technologies on the page, and the job each one does.

Framework

Preact

Two islands share one @preact/signals store: appliance steppers and presets write the counts, the LED panel meter reads them live.

  1. Scroll & timeline

    GSAP

    Times the light-switch reveal: current up the conduit, the filament warming, the lamp's cone and bloom, then stats counting up.

  2. Scroll & timeline

    ScrollTrigger

    Pins the single-line diagram on large screens and scrubs it stop by stop; on phones it draws the vertical diagram as it passes.

  3. Scroll & timeline

    DrawSVG

    Draws each conductor of the circuit diagram behind a bright pulse of current, plus the hero conduit and the report and process wires.

Built on the same base as every template

  • AstroBuilds every page to static HTML and loads each island's framework only where it is used.
  • TypeScriptTypes the content, the components and every script, so mistakes surface at build time.
  • Tailwind CSS 4Utility classes and design tokens, scoped to each template's own folder.

What each technology adds in general is under how my 2D templates differ.

Typography

The fonts it's set in.

I chose two open-licence families for Ohmline and host them with the site, so the text never waits on a font service.

See Ohmline in other fonts before you choose yours.

Try other fonts on Ohmline

Colours

The colours it's painted in.

I painted Ohmline in eight colours on a dark background, each with a single job: the same eight jobs every palette in my colour library fills.

  • Background#0F1318
  • Surface#161B22
  • Text#EEF2F6
  • Muted text#A3ADBB
  • Accent#FFC531
  • On accent#15120A
  • Second accent#D98545
  • Lines#272C33
Scheme
Dark
Previews in
Dark palettes

See Ohmline in other colours before you choose yours.

Try other colours on Ohmline

Signature effects

What you'll see.

Motion style: Scroll story, Micro-interactions, Data & numbers.

  1. 01Current flows on scroll
  2. 02Light-switch page reveal
  3. 03Load and breaker calculator
  4. 04Animated single-line diagram

The app behind this template

Ohmline Field Service

Field service for an electrical contractor, from a free survey to a signed test report, with an app technicians use offline on site.

  • Vue
  • Express
  • Postgres
  • Prisma

Start a project

Start with Ohmline.

Tell me about your business, and I'll shape Ohmline around it: your words, your pictures and the way you want visitors to reach you.