Fintech

Rebuilding a payments dashboard for 2M+ daily users

How Meridian Pay's platform team replaced a 400kB component library with CSS Vars Framework and cut their dashboard's load time by 40% in a single quarter.

Client

Meridian Pay

Industry

Financial Services

Timeline

Q1 2026 · 11 weeks

Team size

4 engineers

Meridian Pay dashboard

40%

faster largest contentful paint

380kB

of CSS & JS removed

0

build-step failures since launch

9

days to full rollout

The problem

Meridian Pay's internal dashboard had grown around a component library that shipped its own runtime theme engine. Every dark-mode toggle, every density setting, meant recomputing styles in JavaScript on every render. As the dashboard grew past 200 screens, interaction latency crept past 300ms on mid-range laptops.

The approach

The team replaced the runtime theme engine with CSS Vars Framework's :root token layer. Dark mode became a single data-theme attribute swap — no JavaScript recalculation, no layout thrash.

"We deleted our theming library entirely. Every color, spacing value, and shadow now lives in one stylesheet, and switching themes is a single attribute change the browser handles natively."

— Dana Whitfield, Staff Engineer, Meridian Pay

The rollout

Migration happened screen-by-screen behind a feature flag over nine working days, verified against Lighthouse budgets on every merge.

Token audit
Layer migration
Dark mode cutover
4
Full rollout
Tech stack before
  • Runtime CSS-in-JS theme engine
  • 380kB component library
  • Custom build step per theme
Tech stack after
  • CSS Vars Framework, single file
  • data-theme attribute toggle
  • Zero build step
Read the docs
Team photo

More case studies