NativeTouch
Theme guide

Build a theme for Orion

Any design becomes an Orion theme: mark the parts an owner should edit, and Orion fills in pages, menus, articles, products, languages and forms.

Two ways to start

Generate it with AI

Paste the prompt below into Claude, ChatGPT or Figma Make together with your design's code. It asks you about your pages, then returns a theme zip.

Get the prompt

Start from the starter theme

A plain theme with every page and mark already in place. Restyle assets/styles.css and the templates to match your design.

Download starter theme

Zip layout

A theme is one zip file. HTML files are fragments: no <html>, <head> or <body> tags. The header and footer live in their own files and are not repeated in templates.

Every file below is required. The ones marked (yours) are one per page of your design.

theme.json
head.html                       shared <link> and <script> tags only
parts/header.html               logo, header menu, language menu spot, mobile menu button
parts/footer.html               logo + logo link, links menu, Follow menu, footer texts, year
templates/home.html             your home page; card areas are product and/or article lists
templates/<page>.html (yours)   every other page of your design
templates/shop.html             search, filter and order + product list (ONE card) + empty note + page links
templates/product.html          every product part + buy button + share bar + related products (ONE card)
templates/blog.html             article list (ONE card) + empty note + page links
templates/article.html          title, image, category, date, body + share bar + related articles (ONE card)
templates/contact.html          heading + contact form + thank-you note
templates/login.html            heading + <div data-component></div>
templates/register.html         heading + <div data-component></div>
templates/cart.html             heading + <div data-component></div>
templates/checkout.html         heading + <div data-component></div>
templates/orders.html           heading + <div data-component></div>
templates/block-products.html   the Products card owners add to any page (ONE card)
templates/block-posts.html      the Articles card owners add to any page (ONE card)
assets/styles.css               all CSS in one file
assets/theme.js                 mobile menu and other interactions
assets/img/logo, assets/img/favicon

theme.json

{
  "name": "My Theme",
  "version": "1.0.0",
  "head": "head.html",
  "header": "parts/header.html",
  "footer": "parts/footer.html",
  "article": "templates/article.html",
  "logo": "assets/img/logo.svg",
  "favicon": "assets/img/favicon.svg",
  "templates": [
    { "key": "home", "label": "Home", "file": "templates/home.html" },
    { "key": "about", "label": "About", "file": "templates/about.html" },
    { "key": "shop", "label": "Shop", "file": "templates/shop.html" },
    { "key": "product", "label": "Product", "file": "templates/product.html" },
    { "key": "blog", "label": "Blog", "file": "templates/blog.html" },
    { "key": "contact", "label": "Contact", "file": "templates/contact.html" },
    { "key": "login", "label": "Sign in", "file": "templates/login.html" },
    { "key": "register", "label": "Sign up", "file": "templates/register.html" },
    { "key": "cart", "label": "Basket", "file": "templates/cart.html" },
    { "key": "checkout", "label": "Checkout", "file": "templates/checkout.html" },
    { "key": "orders", "label": "Orders", "file": "templates/orders.html" },
    { "key": "block-products", "label": "Card: products", "file": "templates/block-products.html" },
    { "key": "block-posts", "label": "Card: articles", "file": "templates/block-posts.html" }
  ]
}

Template keys are lowercase letters, numbers and dashes. about stands for your own pages; every other key above is required exactly as shown. block-newsletter and block-contact are optional card designs.

Rules

  • Plain HTML, CSS and JavaScript. No React, Vue or build step: compile any CSS framework into one stylesheet.
  • head.html holds the shared tags, such as <link rel="stylesheet" href="assets/styles.css">.
  • Paths in HTML start at the zip's root (assets/img/hero.jpg); paths in CSS are relative to the CSS file.
  • Everything loads from the zip: no Google Fonts links or images from other sites.
  • File types: png, jpg, webp, avif, gif, svg, ico, css, js, json, woff, woff2, ttf, otf, mp4, webm. Up to 300 files and 30 MB.

Editable content

