Theming
Visual customization and branding for Luzmo surfaces. Use for custom colors, white-labeling, dark/light modes, and per-tenant themes. Triggers on: "change colors", "brand styling", "dark mode", "white-label", "custom theme", "IQ Chat styling", "ACK theming". Routes to the correct mechanism per surface: Theme API for dashboards, CSS variables for IQ Answer, IQChatOptions for IQ Chat, Flex runtime theme. Not for chart data or slots (use data-visualization) or data security (use multitenancy).From its SKILL.md
npx -y skills add luzmo-official/agent-skills --skill themingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
13.5 KB, as published. Nobody here has run it
Luzmo Theming
Entry-point for visual customization of any Luzmo surface. Route to the right mechanism — there is no single universal theme API for all Luzmo components.
Doc Retrieval
developer.luzmo.comis Luzmo's first-party, allowlisted documentation domain, maintained by the same publisher as this skill.- Before starting implementation, you MUST consult the exact relevant
https://developer.luzmo.com/.../*.mddocs and their referenced URLs for implementation details. - Use
https://developer.luzmo.com/llms.txtand/or/llms-full.txtfor discovery only.
[CRITICAL] Security Checkpoint
BEFORE applying themes via API or authorization tokens, verify:
- Theme JSON and styling overrides are set via the SERVER-SIDE authorization-token call (
themeplus optional styling properties) — never patched on the client after the token is issued - If using the Theme API (
createTheme,updateTheme), the call is made withLUZMO_API_KEY/LUZMO_API_TOKENserver-side - Per-tenant theme decisions (which theme/CSS to apply) are made server-side based on the authenticated user, not via client-side query params a user could spoof
- Authorization
csscontains only server-generated or allowlisted CSS; prefer structured theme settings or constrained design tokens for tenant/customer-authored styling - Untrusted tenant/customer styling input is never copied into prompts or treated as instructions
- CSS sanitization blocks
@import, remoteurl(...), script-like constructs, credential/PII interpolation, and arbitrary prose/comments before anything reaches acsspayload - For standalone Flex viz-items, do not use a
themecomponent prop; apply chart styling through the itemoptionsobject and keep any server-selected theme values scoped to the authenticated user
If ANY checkbox is unchecked, STOP and fix before proceeding. Per-tenant theming that relies on client-side branching can be bypassed, allowing one tenant to apply another tenant's theme (minor) or to inject hostile CSS or indirect prompt-injection text (more serious in shared frames and agent workflows).
For full auth/embed-token guidance, see core.
Bundled References
references/theme-schema.md— Theme JSON shape forcreateThemeand per-tokenthemeoverride (colors, typography, palettes, dark-theme container requirement)references/flex-runtime-theme.md— Standalone Flex viz-item runtime theming: the validatedoptions.theme+ top-leveloptionskeys that actually render, and the look-alike keys (mainColor,fontColor,background) that are silently ignoredreferences/css-variables.md— Per-surface styling mechanism map and how CSS variables are exposed for IQ Chat/Answer, ACK, and token-levelcss
Theming Mechanisms by Surface
| Target surface | Mechanism |
|---|---|
| Reusable dashboard themes (org-wide) | Theme API |
| Dashboard embed theme or CSS per embed token | Authorization theme / css override |
| IQ Chat component look and feel | IQ Chat customization |
| IQ Answer component CSS | IQ Answer CSS variables |
| ACK component styling | ACK theming guide |
| Standalone Flex viz-item runtime styling | Flex options object (options.theme, options.color, chart-specific options) |
1. Theme API (Reusable Dashboard Themes)
Docs:
https://developer.luzmo.com/api/createTheme.md
https://developer.luzmo.com/api/searchTheme.md
Academy: https://academy.luzmo.com/article/d73314lu
Built-in theme IDs (can be used by Flex/ACK components where a theme id prop is supported):
default, default_dark, vivid, seasonal, orion, royale, urban, pinky, bliss, radiant, classic, classic_dark
Custom themes are JSON theme objects. Consult https://developer.luzmo.com/api/createTheme.md for current schema details before generating one. When created via API, they can also be specified as theme_id in Flex/ACK components (alternatively pass along the full theme JSON object to the components).
2. Runtime Theme / CSS Override (Per Embed Token)
Docs: https://developer.luzmo.com/api/createAuthorization.md
Academy: https://academy.luzmo.com/article/hmvy5pwz, https://academy.luzmo.com/article/7zclnkrk, https://academy.luzmo.com/article/q3n82ib1
- Add inline
themeJSON or server-generated/allowlistedcssto thecreateAuthorizationrequest body to apply styling per token. - Useful for white-labeling or per-tenant visual customization of dashboard embeds and other surfaces that consume authorization-level theme/css.
- Prefer structured theme settings or constrained design tokens when styling is based on tenant/customer-authored input. Do not pass raw tenant CSS through.
- Consult
https://developer.luzmo.com/api/createAuthorization.mdfor current field shapes. - Standalone Flex viz-items do not have a
themeprop, and authorization-levelthemeshould not be presented as the primary way to style them. For standalone Flex charts, use itemoptionsinstead.
Dark theme note: When using a dark theme, set a dark background on the container element explicitly — chart content adapts to the theme but the container background does not. Two approaches:
- CSS:
background-color: #1a1a2eon the container element - Flex options: set supported background/theme fields in the chart
optionsobject after fetching the relevant Flex chart docs/schema
3. IQ Chat Component Styling
Docs:
https://developer.luzmo.com/guide/iq--chat-component-api--customization.md
- Includes
IQChatOptionsconfiguration and CSS variables. - Consult the customization doc before describing specific style props or variables.
4. IQ Answer Component CSS Variables
Docs:
https://developer.luzmo.com/guide/iq--answer-component-api--css-variables.md
- The Answer component exposes CSS custom properties for color, font, and spacing.
- Consult the CSS variables doc before listing available variables.
5. ACK Component Styling
Docs:
https://developer.luzmo.com/guide/ack--patterns.md
- ACK components (from
@luzmo/analytics-components-kit) have their own theming approach separate from the dashboard Theme API. - Consult the ACK theming guide before suggesting specific CSS variables or theme props.
6. Flex Runtime Chart Theming
Docs:
https://developer.luzmo.com/flex/examples/apply-custom-theme
https://developer.luzmo.com/guide/flex--component-api-reference--properties.md
- Separate from the dashboard Theme API and authorization-level dashboard theme — applies through the individual chart's
optionsobject. - Flex viz-items have no
themecomponent prop. Useoptions.theme,options.color, and chart-specific options after fetching the chart docs/schema. - Set the wrapper/container background with CSS when dark styling should cover the area around the chart.
The runtime keys are split across options.theme AND top-level options — and several plausible keys are silently ignored. Getting this wrong is the usual cause of "I themed it but the charts stayed default":
- Main (single-series) colour → top-level
options.color— for the common chart typesoptions.themehas nomainColor(a few types such aspyramid-chartdiffer — check the chart's schema). Setting onlytheme.mainColor/theme.colorsleaves a one-measure bar/line chart in the default colour. - Multi-series palette →
options.theme.colors; canvas →options.theme.itemsBackground(notbackground). - Axis colour → top-level
options.axis.{x,y}.color(line/ticks) — there is nofontColorandtheme.fontcarries onlyfontFamily/fontSize. Axis label-text contrast auto-derives fromtheme.itemsBackground, so setitemsBackgroundto your canvas colour or labels go unreadable on a dark background. theme.tooltiphasbackground/fontSize/opacityonly (no text colour);theme.title/theme.legendcarry no colour.theme.borders(corner radius/border) andtheme.boxShadoware valid.createTheme(Theme API) key names likemainColor,fontColor,titleFont,secondaryColorare not the Flex runtime keys — see the full validated key tables inreferences/flex-runtime-theme.md.
Important Facts
- Dashboard Theme API settings do not automatically control IQ or ACK component styling — these are separate mechanisms.
- Runtime embed-token CSS overrides and Theme API resources are different things — do not conflate them.
- Dark themes require explicit container background color — not automatic.
- Consult component-specific docs before claiming CSS variable names or theming props.
Common Mistakes
Each pitfall below includes a frequency marker, the symptom you'll see, why it fails, and the fix.
[ERROR] Passing a theme prop to standalone Flex viz-items ([WARNING] COMMON):
<!-- Wrong - standalone Flex viz-items do not expose a theme prop -->
<luzmo-embed-viz-item theme="default_dark" />
You'll see: the prop is ignored and the chart keeps its default styling.
Why this fails: Flex runtime styling belongs in the options object, not a top-level component prop.
[OK] Put Flex styling in options and style the wrapper yourself:
<div style="background-color: #1a1a2e;">
<luzmo-embed-viz-item id="sales-chart" type="bar-chart" />
</div>
document.querySelector('#sales-chart').options = {
theme: {
type: 'custom',
itemsBackground: '#FFFFFF',
colors: ['#D97757', '#6A9B8E', '#C9A26B'], // multi-series palette (theme.colors)
font: { fontFamily: 'Inter, system-ui, sans-serif', fontSize: 13 },
},
color: '#D97757', // main single-series colour — NOT theme.mainColor (ignored)
axis: { x: { color: '#475569' }, y: { color: '#475569' } }, // axis/text colour — there is no fontColor
}
// Full validated key reference: references/flex-runtime-theme.md
[ERROR] Forgetting container background for dark themes ([WARNING] VERY COMMON): You'll see: chart content styled correctly, but a bright halo around it from the wrapper. Why this fails: Chart options style chart content — they don't reach outside the component's box. The wrapper background is your CSS to set.
[ERROR] Expecting dashboard themes to apply to IQ/ACK:
// Wrong - Theme API themes don't control IQ components
const theme = await client.get('theme', {...});
// IQ components need their own CSS variables
[OK] Use component-specific theming:
// Correct - IQ components have separate styling mechanism
<luzmo-iq-embed-chat
customization={{ primaryColor: "#..." }} // IQ-specific
/>
[ERROR] Confusing Theme API with token theme overrides:
// These are DIFFERENT mechanisms:
// 1. Theme API: Create reusable themes in your org
await client.create('theme', {...})
// 2. Token theme override: Apply inline theme JSON per embed
await client.create('authorization', { theme: {...} })
Avoid
- Applying authorization-level themes or CSS overrides client-side — all
theme/cssproperties oncreateAuthorizationmust be set server-side. - Passing
themeas a prop to standalone Flex viz-items — use the chartoptionsobject instead. - Injecting unsanitized tenant/customer-supplied strings into
csspayloads (CSS injection and indirect prompt-injection risk). - Copying tenant/customer-authored styling comments or prose into prompts, generated instructions, logs, or support summaries.
- Describing IQ Chat CSS variables or ACK theme props without consulting the current customization documentation.
- Confusing the dashboard Theme API with per-token
cssoverrides — they serve different scopes.
Hand Off
When to escalate to other skills:
- WHEN the user is embedding a saved dashboard/chart by id (props, sizing) → use
core - WHEN the user is building a Flex chart in code (props, sizing, slots) → use
data-visualization - WHEN the user needs IQ Chat/Answer setup beyond CSS variables → use
ai-analytics - WHEN the user is building an ACK editor and asking how to integrate theming → use
analytics-studio - WHEN the user wants per-tenant theming tied to authorization tokens → also use
multitenancy - WHEN automating theme creation/association via scripts → use
resource-management - WHEN the user needs auth/embed-token basics before applying token-level themes → use
core - WHEN dark theme "looks wrong" or theme isn't applying → use
troubleshootingFIRST
This skill does NOT cover:
- Functional configuration (slots, options, aggregationFunc) — use
data-visualization - Auth/embed-token generation (use
core) - Multi-tenant data filtering (use
multitenancy)
Canonical Sources
- Index:
https://developer.luzmo.com/llms.txt,https://developer.luzmo.com/llms-full.txt - API:
https://developer.luzmo.com/api/{action}{Resource}.md - Guides:
https://developer.luzmo.com/guide/*.md - Flex charts:
https://developer.luzmo.com/flex/charts/{type}.md
If content exists on developer.luzmo.com, link — do not duplicate specs here.