Documentation / How-to guides
Layouts, themes and menus
Choose the frame around your pages, customise a layout, fill its placeholders, arrange the menu and set the theme and the application icon.
Applies to Glyphox 1.0.10
Before you begin
- A solution with a web module.
The appearance of a web application is set in three places: a layout frames each page, the menu lists its pages, and the theme sets its colours. Each is part of the model, so every change appears in the diff, and changing any of them leaves the pages, routes and actions as they are.
Choose a layout
Open Solution Settings → Appearance → Shell and select one of the built-in layouts.
Every web module uses the solution's layout unless it sets its own in Module Settings → Appearance → Shell. A page can use a different layout from its module: set Layout in the page's Properties, or drag a layout from the Layouts section of the page designer's palette onto the page. Pages that share a layout keep one instance of it as people move between them.
Customise a layout
The built-in layouts are components of the Glyphox UI library. In the Solution tree they are listed under the module's References, in @glyphox/ui. Select one and, in its Properties, select Customise….
Glyphox copies the layout as an editable .tsx component, such as Sidebar Layout, into a library module named after the solution, such as Acme Service Desk UI. It creates that library when it does not exist and references it from the module. Set as Default makes a layout the module's default.
Any component that takes content can serve as a layout. Turn on Layout in the component's Properties, and it is listed under Layouts in the page designer.
Fill the placeholders
A layout draws placeholders, and each web module decides what fills them. The built-in layouts have Header, Menu and Actions, and Content, which is the page. The Minimal layout has Header and Actions only.
Open Module Settings → Appearance → Layout. It shows the Default layout and, under Placeholders, what fills each one. By default, Header shows the module's name, Menu shows the module's Menu component and Actions shows its User Menu component. Each placeholder takes one of the module's components or stays empty, and a page can set its own in its Properties.

Every new web module starts with the Menu and User Menu components. Menu lists the module's menu entries and adapts to the layout around it: a list down a sidebar, a row across a top bar, and a button that opens the entries on a narrow screen. User Menu shows the signed-in user, sign-in and sign-out, and the light and dark switch. Both are ordinary components that you can edit.
Arrange the menu
A page with a top-level route is listed in the menu automatically. The Menu section of a page's Properties sets whether it is In the menu, and its Section, Icon (a lucide icon name), Order, place On a phone and Badge, an expression such as a count of open tasks.
Module Settings → Appearance → Shell → Menu lists every entry in order. Drag a row, or use its arrows, to reorder the entries. Add to the menu adds a hidden page, an external link or a client action that takes no inputs.
On a phone, the menu is a Tab bar by default, with the first entries at the bottom and the rest under More, or a Drawer opened from the top bar. On a tablet, the sidebar is an Icon rail by default, or a Full sidebar. Both choices are under the layouts on the Shell screen.
Set the theme
Open Solution Settings → Appearance → Theme. Each decision is a row of pictures rather than colour codes.

:root and .dark block.Undo reverses any change made in the pane, and Save As… keeps the current colours as a saved theme. Applying a theme over colours that nobody has saved asks first whether to save them.
The Customise colours screen reports any text that is hard to read, in light or in dark, and offers Fix, which adjusts that colour until it reaches a contrast ratio of 4.5:1. The presets themselves are never changed.
A module can keep the solution's theme or use colours of its own, in Module Settings → Appearance → Theme.
The light and dark switch
The application shows a Light, Dark and System switch by default. To keep the application in the scheme set under Appearance and remove the switch, turn off Show the light and dark switch in Solution Settings → Appearance → Shell.
Ask the Assistant
The Assistant and a connected coding agent can make every change on this page through their tools: choose or customise a layout, fill its placeholders, arrange the menu, and apply or save a theme.
If a step fails, see Troubleshoot the first run or contact support.