Anything you mark becomes editable in the page editor; anything unmarked stays as designed. Every visible word should be marked: Orion translates a site by collecting all marked texts into a dictionary and translating it once per language, so an unmarked word (an eyebrow, "Read more", an empty-list note, a form label) stays in the theme's language in every translation. Write the theme in the site's main language only.

data-field="hero.title"Text: a heading, paragraph or button label.
data-field="about.body" data-type="rich"Several paragraphs, edited with a text editor.
data-field="hero.image"On an <img>: an image the owner can replace.
data-field="hero.cta"On an <a> with words: the link's text and address.
data-field="social.x"On an icon-only <a>: just the address.
data-repeat="features"On ONE repeating element (a card, an FAQ entry). Fields inside use short names. Repeats cannot be nested.
data-label="Hero title"A readable name for the field in the editor.
<section class="hero">
  <h1 data-field="hero.title" data-label="Title">A clear headline</h1>
  <img data-field="hero.image" src="assets/img/hero.jpg" alt="">
  <div class="feature" data-repeat="features">
    <h3 data-field="title">First reason</h3>
    <p data-field="text">A short sentence.</p>
  </div>
</section>

Header and footer

Nothing in the header or footer is fixed: every link is a menu item and every other text is site info.

data-logoOn the logo <img> or the link around it. Uses the logo uploaded in the panel.
data-menu="header"A menu's container, with data-menu-item on ONE sample link. Footer columns use footer, footer-legal…, social links follow.
data-languagesAn empty element in the header where the language menu (flag and name) goes.
data-global="phone"Site info: the same on every page, edited once (phone, email, address, footer.tagline…).
data-logo data-global="footer.logo"A footer logo whose text and link the owner sets.
data-yearThe current year, for the copyright line.
<header>
  <a href="/" data-logo><img src="assets/img/logo.svg" alt=""></a>
  <nav>
    <div data-menu="header"><a href="/" data-menu-item>Home</a></div>
    <div data-languages></div>
  </nav>
</header>

Article and product lists

Lists are filled with the site's articles or products. On a page, the owner picks what each list shows, which categories and how many.

data-list="posts"The area holding article cards (data-list="products" for products). data-limit="3" sets how many by default.
data-list-itemONE sample card inside the area.
data-item="link"The card's <a>.
data-item="image" · "title" · "excerpt" · "date" · "category"The card's parts. date goes on a <time>.
data-item="price" · "regular-price" · "stock" · "badge"Product cards: price, crossed-out price, out-of-stock note, and a badge shown only on popular products.
data-list-emptyA message shown when the list is empty.
data-paginationPage links, with data-page="prev", data-page="next" and data-page-info inside.
data-searchA shop form with <input name="q">, <select name="category" data-filter="category"> and <select name="sort" data-sort> (newest, price-asc, price-desc, name).
<div class="cards" data-list="posts" data-limit="3">
  <a href="#" class="card" data-list-item data-item="link">
    <img data-item="image" src="assets/img/sample.jpg" alt="">
    <h3 data-item="title">Article title</h3>
    <p data-item="excerpt">A short summary.</p>
  </a>
  <p data-list-empty>No articles yet.</p>
</div>

Give cards the same size: equal columns and one image box shape with object-fit: cover.

Product page

The template keyed product shows one product or service.

data-product="name" · "price" · "regular-price"Name and prices.
data-product="short" · "description"Summary and full description.
data-product="image"The main <img>.
data-product="gallery"A row with one <img data-product-image> sample.
data-product="category" · "stock" · "sku"Category, stock note and SKU.
data-product="quantity" · "delivery-time" · "features"For services: amount, delivery time and a list (one <li> sample) of what is included.
data-product="add-to-cart"The buy button.

Article template

templates/article.html shows one blog post.

data-article="title"The headline.
data-article="body"Required. The article text: style h2, h3, p, ul, ol, blockquote, img and table inside it.
data-article="image"The featured <img>, shown whole: no fixed height, no object-fit: cover.
data-article="category" · "date"Category link and the date on a <time>.

