Эта страница пока недоступна на выбранном языке (Русский), поэтому показана на английском.
How business themes work
A theme is data: palette, angle, radius, light/dark, two fonts, a home layout and an artwork style — applied to the branding settings.
zmle ships business types (cafés, salons, pharmacies, fit-out companies …), each with at least three themes. A BusinessSpec holds the wording, apps, website switches and sample content; a ThemeSpec is a complete look. Both are data in src/lib/business/data/*.ts.
| ThemeSpec field | Meaning |
|---|---|
id | Globally unique, kebab-case, starts with the business id: coffee-shop-roastery |
name, mood | Display name and one line about the feeling and who it suits |
mode | light or dark |
palette | { from, to, accent } hex colours; from must read well as white-on-colour (buttons) |
angle | Gradient angle 0–360 |
radius | 0.25rem, 0.5rem, 0.75rem, 1rem or 1.5rem |
fonts | { display, body } — names from THEME_FONTS in src/lib/business/fonts.ts |
layout | Home recipe: classic, showcase, minimal, bold or editorial |
art | Generated artwork until real photos are uploaded: blobs, grid, waves, rings, stripes, dots |
Applying a theme (Admin → System → Settings → Business & themes, /admin/business) writes the branding settings and can rebuild the home page in the theme's layout. The previous home page is kept and can be restored.
export function themeBranding(t: ThemeSpec) {
return {
primaryFrom: t.palette.from,
primaryTo: t.palette.to,
accent: t.palette.accent,
gradientAngle: t.angle,
radius: t.radius,
defaultTheme: t.mode,
fontDisplay: t.fonts.display,
fontBody: t.fonts.body,
};
}Written from: src/lib/business/types.ts, src/lib/business/preset.ts, src/lib/business/apply.ts, src/lib/business/fonts.ts, src/lib/help/articles.ts