Start building

AI Shopify code generator

Shopify Liquid code generator

Tell Klorr what the section should do. It writes the Liquid, the scoped CSS and JavaScript, and a schema that turns every piece of copy, colour and image into a setting you can change in the theme editor. You paste one file into your theme — no app, no monthly app fee, no script loading on every page.

You describe it

“An announcement bar with a countdown to the end of the sale, a short message and a button. Merchant picks the colours and the end date.”

Klorr writes it
sections/countdown-bar.liquid
<div class="acd-{{ section.id }}" data-ends="{{ section.settings.ends_at }}">
  <p class="acd__msg">{{ section.settings.message | escape }}</p>
  <div class="acd__clock" aria-live="polite">
    <span data-unit="d">00</span>d <span data-unit="h">00</span>h
    <span data-unit="m">00</span>m <span data-unit="s">00</span>s
  </div>
  {% if section.settings.button_label != blank %}
    <a class="acd__btn" href="{{ section.settings.button_link }}">
      {{ section.settings.button_label | escape }}
    </a>
  {% endif %}
</div>

{% style %}
  .acd-{{ section.id }} {
    background: {{ section.settings.background }};
    color: {{ section.settings.text_color }};
  }
{% endstyle %}

{% schema %}
{
  "name": "Countdown bar",
  "tag": "section",
  "settings": [
    { "type": "text", "id": "message", "label": "Message", "default": "Summer sale ends in" },
    { "type": "text", "id": "ends_at", "label": "Ends at (YYYY-MM-DD HH:MM)", "default": "2026-10-31 23:59" },
    { "type": "text", "id": "button_label", "label": "Button label", "default": "Shop the sale" },
    { "type": "url", "id": "button_link", "label": "Button link" },
    { "type": "color", "id": "background", "label": "Background", "default": "#1c1230" },
    { "type": "color", "id": "text_color", "label": "Text", "default": "#ffffff" }
  ],
  "presets": [{ "name": "Countdown bar" }]
}
{% endschema %}
Trimmed for the page — the real file also carries the countdown script and the full CSS.

What the generator writes

Liquid that exists

Real objects, filters and tags — section.settings, image_url, block.shopify_attributes — in the section and block structure Online Store 2.0 expects. Nothing invented that the theme editor rejects on save.

A complete schema

Every heading, colour, image, link and toggle becomes a setting with a sensible default, so the section is edited in the customizer, not in code. Blocks, limits and a preset included.

Scoped CSS and JavaScript

Styles are prefixed with the section's own id, so two copies on one page never fight each other or your theme. Scripts are small, vanilla and only run where the section is.

Code you own

It is one .liquid file in your theme's sections folder. No runtime, no watermark, no lock-in: cancel Klorr and the section keeps working exactly as it did.

From a sentence to a live section

  1. Describe it

    Write what the section should show and do, in your own words. Add your brand colours and a screenshot if you have one.

  2. Refine it

    Read the code, preview it and ask for changes in plain English — "make the button full width on mobile" — until it is right.

  3. Paste it into your theme

    Copy the file into your theme's sections folder, then add it from the theme editor like any other section.

Step-by-step: how to add a custom section to Shopify →

How it compares

There is more than one way to get a custom section into a Shopify store. Here is the honest version.

KlorrShopify's AI block generatorPage builder appsHiring a developer
What you getA complete section with its own settings and blocksA single theme blockPages built inside the app's editorWhatever you scope and pay for
Works inAny Online Store 2.0 themeThemes built for theme blocks, such as HorizonStores with the app installedAny theme
Ongoing costYour Klorr plan while you build — the code keeps working without itIncluded with ShopifyA monthly app fee for as long as the pages are livePer change, per invoice
The codeReadable Liquid in your theme, yours to keep and editGenerated inside the theme editorRendered by the appYours, once delivered
TurnaroundSeconds, then as many rounds as you likeSecondsHours of dragging and droppingDays to weeks

Sections people generate

A few of the sections merchants ask Klorr for most. Each links to ready-made versions on the Klorr marketplace, if you would rather start from one.

Questions, answered

What is a Shopify Liquid code generator?

It is a tool that writes Liquid — the template language Shopify themes are made of — from a description. Klorr goes further than snippets: it writes a whole section file with markup, CSS, JavaScript and a schema, ready to paste into your theme.

Which themes does the code work with?

Any Online Store 2.0 theme, including Dawn, Horizon and the themes in the Shopify Theme Store built on 2.0. On an older (vintage) theme, sections can only be added to the home page from the theme editor.

Do I need to know how to code?

No. You describe the section and change it in the theme editor afterwards. If you do write code, the output is plain, readable Liquid you can edit like anything else in your theme.

Is this a Shopify app?

No. Klorr is where you write and refine the section; the result is a file in your theme. Nothing is installed in your store and nothing runs from Klorr's servers when a customer visits.

Does the section keep working if I stop using Klorr?

Yes. The code lives in your theme, not with us. There is no runtime, licence check or watermark to remove.

How is this different from ChatGPT writing Liquid?

A general chatbot often invents filters and settings that Shopify rejects, and leaves the schema to you. Klorr is trained on how real Shopify sections are built, checks the output against the schema rules the theme editor enforces, and keeps every piece of content editable as a setting.

Get the whole section written for you

Describe the section you want. Klorr writes the Liquid, the CSS, the schema and every theme-editor setting — code that lives in your theme and stays yours.