Share bar and related items

data-shareA row of share links: <a data-share-link="x|facebook|linkedin|whatsapp|email|copy">.
data-related="posts"A scrolling row of related articles (products on product pages), with one data-list-item card.

Page sections and cards

Build each page as top-level <section> elements. The owner can reorder or hide them, so each one must look right on its own. data-section-label="Hero" names a section in the editor.

Owners add Articles and Products cards to any page, as many times as they like, each with its own categories, count and cards per row. Their design comes from two required templates: block-posts and block-products. Each is one <section> with data-block-title on the heading and a list area holding ONE card, which Orion repeats for every article or product. The CSS variable --cms-cols holds the cards per row. block-newsletter and block-contact optionally restyle the Newsletter and Contact form cards.

<section>
  <h2 data-block-title>Products</h2>
  <div class="cards" data-list="products">
    <a href="#" data-list-item data-item="link">…</a>
  </div>
</section>

Ready-made screens

Orion has working screens for sign in, sign up, basket, checkout and orders. In the templates keyed login, register, cart, checkout and orders, draw the page around the screen and leave one empty <div data-component></div> where it goes. A screen with no template uses Orion's built-in design.

Contact form

The contact template can draw its own form:

<form method="post" action="/api/contact">
  <input name="name"> <input name="email" type="email">
  <textarea name="message"></textarea>
  <input name="website" hidden>
  <button data-field="form.send">Send</button>
</form>
<p data-contact-sent hidden>Thank you, your message is on its way.</p>

An optional <select name="subject"> is kept with the message. The note marked data-contact-sent is shown, and the form hidden, after a message is sent.

Interactions

Put scripts in assets/. A mobile menu is <button data-toggle="menu"> opening <nav data-toggle-target="menu" hidden>; accordions use <details>; sliders use CSS scroll-snap.

The AI prompt

Copy it into your AI tool together with your design's code (a Figma Make export, a React project, or HTML and CSS).

You are converting my website design into a theme for Orion CMS. I have attached (or will paste) my design's code: a Figma Make export, a React/Vite project, or HTML and CSS. You need that code; if you only have a screenshot or a description, stop and ask me for the code first.

BEFORE YOU START, ask me:
1. How many page designs (screens) does my design have, and what is each one called? For example: Home, About, Services, Pricing, Contact.
2. Which of them is the home page.
3. Which pages show repeated items, such as a shop with products, a blog or news list, and the page of a single product.
4. Whether the design has a contact page or contact section.
Wait for my answer. Make one template for every page design I list, and do not leave any out. On top of my pages, the theme ALWAYS has these ten templates, drawn in my design's style even when my design does not show them: product, shop, blog, contact, login, register, cart, checkout, orders, and templates/article.html. Name the single product page's template key "product" and the contact page's template key "contact" (if the contact form is only a section of another page, also make it a page of its own with key "contact").

THEN BUILD A ZIP FILE named <site>-theme-1.0.0.zip with EXACTLY this tree. Every file below is required; the ones marked (mine) are one per page design I listed.

