Skip to content
nexubDesign System
v11.9.0

Foundations

Marketing mode

Marketing pages need more energy than an app: a gradient hero, a glowing main button, cards that lift, numbers that count up. Marketing mode adds that on the same tokens and components, the way Material serves both Google’s apps and its marketing pages. It is opt-in: everything applies only under data-mode="marketing", so an app that never sets it looks exactly as before.

Turn it on

CSS
/* CSS, after your theme files */
@import "@nexub/themes/marketing";

<html data-mode="marketing">   // or any wrapper

The sections live in @nexub/marketing; see the marketing page example and Next.js and server components.

What changes

PieceIn marketing modeElsewhere
Button variant="hero"Primary gradient (tones 45 → 40), glow, 2px spring liftA filled button
Card variant="showcase"24px corners, soft shadow, 6px lift; accent adds a product top edge and tintA flat card
EyebrowChip variant="gradient"Primary-tinted gradient; the live dot pingsA soft chip; still dot
Headingsdisplay roles 800, headline roles 700; new display-xl (64/68)Unchanged
MotionReveal, Float, Marquee, rise and count-upStill
CTABandThe hero gradientPrimary band

Values come from the marketing token group in @nexub/tokens (--marketing-*), built from palette tones and roles, so dark mode, data-contrast and data-product keep working. Use container-marketing (1280px) for page width; apps keep container-nexub (1440px).

Divisions and apps

Since 10.1 each of the five Nexub divisions has an accent scale (--color-accent-os-50 … -950, plus -fill and -fill-hover). @nexub/themes/divisions applies one under data-division, and @nexub/themes/products applies an app's under data-product: Leap, Book Hub, PayHub and Founder Hub keep their own scale, every other app takes its division's. Both files are generated from one map in @nexub/tokens (tokens/product/divisions.json), so a new app is one line there. The colours below are proposals: change a scale in tokens/color.json and everything follows.

DivisionAppsAccent (500)Fill, white textHover fill, white textRing on surfaces, light / dark
ospeople, contracts, forms (leap, payub, bookub, founderub keep their own)#4099f1 blue#2563eb 5.17:1#1d4ed8 6.70:14.61:1 / 6.76:1
commercecommerce#f97316 orange#c2410c 5.18:1#9a3412 7.31:14.64:1 / 6.79:1
fintechmoney, capital#22c55e green#15803d 5.02:1#166534 7.13:14.59:1 / 6.78:1
intelligencemind, go#d946ef fuchsia#a21caf 6.32:1#86198f 8.24:14.63:1 / 6.80:1
autonomouscommand-hub, runner#06b6d4 cyan#0e7490 5.36:1#155e75 7.27:14.61:1 / 6.80:1

Fills need 4.5:1 under white text (WCAG AA) and the focus ring 3:1 on every surface; the ring figure is the lowest across all surface roles. The token tests check both at every contrast level. Aliases book-hub, payhub and founder-hub work as data-product values. On a division page, set division on Hero, SectionHeader, ProductGrid, ProductCard and CTABand.

Guidelines

  • Gradients in three places only: the hero backdrop, the main button and the CTA band.

  • At most one glowing button per screen. Pair it with an outlined button, never a second hero.

  • Product accents only for product content: a Payub testimonial, the Bookub card. Not for decoration, and never two accents on one card.

  • A motion budget: one entrance per section (rise or Reveal), at most two floating elements in view, one marquee per page plus the footer’s. Loops pause on hover and focus, and everything stops under reduced motion.

  • The page keeps one h1: the Hero’s title. Sections use h2.

Accessibility

  • White on the hero gradient is at least 5.35:1 (tone 45) and 6.45:1 (tone 40); a token test checks it. Tone 50 failed at 4.48:1 and is not used.

  • Coloured stat numbers use the accent roles, AA on the page surfaces in light, dark and high contrast.

  • The focus ring is an outline outside the button, so it stays visible over the gradient.

  • Count-up and Reveal never hide content in the server HTML: they only act on content below the fold once JavaScript runs. Screen readers always get the real number.

  • Marquee pauses on hover and focus; its repeated copy is aria-hidden and inert.