Skip to content
Contents

Sneferu theme SDK

Build themes for Hekana stores

Sneferu is Hekana's theme language and SDK: HTML with hk-* tags, template output and if, for and render directives, compiled to one safe artifact and previewed locally with sample data.

A pyramid on sand dunes under a dusk sky

Quick start

  1. Create a theme

    Copies the starter theme into a new folder and sets its id from the folder name.

    npx @hekana/sneferu init my-theme
  2. Preview it

    Serves the theme on 127.0.0.1:4100 with sample data, Arabic first, and reloads on every save.

    npx @hekana/sneferu dev ./my-theme
  3. Push a version

    Validates, compiles and uploads the theme. During the current phase, pushing is limited to Hekana platform admins.

    npx @hekana/sneferu push ./my-theme --package my-theme

The npm package is not published yet. Until it is, run the CLI from a clone of the SDK, as described in Getting started.

Guide

Eight chapters, from an empty folder to a published theme.

Reference

Every tag, every piece of syntax and every diagnostic code.

Sneferu developer docs | Hekana