theme.json
head.html                       shared <link> and <script> tags only
parts/header.html               logo (data-logo), menu (data-menu="header" + one data-menu-item), empty <div data-languages></div>, mobile menu button
parts/footer.html               logo (data-logo data-global="footer.logo"), link column (data-menu="footer" + one data-menu-item), social column (data-menu="follow" + one data-menu-item), data-global texts, data-year
templates/home.html             my home page as <section>s; its card areas are lists: data-list="products" and/or data-list="posts", each with ONE data-list-item card and a data-list-empty note
templates/<page>.html (mine)    every other page design I listed, marked with data-field / data-repeat
templates/shop.html             heading (data-field) + search form (data-search) + data-list="products" with ONE card (data-item link, image, title, category, price, regular-price, stock, badge) + data-list-empty + data-pagination
templates/product.html          data-product name, price, regular-price, short, description, image, gallery (one <img data-product-image>), category, stock, sku, quantity, delivery-time, features (one <li>), add-to-cart; then data-share and data-related="products" with ONE card
templates/blog.html             heading (data-field) + data-list="posts" with ONE card (data-item link, image, title, excerpt, date, category) + data-list-empty + data-pagination
templates/article.html          data-article title, image, category, date, body; then data-share and data-related="posts" with ONE card
templates/contact.html          heading and intro (data-field) + <form method="post" action="/api/contact"> (name, email, message, hidden website) + a hidden data-contact-sent note
templates/login.html            heading (data-field) + <div data-component></div>
templates/register.html         heading (data-field) + <div data-component></div>
templates/cart.html             heading (data-field) + <div data-component></div>
templates/checkout.html         heading (data-field) + <div data-component></div>
templates/orders.html           heading (data-field) + <div data-component></div>
templates/block-products.html   one <section>: data-block-title heading + data-list="products" with ONE card (the card an owner adds to any page)
templates/block-posts.html      one <section>: data-block-title heading + data-list="posts" with ONE card
assets/styles.css               all CSS, compiled into one file
assets/theme.js                 mobile menu and other interactions
assets/img/logo.(svg|png)       the logo
assets/img/favicon.(svg|png)    square icon, at least 64×64

A card (data-list-item) is drawn ONCE: Orion copies it for every article or product and fills its data-item parts. Do not draw several sample cards in a list, do not hard-code titles, prices or images in cards, and give every card in a row the same size (same image box, object-fit: cover).

theme.json:
{
  "name": "<Site name>",
  "version": "1.0.0",
  "head": "head.html",
  "header": "parts/header.html",
  "footer": "parts/footer.html",
  "article": "templates/article.html",
  "logo": "assets/img/logo.svg",
  "favicon": "assets/img/favicon.svg",
  "templates": [
    { "key": "home", "label": "Home", "file": "templates/home.html" },
    { "key": "about", "label": "About", "file": "templates/about.html" },
    { "key": "shop", "label": "Shop", "file": "templates/shop.html" },
    { "key": "product", "label": "Product", "file": "templates/product.html" },
    { "key": "blog", "label": "Blog", "file": "templates/blog.html" },
    { "key": "contact", "label": "Contact", "file": "templates/contact.html" },
    { "key": "login", "label": "Sign in", "file": "templates/login.html" },
    { "key": "register", "label": "Sign up", "file": "templates/register.html" },
    { "key": "cart", "label": "Basket", "file": "templates/cart.html" },
    { "key": "checkout", "label": "Checkout", "file": "templates/checkout.html" },
    { "key": "orders", "label": "Orders", "file": "templates/orders.html" },
    { "key": "block-products", "label": "Card: products", "file": "templates/block-products.html" },
    { "key": "block-posts", "label": "Card: articles", "file": "templates/block-posts.html" }
  ]
}
"about" stands for my own pages: list each of them. All other entries above are required exactly as shown. Keys are lowercase letters, numbers and dashes. The home page's key is "home".
Include the site's logo and a square favicon (at least 64×64, PNG or SVG) as files in assets/ and name them in "logo" and "favicon". If the design has no separate icon, make the favicon from the logo's mark. The header's logo image uses the same logo file.

RULES
- Plain HTML and CSS only. No React, Vue or build step in the result. Render the design and save the final HTML; compile Tailwind or any CSS framework into one file, assets/styles.css, keeping only the CSS the pages use.
- HTML files are fragments: no <html>, <head> or <body> tags.
- head.html holds only the shared tags, for example:
  <link rel="stylesheet" href="assets/styles.css">
  <script src="assets/theme.js" defer></script>
- The header (logo and navigation) goes in parts/header.html and the footer in parts/footer.html. They are the same on every page, so they are NOT repeated inside the templates. A template is only the part of the page between the header and the footer.
- Paths in HTML are written from the zip's root: assets/img/hero.jpg. Paths inside CSS files are relative to the CSS file.
- Download fonts and images into assets/. Nothing may load from another website (no Google Fonts links, no image URLs from other sites).
- Allowed asset types: png, jpg, webp, avif, gif, svg, ico, css, js, json, woff, woff2, ttf, otf, mp4, webm. At most 300 files and 30 MB.
- Keep the design pixel-perfect on desktop and mobile.

