Skip to main content

Vivid: A Colourful Design for Strutvane Dashboards, Accessible at Every Brand Hue

Soft-shadow cards, a gradient active pill, a sidebar that folds into an icon rail, and gradient charts, with WCAG AA contrast checked at all 360 hues.

Updated 6 min readMarkdown

Not every admin screen lives in the back office.

Some of them get shown to customers. Some are the analytics page your sales team opens in every meeting. Some are product consoles where the first impression matters as much as the data. For those, "calm and grey" can feel a little too calm.

That's what Vivid is for: colour, depth and a bit of personality, without giving up readability or accessibility.


What it is

@strutvane/design-vivid is Vivid, the colourful design for the Strutvane admin UI. Strutvane is an open-source (MIT) TypeScript framework for business (B2B) apps, and its admin is split in two:

  • @strutvane/ui holds what the admin does: screens, tables, forms, filters, the command palette, shortcuts and accessibility. It has no look of its own.
  • A design package holds how it looks.

Vivid is the bold one: soft-shadow cards, a gradient pill for the active page, a sidebar that folds into an icon rail, gradient charts and a split sign-in screen. Light and dark, any brand hue.

Here's how it compares with Crisp, the quiet default:

Crisp (default) Vivid
Feel clean, minimal, quiet colours, dense tables colourful, soft-shadow cards, gradient charts, roomier spacing
Good for back office, ERP, finance, B2B SaaS admin analytics, customer-facing dashboards, product consoles

Why it exists

Two designs prove a point that one design can't: the look really is swappable.

Both Crisp and Vivid implement the same Design contract from @strutvane/ui. So you can switch from one to the other at any time and no screen changes: your resources, custom pages and overrides all keep working. Pick the design that suits your users, not the one your component library happened to ship.

And colourful designs have a well-known weakness: contrast. Bright gradients and brand colours are exactly where text becomes hard to read. Vivid was built to prove that "colourful" and "accessible" can live together, and its tests check that claim at every single hue.

What you get

The look

  • Soft-shadow cards and roomier spacing for a modern dashboard feel.
  • A gradient active pill that makes the current page easy to spot in the sidebar.
  • The icon rail: on screens 1024 px and wider, the sidebar can collapse to a slim 76 px rail of icons. Your choice is remembered per browser. Below 1024 px, the sidebar becomes a drawer.
  • Gradient charts with a five-colour palette led by your brand colour.
  • A split sign-in screen.
  • Light and dark themes, built on OKLCH colours (a modern colour format that keeps brightness consistent across hues).
  • Every slot of the contract: the shell (sidebar, sticky top bar, sign-in, page header), all 16 component skins and four original illustrations.

The pieces

  • Plus Jakarta Sans, self-hosted through @strutvane/design-vivid/fonts.css. No font CDN, so no third-party request on every page load.
  • About 120 curated Tabler icons, the ones an admin needs (navigation, actions, common resource kinds), instead of all ~6,000. Your bundle only carries those. Add more with withIcons().
  • If an icon name is unknown, the sidebar shows the item's first letter instead, so nothing disappears from the icon rail.
  • vividStylesheet() to bake your brand into a static CSS file.

Make it yours

The four public override tokens work on Vivid exactly like on every Strutvane design:

/* resources/ui/theme.css */
:root {
  --brand-hue: 150;                         /* any hue 0–359 stays WCAG AA */
  --font-sans: "Acme Sans", system-ui, sans-serif;
  --radius: 10px;                           /* every corner scales from it */
  --density: 0.9;                           /* controls, rows and spacing */
}

Or pass them in code: <DesignProvider design={vivid} overrides={{ brandHue: 150, radius: '10px' }}>. Invalid values are dropped, never written into your CSS.

The safe hue range is 0–359. All of it. Every text and control pair is checked at every brand hue in 1° steps, in light and dark. Pick any brand colour you like; the contrast holds.

How it fits into Strutvane

@strutvane/framework  →  publishes the API and the manifest
@strutvane/ui         →  turns the manifest into screens (behaviour)
@strutvane/design-*   →  decides how those screens look (Crisp or Vivid)

Vivid passes designConformance() from @strutvane/ui/testing in full: all 15 rules, including every slot, contrast in both themes at every hue, no hard-coded colours, overrides that actually take effect, nothing wider than 375 px, and zero axe violations with no overflow on all nine reference screens. On top of that, its own tests check the dark theme on seven more screens, the icon rail, and the brand overrides.

A quick look

npm install @strutvane/design-vivid

Peer dependencies: @strutvane/ui and React 19.

import { DesignProvider } from '@strutvane/ui/design'
import { StrutvaneApp } from '@strutvane/ui/react'
import { vivid } from '@strutvane/design-vivid'
import '@strutvane/design-vivid/fonts.css' // Plus Jakarta Sans, self-hosted by your bundler

export function App({ nonce }: { nonce?: string }) {
  return (
    <DesignProvider design={vivid} nonce={nonce}>
      <StrutvaneApp apiUrl="/api" appName="Acme" />
    </DesignProvider>
  )
}

Need an icon that isn't in the curated set?

import { IconTruckDelivery } from '@tabler/icons-react'
import { withIcons } from '@strutvane/design-vivid'

export const design = withIcons({ 'truck-delivery': IconTruckDelivery })

Strict Content Security Policy? Vivid never sets an inline style attribute. Either pass your request's nonce to the provider, or turn injection off and serve @strutvane/design-vivid/vivid.css as a file. Both give you byte-for-byte the same styles.

⚠️ This is a 0.2 preview. The APIs may still change before 1.0, planned for January 2027.

Built to be trusted

  • 233 automated tests, including the full conformance suite and contrast checks at all 360 hues in both themes.
  • Coverage minimums of 90% (85% for branches), plus type-level tests that prove misuse fails to compile.
  • Package checks before every release: publint --strict, "are the types wrong" and a tarball content check.
  • CI on Linux, Windows and macOS, on Node 24 and Node 26.
  • Security-reviewed and secure by default: no inline styles, no font CDN.
  • Every release is staged by CI and approved by a human with two-factor authentication, and published with npm provenance.

Try it, and tell me what you think

Next in the series: @strutvane/redis, for caching, locks and rate limits that work across servers. Follow along! 🌈

— Vishwajit VM


Part of the Strutvane series. Strutvane™ is open source under the MIT licence.

About the author

  • Hi, I'm Vishwajit VM, a backend & AI engineer from New Delhi. For 5+ years I've built the parts of apps you don't see: APIs, databases, queues and AI agents, for teams in hiring, real estate, finance, retail and civic tech. My rule is simple: a system should keep working when something goes wrong. Right now I'm a backend developer at SPNX, building an EU VAT-registration platform that runs in production. After hours I'm building Strutvane, an open-source TypeScript framework for business apps (I'm writing about it as a series on my blog, vishwajitvm.hashnode.dev), plus my own products such as DevFlow-AI (self-hosted AI code review) and Hopline (encrypted peer-to-peer file transfer). Day to day I work with Python, FastAPI, Node.js, TypeScript, NestJS, PostgreSQL, Redis, Docker, LangGraph and RAG, and I've shipped plenty of Laravel/PHP and React along the way. Outside work, I'm a part-time photographer. See my work at https://vishwajit-labs-web.vercel.app/

No comments yet. Be the first to comment.