মূল কনটেন্টে যান
১৪ দিনের ফ্রি ট্রায়াল, কার্ড লাগবে না৯টি ভাষা১৭৬টি ব্যবসার ধরন · ৫০টি অ্যাপ
BN· USD
লাইভ ডেমো চালিয়ে দেখুনফ্রি ট্রায়াল শুরু করুন

এই পেজটি এখনো বাংলা ভাষায় পাওয়া যায় না, তাই ইংরেজিতে দেখানো হচ্ছে।

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.

  • about 7 min

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 fieldMeaning
idGlobally unique, kebab-case, starts with the business id: coffee-shop-roastery
name, moodDisplay name and one line about the feeling and who it suits
modelight or dark
palette{ from, to, accent } hex colours; from must read well as white-on-colour (buttons)
angleGradient angle 0–360
radius0.25rem, 0.5rem, 0.75rem, 1rem or 1.5rem
fonts{ display, body } — names from THEME_FONTS in src/lib/business/fonts.ts
layoutHome recipe: classic, showcase, minimal, bold or editorial
artGenerated 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.

src/lib/business/preset.ts — theme → branding settings
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