MAKE THE CONTENT EDITABLE with data- attributes. Anything not marked stays fixed.
In templates:
- data-field="hero.title" on any text (headings, paragraphs, button labels).
- data-field="hero.body" data-type="rich" on a block of several paragraphs.
- data-field="hero.image" on an <img>.
- data-field="hero.cta" on an <a> link with words.
- data-field="social.x" on an icon-only <a> link.
- data-repeat="features" on ONE element that repeats (a card, a pricing tier, a testimonial, an FAQ entry). Keep all the design's sample cards; inside a repeat, field names are short (title, price, image). Repeats never go inside other repeats.
- data-label="Hero title" to give a field a readable name when the name is not obvious.
- Field names: lowercase, with dots to group (pricing.title). Use the same name twice only for the same text.
- Mark every heading, paragraph, button and image a site owner would change. Do not mark decoration (background shapes, dividers, decorative icons).
- EVERY VISIBLE WORD IS TRANSLATABLE. Content the owner edits per page is a data-field (data-global in the header and footer). Every other fixed word of the design (section eyebrows, "Latest articles", "Read more", empty-list notes, form labels, select options, placeholders, button texts, pagination words, badges, alt and aria-label texts) is a text slot: {{key|Starting words}}, for example <span>{{latest_articles|Latest articles}}</span> or placeholder="{{search_placeholder|Search…}}". Keys: lowercase letters, numbers, _ . and -. The same key twice is one text. Orion translates every slot into each of the site's languages and the owner edits them in Design → Texts. Words inside a data-list-item card that come from the article or product (title, excerpt, price) use data-item instead.
- Write every text in the site's main language. Do not put two languages in one theme; Orion makes the other languages from the dictionary.
In the header and footer:
- data-logo on the logo <img> (or the link around it).
- data-menu="header" on the navigation's container, and data-menu-item on ONE nav link inside it. Do the same for footer link columns with data-menu="footer" (or footer-legal, footer-company…), and for social links with data-menu="follow".
- An empty element with data-languages in the header where the language menu goes (flag and language name, filled by the CMS). Do not draw a static "Get in touch" or other button the owner cannot edit; put such links in the menu.
- data-global="phone", data-global="email", data-global="address" (and so on) for contact details. Social links are menu items in data-menu="follow", not single fields.
- data-year on the element showing the copyright year.
- NOTHING in the header or footer may be fixed text or a fixed link. Every navigation link, including a header button such as "Get in touch", is a menu item. Any other footer text or link is data-global (for example footer.tagline, footer.motto), so the site owner can change or remove it. A footer logo that links somewhere is data-logo plus data-global="footer.logo" on its <a>.
A blog or news list page shows the newest posts, filled by Orion:
- data-list="posts" on the area holding the cards, data-list-item on ONE sample card inside it, and inside that card data-item="link" (the <a>), data-item="image" (<img>), data-item="title", data-item="excerpt", data-item="date" (<time>), data-item="category".
- data-list-empty on a "No posts yet" message inside the area.
- data-pagination on the page links, with data-page="prev", data-page="next" and data-page-info inside it.
A shop page (product grid) is filled the same way with data-list="products": the card also takes data-item="price", data-item="regular-price" (the crossed-out price) and data-item="stock" (an "Out of stock" note). Put search, filter and order in a form: <form data-search> with <input type="search" name="q">, <select name="category" data-filter="category"><option value="">All</option></select>, <select name="sort" data-sort> with options newest, price-asc, price-desc, name, and a submit button.
The single product page (template key "product") uses data-product marks: data-product="name", "price", "regular-price", "short", "description", "image" (the main <img>), "gallery" (a row with one <img data-product-image> sample), "category", "stock", "sku", and "add-to-cart" on the buy button. Products can also be services: data-product="quantity" (e.g. 1,000), "delivery-time", and "features" on a list with one <li> sample for what is included. On product cards, data-item="badge" shows only on products marked popular. Keep other texts on it as data-field.
Under product and article pages, add a share bar (data-share, with <a data-share-link="x|facebook|linkedin|whatsapp|email|copy"> icons) and a horizontally scrolling row of related items (data-related="products" or data-related="posts", with one data-list-item card inside).
templates/article.html (blog posts) uses these marks instead of data-field:
- data-article="title", data-article="body" (required: style h2, h3, p, ul, ol, blockquote, img and table inside it), data-article="image" on an <img>, data-article="category", data-article="date" on a <time>.
- The featured image (data-article="image") goes at the top and is never cropped: width up to 100% of its column, height auto, no object-fit: cover, no fixed height.

