With IntelQI Theme
IntelQI Theme is the Frappe app that draws the desk in the design system. intelqi-ui draws your apps. On a site with both, the desk, the portal pages and the apps look and behave as one.
| Drawn by | Installed with | |
|---|---|---|
The desk (/app) | IntelQI Theme | bench get-app, or required_apps |
Portal and website pages (login, /me, web forms) | IntelQI Theme | the same app |
| Your apps (Vue, PWA) | intelqi-ui | npm install intelqi-ui |
To make every client app bring the theme with it, name it in the app's hooks.py:
required_apps = ["intelqi_theme"]One palette
The palette lives here. intelqi-ui/tokens/desk.scss is generated from it (yarn tokens:desk) at the standard look, and the theme takes its copy with npm run sync-tokens. A palette change is made once, in intelqi-ui, and released to both.
The site's brand
A site chooses its accent, gradient, logo and font in IntelQI Theme Settings. Apps take them without any code:
- On a page Frappe renders (the portal, a Jinja page), the theme writes the settings into the page as
window.intelqi_theme_settings, before any script. - Anywhere else,
IntelQIProviderasks the site (/api/method/intelqi_theme.boot.site_look, open to signed-out visitors too) and applies the answer.
On a site without the theme, or with it off, apps keep the design system's own brand. An app that gets the settings its own way hands them over with setSiteLook(settings).
Each person's look
The theme tells apps where the person's choices are kept in the browser, so their Custom corner is one across the desk and every app.