Dark Mode Finally Looks Like You: Per-Style Accents Arrive in CanvasXpress

If you've ever flipped a CanvasXpress dashboard into dark mode and felt like something was missing, you weren't imagining it. Until now, switching to the dark widgets theme quietly flattened every visual style into the same shade of indigo. Your carefully chosen brand palette — the blue of cx, the purple of bms, the saturated hues of colorful — all converged into one look the moment the lights went down. Only colorful's per-item accents stood out, and even those weren't tuned for a dark background.

With this release, that's no longer the case. Every CanvasXpress preset now carries its own identity into dark mode.

The Problem With "One Dark Palette"

CanvasXpress ships with a family of built-in UI styles — cx, modern, stripped, old, bms, colorful, rdc, and ngs360 — each with a distinct accent color used for borders, highlighted controls, focus rings, active table cells, and more. In light mode, these differences are obvious and intentional: they're how teams signal "this is the BMS dashboard" versus "this is the RDC dashboard" at a glance.

But the dark theme previously treated all of that as one shared surface, including the accent family itself. Toolbar highlights, focus outlines, selected cells — all of it rendered in the same indigo regardless of which style was active. The practical effect: a user could not tell which preset they were looking at once dark mode was on, and custom brand accents disappeared entirely.

What Changes for You

Now, each preset's dark-mode accent is derived from its own light accent, not borrowed from a shared default. The hue and saturation of your style's identity color are preserved; only the lightness is adjusted so the accent reads clearly against the dark surface — targeting the same contrast ratio that the default modern style has always had in dark mode (roughly 5.6:1 for accents and borders, 6.4:1 for accent text and focus rings). That means:

Notably, the modern style's dark mode is pixel-for-pixel unchanged — it was already the reference point the new derivation targets, so there's zero visual disruption for anyone currently using the default style.

Seeing It in Practice

You don't need to do anything special to get per-style dark accents — they come from the same configuration you're already using to pick a UI style and theme. A chart constructed the normal way:

var cx = new CanvasXpress(target, data, config, events);

will automatically carry its style's accent into dark mode, wherever your config selects a UI style and a dark widgets theme. If you later want to inspect what was actually resolved — say, to confirm which accent values are in effect — you can always call:

var config = cx.getConfig();

and look at the resolved values rather than guessing.

If you're experimenting with different presets, a quick way to compare them is to build the same chart under each style and toggle the widgets theme between light and dark, watching how the toolbar, focus rings, and selected table cells shift. Because each preset now publishes its own dark accent as a distinct value, you can also override it at the host level with CSS custom properties if you want a one-off deviation from your style's default — useful for a single dashboard that needs to diverge from the rest of your deployment without touching the underlying style.

Why This Matters

Dark mode isn't just an aesthetic toggle anymore — it's often the default for long dashboard sessions, embedded analytics tools, and anything viewed in a low-light environment. Losing your visual identity the moment a user enables dark mode undermines both branding and usability: if every dashboard looks identical in the dark, users lose a key visual cue for orientation.

This change closes that gap. Your style choice is no longer cosmetic only in daylight — it's consistent everywhere your charts are viewed, while still meeting the contrast expectations users rely on for readability. Whether you're running a single branded instance or managing multiple presets across different product lines, dark mode now reflects the same design decisions you made for light mode.

Try It

If you maintain multiple CanvasXpress deployments with different UI styles, it's worth revisiting your dark-mode screenshots: you should now see each style's accent color carried through, rather than a single shared indigo. For teams that previously avoided the dark theme because it erased branding, this is the moment to turn it back on.