Skip to content
nexubDesign System
v11.9.0

Foundations

Expression: Calm and Vivid

Calm is the default: tonal surfaces and one accent, made for long working sessions. Vivid is an opt-in expressive layer for moments that should feel alive: onboarding, dashboards, consumer screens. It adds an accent gradient, a soft glow, depth tinted with your brand and an aurora, all derived from your colour roles, so it follows dark mode, contrast levels, product brands and seeded themes.

Side by side

Calm

Monthly revenue

$68,420 · up 11%

New

Vivid

Monthly revenue

$68,420 · up 11%

New

Hover the buttons and the card in the Vivid column: the gradient brightens, the glow grows and the card picks up an accent edge.

In an app

Since 10.3 Vivid also reaches the surfaces people look at most in an app. The page title is heavier and its wash panel carries the accent. The active navigation item is tinted and marked by a bar that slides between items. Stat cards lift on hover, bars fade toward the baseline, and rows share one hover tint. Tables and forms get nothing else: they stay calm.

Good morning, Mei

Two bills are due this week.

Saved
S$2,400
12%
Spending by month (Calm)
monthSpent
Jul1,740
Aug2,210
Sep2,004
Oct1,842

Good morning, Mei

Two bills are due this week.

Saved
S$2,400
12%
Spending by month (Vivid)
monthSpent
Jul1,740
Aug2,210
Sep2,004
Oct1,842

The filled main button is the gradient one, so keep it to one per screen and make the other actions tonal. A tonal button takes a tone for a soft, coloured action: <Button variant="tonal" tone="success">.

Category colours

Eight named colours for things that need telling apart but carry no status: projects, teams, spending categories. Each follows a chart series, so a category keeps its colour between a chip and a chart, and every pair is checked for 4.5:1 in light and dark. Use them through the category prop of IconChip, Badge, Avatar and StatCard. Status still uses tone.

blueamberemeraldpinkvioletcyanredlime

<Avatar category="auto"> picks a stable colour from the name, so a list of people is easier to scan.

The product accent

Every Nexub app looks like Nexub. An app is recognised by its icon and name, plus one accent colour in a few fixed places. Set data-product (or data-division) once, with @nexub/themes/products loaded, and these places follow it. Everything else stays on the shared primary.

  • The product icon chip: `<IconChip category="accent">`, and the same on Badge and Avatar.

  • The active navigation item in Sidebar and NavigationRail, with its marker.

  • The page header wash and the welcome banner.

  • Illustrations (from 10.5).

  • Not buttons, links, form controls or charts. Chart colours are tuned to stay apart for colour-blind readers, so a chart keeps its palette in every app.

HTML
<html data-product="payub">   <!-- the whole app -->

Or scope one part of a shared shell:

TSX
<>
  <AppHeader accent="payub" />
  <Sidebar.Root accent="payub">{items}</Sidebar.Root>
  <AppLauncher apps={[{ id: 'pay', name: 'Payub', href: '/pay', accent: 'payub' }]} />
</>

ThemeProvider now accepts every app key in the product map, not only the first four. The four hand-written files (@nexub/themes/leap, /bookub, /payub, /founderub) were removed in 11.0: @nexub/themes/products covers the same keys.

Aurora

Welcome back, Sam

Three invoices were paid while you were away.

Shape and glass

Add data-shape="squircle" to an area for continuous, Apple-style corners where the browser supports CSS corner-shape. Under Vivid, glass surfaces get a specular edge that catches light like a lens; elsewhere add the nx-glass-edge class.

Turn it on

Since 5.0, Vivid is the default: ThemeProvider sets data-expression="vivid" on <html> when the app has not set one. Import the stylesheet after your theme files, and set the attribute in your server HTML too so the first paint is already Vivid.

CSS
@import "@nexub/themes/vivid";   /* after your theme files */
HTML
<html data-expression="vivid">   <!-- the default from 5.0 -->
<html data-expression="calm">    <!-- keep the Calm look -->

Or pass defaultExpression="calm" to ThemeProvider. Without ThemeProvider, set the attribute yourself; a <section data-expression="vivid"> still opts in one area of a Calm app.

Rules

  • Colour and motion go on landmarks and moments: the page header, navigation, key figures, a success. Working surfaces (tables, forms) stay calm.

  • One expressive moment per screen. Use Vivid where emotion helps (a first value, a success, a hero), not on dense tables or forms people fill in all day.

  • Every colour comes from a role, so contrast holds: gradients run between two roles of the same tone, and on-primary text keeps 4.5:1.

  • Text over an Aurora uses on-surface, not on-surface-variant: the colour fields lower the contrast of secondary text.

  • High contrast turns gradients into flat fills and removes the glow. Reduced motion stops the aurora drifting.

  • It changes how components look, never what they do or how they read to assistive tech.