REQUIRED EVEN IF MY DESIGN DOES NOT SHOW THEM (see the tree at the top), drawn in my design's style: shop, product, blog, article, contact, login, register, cart, checkout, orders, block-products and block-posts.

PAGE SECTIONS AND CARDS
- Build each page as a sequence of top-level <section> elements (one per part: hero, about, products, newsletter…). Orion lets the site owner reorder or hide them, so each section must look right on its own and in any order. Give EVERY top-level <section>, in every template, a data-section-label with a readable name in the site's language (for example data-section-label="Hero", "Services", "Blog"); without it the editor shows CSS class names.
- The cards a site owner adds to any page (as many as they like, each with its own categories and count) are drawn by the required templates "block-products" and "block-posts", and optionally "block-newsletter" and "block-contact": one <section> each, with an element marked data-block-title for the heading, a data-list area as above for products and posts, and for the newsletter a form posting to /api/contact (email field, hidden name and message) with data-block-text for its short text. Use the CSS variable --cms-cols for how many cards per row.
- Product, article and related cards in a row are all the same size: equal columns, the same image box shape (e.g. 4:3 or square) with object-fit: cover so the image fills it. Only the article page's own featured image is shown whole.

READY-MADE SCREENS (components)
Orion has working screens for sign in, sign up, basket, checkout, orders and contact. Their page templates use the keys "login", "register", "cart", "checkout", "orders" and "contact". The product list is the "shop" page above. Draw the page around the screen (a heading, an intro, an image or side panel as the design suggests) and leave ONE empty element marked data-component where the working screen goes, for example <div data-component></div>. Orion fills it with the real form, basket or list and uses the site's fonts and colours. The contact page may instead draw its own form as described below, in which case it needs no data-component. A screen that is not designed falls back to Orion's built-in one.

INTERACTIONS (put them in assets/theme.js, no frameworks)
- Mobile menu: <button data-toggle="menu"> opens <nav data-toggle-target="menu" hidden>.
- Accordions and FAQs: use <details><summary>.
- Sliders: CSS scroll-snap.
- A contact form is <form method="post" action="/api/contact"> with fields name, email, message (an optional select named subject is kept with the message), plus an empty hidden field named website. Put a thank-you note next to it with data-contact-sent and the hidden attribute: Orion shows it, and hides the form, after a message is sent. Mark the form's headings and button text with data-field so they can be translated.
- Links between pages are real <a href="/about"> links.

WHEN YOU FINISH
Before you give me the zip, go through the tree above file by file: every file exists, theme.json lists every template, and every list (home, shop, blog, related rows, block cards) has exactly ONE data-list-item card with its data-item marks. If anything is missing, add it.
Give me the zip file to download, and list each template with the fields you marked, so I can check nothing is missing. Then I will upload the zip to Orion CMS.

Upload and switch on

  1. In the panel, open Design → Themes and choose Upload theme.
  2. Orion checks the zip and lists what is wrong if anything is, with the file and the mark.
  3. Click Activate. Pages keep their content; edit it in Pages, menus and site info in Design.
  4. For a new version, raise version in theme.json and upload again.