Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

Project structure

The folder tree that npx sneferu init creates for a Hekana theme, one line per file or folder, with links to the pages that explain each part.

On this page

npx sneferu init my-theme creates a folder of plain text files. This page lists every file in it and says what it is for.

What you'll see

The tree below is what init writes. After npx sneferu build a dist/ folder appears next to these files with the built package; it is generated, so you never edit it.

text
my-theme/
├── theme.json                     name, version, languages, colours, fonts and other design tokens
├── AGENTS.md                      instructions for AI coding agents
├── CLAUDE.md                      the same rules for Claude Code
├── layout/                        the frame around every page
│   └── theme.snf                  the page frame: header, content and footer on every page
├── templates/                     one file per page type
│   ├── 404.snf                    the not-found page
│   ├── cart.snf                   the cart page
│   ├── collection.snf             a collection page
│   ├── index.snf                  the home page: which sections it shows
│   ├── page.snf                   a content page
│   ├── product.snf                the product page
│   └── search.snf                 the search page
├── sections/                      the big pieces a page is made of
│   ├── announcement-bar.snf       the strip above the header
│   ├── cart-main.snf              the cart page body
│   ├── collection-main.snf        the collection page body
│   ├── featured-products.snf      a row of products on the home page
│   ├── footer.snf                 the footer
│   ├── header.snf                 the header: logo, menu, search, cart
│   ├── hero.snf                   the home page banner you edit in the Quickstart
│   ├── not-found.snf              the 404 page body
│   ├── page-main.snf              a content page body
│   ├── product-main.snf           the product page body
│   ├── related-products.snf       more products under a product
│   └── search-main.snf            search results
├── blocks/                        small repeatable parts inside sections
│   ├── chip.snf                   a small label in the hero
│   ├── contact-line.snf           a contact line
│   ├── footer-column.snf          a column of footer links
│   ├── footer-link.snf            one link in a footer column
│   ├── menu-link.snf              a top-level menu entry
│   ├── menu-sub-link.snf          a menu entry under another
│   ├── payment-method.snf         a payment method
│   ├── product-buy.snf            the add to cart control
│   ├── product-category.snf       the product's category
│   ├── product-description.snf    the full description
│   ├── product-excerpt.snf        the short description
│   ├── product-price.snf          the price
│   ├── product-tags.snf           the product's tags
│   ├── product-text.snf           a free text line on the product page
│   ├── product-title.snf          the product name
│   ├── product-variants.snf       size, colour and other options
│   └── social-link.snf            a social media link
├── snippets/                      pieces you reuse with render
│   ├── button.snf                 a button, reused by sections
│   ├── price.snf                  a formatted price, reused by sections
│   └── product-card.snf           one product in a grid, reused by sections
├── groups/                        section lists for the header, footer and announcement bar
│   ├── announcement.json          which sections make up the announcement bar
│   ├── footer.json                which sections make up the footer
│   └── header.json                which sections make up the header
├── locales/                       translated text
│   ├── ar.json                    Arabic text, same keys
│   └── en.json                    English text, read with t('key')
└── assets/                        CSS
    └── theme.css                  your CSS for the theme

Requirements

You need the folder from Quickstart. Nothing else.

Where things go

FolderWhat lives thereRead more
theme.jsonThe theme's name, version, languages and design tokens: colours, fonts, radius, content widthTheme structure
templates/One file per page type. Each lists the sections that page showsPage types
sections/The large pieces of a page. Each has markup and a schema of settings the merchant can editSections and blocks
blocks/Small parts a section repeats or lets the merchant addSections and blocks
snippets/Markup you reuse in several sectionsSections and blocks
layout/The frame around every pageTheme structure
groups/The sections that make up the header, footer and announcement barSection groups
locales/Text for each language, read with t('key'). Arabic and English start filled inTheme structure
assets/Your CSS and imagesImages and assets
AGENTS.md, CLAUDE.mdRules for AI coding agents working in the folderBuild with AI agents

How it works

A visitor opens a page, for example the home page. Hekana picks the template for that page type (templates/index.snf), wraps it in layout/theme.snf, and fills it with the sections the template lists. Sections use blocks and snippets, take their text from locales/, and get their colours and fonts from theme.json.

Customize

  • Change a word: edit the key in locales/en.json and locales/ar.json.
  • Change a colour or font: edit tokens in theme.json.
  • Change what a page shows: edit its file in templates/.
  • Change how a piece looks: edit its file in sections/, then its CSS in assets/theme.css.

Next steps