Documentation menu

Change the look (no code)

Admin panel → Settings → Branding restyles the app. Changes reach the app the next time it starts (it reads them from GET /api/v1/config).

Setting Options What it changes
Theme preset Fresh, Classic, Bold, Calm, Editorial A starting point: colors, font, corners, layout, card style and how the color palette is derived
Layout Fresh, Bold, Editorial How the home screen, the provider profile and the bottom bar are arranged (see below)
Primary / secondary color any #RRGGBB Buttons, links, highlights; in light mode your exact colors are used
Font Plus Jakarta Sans, Inter, Outfit, DM Sans, Nunito, System All text in the app
Corner style Sharp, Rounded, Pill Buttons, cards, inputs, chips, sheets
Theme mode System, Light, Dark Users can still pick their own in the app's settings
Logo, dark logo, icon, splash images Shown in the app and on web pages

Picking a preset fills in the color, font, corner and layout fields; change any of them afterwards, for example the Bold layout with your own colors. Card style (soft shadow, outline or filled) and the Editorial preset's warm page background come from the preset only.

Layouts

The layout changes the arrangement, not the colors: colors, font and corners apply on top of any layout. Other screens (booking, chat, orders, settings) look the same in every layout and follow the colors, font and corners.

Layout Home Provider profile Bottom bar
Fresh Location header, search, category grid, post-a-job banner, provider cards Cover band, centered card, stats row, service list Standard tab bar
Bold Gradient hero with a big question and search, category chips, swipeable provider cards Gradient band, overlapping card with stat tiles, round book buttons, gradient "Request a quote" pill Dark floating pill; the current tab shows its label
Editorial Logo and location, two-tone headline, outlined search, pastel category tiles, flat provider list Square photo, facts table, ruled service list with prices Plain bar with an accent dash under the current tab

Screenshots of each layout in light and dark mode are the goldens in mobile/test/goldens/layouts/ (regenerate with flutter test test/goldens/layout_styles_golden_test.dart --update-goldens). The concept mockups they came from are in docs/design/concepts/.

Where the values live

  • docs/design/tokens.json lists the presets, fonts, corner sizes, spacing and type scale. Tests in the backend, the app and the admin fail if their copies drift from it:
    • app: mobile/lib/core/theme/theme_presets.dart, app_theme.dart
    • admin: admin/src/lib/theme-presets.ts
    • backend: SettingsSchema::THEME_PRESETS, FONTS and LAYOUTS
  • The color used before the config loads (first launch, offline) is set by the rebrand script (primary_color in rebrand.yaml, see rebrand.md).

Add a preset or font

A preset can point at any existing layout. A new layout needs code: a LayoutStyle value in the app, then its home, provider profile and bottom bar (home_layouts.dart, provider_profile_layouts.dart, shells.dart), and the same steps as a preset below.

  1. Add it to docs/design/tokens.json.
  2. Mirror it in the three places above. For a font, put the .ttf files (weights 400, 500, 600, 700) in mobile/assets/fonts/<Family>/ and declare them in mobile/pubspec.yaml.
  3. Run the tests: php artisan test, flutter test, npm test.

Make the app smaller

Each font family adds 0.2 to 1.3 MB. Delete the families you won't offer from mobile/assets/fonts/ and pubspec.yaml, and remove them from the three lists above. "System" needs no files.