Skip to content

Accent colour

@App(accentColor) gives the shell the app’s brand colour, for example @App(accentColor = "#D2232A"). Mateu uses it the way Redwood uses a custom theme’s accent colour.

Every section title gets a Section dash: a short rule under the heading that marks where the section starts. Its colour is the app’s accent. With no accent it takes the theme’s primary colour, as Redwood does when no accent is assigned. The fold-out panels’ titles carry the same dash.

@App(accentColor = "#D2232A")
public class MyApp { ... }

The accent also paints the welcome hero’s background (a deep tone of it) and the console name in the menu band, in the light theme only.

Redwood’s texture strip, the decorated band at the foot of a page header, is Oracle’s own signature: each Oracle product family has its own colours and textures, and the strip tells the user whose product they are in. Redwood’s cobranding guidelines remove it as soon as a customer brings their own brand: “visual elements like the strip and data textures are removed to avoid conflicting branding”, and the customer’s accent colour goes to the Section dash instead.

A Mateu app is never an Oracle product, so Mateu follows that rule and draws no strip.

The Redwood renderer is unaffected. It shows Spectra’s page headers exactly as Spectra draws them.

PropertySet byUsed for
--mateu-accentthe shell, from accentColorthe dash, the hero, the console name
--mateu-section-dash-coloryour CSSthe Section dash only, overriding the accent
--mateu-page-band-h, --mateu-page-band-imageyour CSS onlyan optional decorative band under the page header. Mateu never sets them

An app’s own CSS can set --mateu-accent instead of declaring accentColor.