Skip to content
On this page · 9 sections
  1. Where theme code lives
  2. Ways to start
  3. New blank theme
  4. Duplicate
  5. Export and import a ZIP
  6. Editing code
  7. Checking your theme
  8. How Liquid behaves on in1s
  9. Reference
Docs

Theme development

Updated

Build or adapt a theme for your website with Liquid, starting from a blank theme, a copy of a gallery theme or a ZIP you import.

A theme decides how your website looks and how its pages are put together. You can use a gallery theme as it is, adjust it in the theme editor, or write your own theme code. This section of the docs is for the last case: it explains how a theme is organised and what the Liquid language offers on in1s. Building it with an AI assistant? The in1s skills teach it these rules and how to design a website that looks current.

If you have built a Shopify theme, most of what you know carries over. in1s themes use the same Liquid syntax, the same folder layout, the same JSON templates and section schemas, and the same editor attributes. The main difference is the content: in1s has no products, collections or cart. Pages show data lists, forms, routes and menus instead.

Where theme code lives

Every website keeps its own copy of each theme it has added. Changing your copy never affects any other website, and a gallery theme's later fixes reach your copy only for the files you have not edited yourself.

Theme work happens on the Themes page of your website at https://accounts.in1s.com. You need a role that may edit theme code (see Team and roles).

Ways to start

Start from How Good for
A blank theme New blank theme on the Themes page Designing from scratch
A copy of a theme A theme's More actions menu → Duplicate Making large changes while keeping the original
A theme you already have Import theme Moving a theme between websites, or working locally
The theme you use Edit code on the theme Small, targeted changes

New blank theme

New blank theme creates "a working shell (header, footer, an empty home page and the pages every site needs) to design from scratch". It is added to your themes without going live, so you can build it while visitors keep seeing your current theme. A blank theme is your own: it does not receive updates from the gallery.

Tip

The gallery also offers Blank, a minimal theme in which every file opens with a comment saying what it demonstrates: every kind of template, sections built from blocks, nested blocks, every setting type, a data list, forms, English and Arabic translations and right-to-left layout. It is a good reference to read alongside these pages.

Duplicate

Duplicate copies a theme as visitors see it now. Unpublished changes stay with the original. The copy is added to your themes without going live, and a copy of a gallery theme keeps receiving that theme's fixes for files you have not changed.

Export and import a ZIP

  • Export as ZIP (in More actions) downloads the published version of a theme as a ZIP file with the theme folders at its root. Pro themes cannot be exported.
  • Import theme takes a Theme ZIP and a Theme name. The ZIP holds a theme's folders (layout, sections, templates, config, locales, assets and the rest), such as one exported here. One folder wrapping the whole theme is fine, and macOS __MACOSX folders and .DS_Store files are ignored. Every file is checked, and the theme is added to your themes without going live.

An import is refused, with the file named, when the ZIP:

  • is larger than 50 MB, or holds more than 2,000 files;
  • contains a file outside the theme folders, a file type a folder does not take, an encrypted entry or a symbolic link;
  • is missing a required file (see Theme structure);
  • holds a theme with errors when it is checked (up to 20 errors are listed).

A website can hold up to 20 themes in all.

Editing code

Edit code opens the code editor in your browser. Saving writes to the theme's draft: visitors keep seeing the published theme until you publish. You can preview the draft, compare files with their published version, look at a file's history, take snapshots and restore one. See Theme code for the editor itself.

Checking your theme

The code editor checks your theme as you work. Open the Problems panel to see every error and warning, errors first, each linking to the line it is about. A save checks again.

  • Errors are problems that would break a page, for example invalid JSON, a Liquid syntax error, a template that names a section file that does not exist, a {% render %} of a missing snippet, or a layout/theme.liquid that never prints {{ content_for_layout }}. You cannot publish while a file you changed has an error.
  • Warnings point at things that still render but are probably wrong, for example a section whose root element is missing {{ section.in1s_attributes }}, or a translation file that is missing keys.

A file you did not change never blocks a publish.

How Liquid behaves on in1s

The engine follows Shopify Liquid. A few behaviours are worth knowing before you start:

  • A broken section does not break the page. If a section, section group entry, snippet or block fails while rendering, it is left out and the rest of the page renders.
  • Unknown filters do nothing on the page. A misspelt filter passes its input through unchanged. The Problems panel flags it; the filter reference lists every filter.
  • Only nil and false are false. 0, "" and an empty list are true in {% if %}. Write > 0 or != blank when you mean "has a value".
  • Conditions take no filters. {% if x | size > 2 %} tests x alone. Assign first, then compare.
  • Dividing by zero gives 0 instead of an error.
  • Rendering is time-limited. A page that takes too long to render (around 10 seconds) is stopped, so avoid very large loops.
  • Values are printed as they are. Liquid does not escape output for you. Escape anything a visitor typed, such as search terms and form session values, with | escape.
  • request.locale.text_direction gives rtl or ltr for the visitor's language. Shopify has no such property; use it for the dir attribute of <html>.

Reference

  • Theme structure — The folders, required files, JSON templates and section groups.
  • Liquid objects — site, request, settings, data lists, entries, menus and more.
  • Liquid tags — Control flow, sections, snippets, forms, pagination and assets.
  • Liquid filters — Text, numbers, lists, URLs, images, colours, fonts and translations.
  • Sections and blocks — The {% schema %} format, setting types, presets and nesting.
  • Theme settings and translations — Global settings, colour schemes, fonts, languages and right-to-left.
  • AI tools — Let an AI assistant write, check and redesign theme code with you, with the in1s skills.

Start typing to search the docs.