This is a reference for building a custom website by hand. Custom websites use Liquid templates, Tailwind CSS and plain JavaScript. If you'd rather not write code, see Build a custom website with an AI tool.
Files
Each file replaces one part of the standard booking site. Parts without a file stay standard.
| File | What it replaces |
|---|
layout.liquid | The frame around every page: header, {{ content }}, footer |
pages/index.liquid | The home page, / |
pages/services.liquid, pages/services/[slug].liquid | The services page and a single service |
pages/locations.liquid, pages/locations/[slug].liquid | The locations page and a single location |
pages/members.liquid, pages/reviews.liquid, pages/gallery.liquid, pages/about.liquid, pages/login.liquid | Those pages |
pages/[slug].liquid | Your custom pages from Appearance › Custom Pages |
pages/careers.liquid, or any other name | A new page at /careers. A title and description at the top set its search engine texts. |
components/{name}.liquid | A section, like header, footer, hero, about, booking-banner, services, locations, members, reviews, gallery, or your own component |
flow.liquid | Optional frame around the booking flow and other flows |
styles/*.css | Your CSS. Tailwind @apply works. |
scripts/*.js | Your JavaScript |
theme.json | Fonts, colors and your images |
File names use lowercase letters, numbers, dashes and underscores.
Fonts and colors
theme.json with "tokens": "salon" follows your colors and corner radius from Settings › Appearance › Theme. To use your own, set every token: heading and body fonts (Google Fonts), the radius, and every color for light and dark mode as #rrggbb. Missing tokens are listed as errors, and the website can't be published until they're fixed.
Variables
Every page can use your salon's live data. Never type it into the code, so it stays up to date.
| Variable | What it holds |
|---|
salon, brand | Your salon, and its name, logo and tagline |
settings | Your settings, for example settings.company.contactDetails.phoneNumber |
workingHours | Opening hours, each day with isOpen, isToday and its periods |
socialLinks | Your social profiles |
services, categories, servicesByCategory | Your services, also grouped by category |
locations, members, reviews, reviewsOverview | Your locations, team members and reviews |
service, location, page | On a single service, location or custom page |
client | The signed-in client, or nothing |
urls | Links to booking, sign-in, the client's appointments and the standard pages |
request | The current path, language and today's date |
Services, locations, members and reviews have a display object with ready-made texts, like service.display.priceText and location.display.directionsUrl.
| Tag | What it does |
|---|
{% component 'hero' %} | Shows a component. Without your own file, a standard section shows the standard design. You can pass values, like {% component 'service-card', service: service %}. |
{% native_render 'login' %} | Shows a live Softalon part, like login, menu (the mobile menu), account_menu, notifications, services or reviews. |
if, for, case, assign, capture | Standard Liquid |
Filters
| Filter | Example |
|---|
money | {{ service.price | money }} in your currency |
duration | Minutes as text, like 1 h 30 min |
time, day_name | Times in your salon's format, day names |
booking_url | {{ service | booking_url }} opens booking with that service |
asset_url | {{ 'hero.jpg' | asset_url }} for an uploaded image or video |
t | Softalon's texts in the visitor's language, like {{ 'services.title' | t }} |
icon | A Lucide icon, like {{ 'map-pin' | icon: 'size-4' }}, or a brand logo like {{ 'brand:instagram' | icon }} |
rating_stars, stars | Star ratings |
rich_text | Bold, italic and line breaks from your texts |
Values are HTML-escaped. Add | raw to print HTML, for example for a custom page's content.
Styling and JavaScript
- Tailwind classes work with your colors, like
bg-primary and text-muted-foreground, plus dark:.
- Write every class in full. A class built from a variable, like
bg-{{ color }}, isn't generated. Use an if instead.
<script> tags and on… attributes in Liquid files are removed. Put JavaScript in scripts/*.js. It can use window.softalon for availability, booking links, navigation and toasts.
- Simple interactions need no JavaScript:
data-toggle, data-open and data-close open and close an element, styled with open:.
- A custom header needs a mobile menu, and a custom
pages/login.liquid needs {% native_render 'login' %}.
- Your CSS only styles your own markup, not the live Softalon parts.
When a page fails
If a page can't be shown, for example because of an unknown icon, a missing file or because it takes longer than 1.5 seconds, clients see the standard page instead.