UMAR SAYYAD
Modular monolith
State Farm Drive Safe & Save
Unified a fragmented multi-framework ecosystem under one design system adopted by 60+ teams.
State Farm had hundreds of developers shipping across Angular, Ember, and React with no shared component language. We built the 1x/DXL enterprise design system and the Drive Safe & Save telematics app on top of it — proving the system worked by building a flagship product on it.
Full stack
- React Native
- React
- Redux
- Angular
- Ember.js
- TypeScript
- JavaScript
- Kotlin
- Java
- Storybook
- Material UI
- Firebase
- GraphQL
- .NET
- GitLab
Architecture at a glance
Hover a component to trace what it connects to. Click one to jump to the layer it belongs to.
10 components · 11 connections · drag to pan, pinch or use the controls to zoom
Problem Space
Problem Space
- 400+ developers and designers across State Farm worked on separate projects with no shared component language — velocity was high, consistency was near zero.
- The Drive Safe & Save telematics app existed on mobile but lacked a unified cross-platform architecture, forcing duplicate effort between iOS and Android.
- Customer-facing interfaces varied wildly between products, eroding brand trust and inflating QA cycles by 40%.
- The real constraint was organizational, not technical: aligning Angular, Ember, and React teams behind a single design vocabulary without a rewrite mandate.
State Farm's digital organization had grown fast. Hundreds of engineers shipped features independently across Angular, Ember, and React codebases, and the result was visible: the same button rendered differently in three products, error states were handled inconsistently, and every new team reinvented layout primitives. QA spent more time cataloging visual regressions than testing business logic.
The Drive Safe & Save program — a telematics product that monitors driving behavior through an OBD-II device or mobile app and rewards safe drivers with insurance discounts — needed a mobile experience that felt like the rest of State Farm. But "the rest of State Farm" didn't look like itself.
The deeper problem wasn't a missing app; it was a missing foundation. Any design system that required teams to rewrite their apps would fail. It had to work incrementally, across three frameworks, without a migration mandate.
Architecture
Architecture
- Modular monolith pattern: shared design tokens and a component library distributed as packages, consumed by Angular, Ember, and React apps independently.
- The critical decision was framework-agnostic tokens over framework-specific components — tokens shipped faster and required no migration.
- A unified wrapper-component approach was rejected because maintaining three framework adapters would have tripled the maintenance surface.
We architected the 1x/DXL design system as a modular monolith: a core token layer (colors, spacing, typography, motion) consumed by thin framework-specific packages. Angular teams pulled @1x/angular, Ember teams pulled @1x/ember, and React teams pulled @1x/react. All three read from the same design token source of truth.
The Drive Safe & Save app sat on top of this as a React Native application with Redux state management. We deliberately kept the app as a consumer of the design system rather than a special case — proving the system worked by building a flagship product on it.
The trade-off we took was coverage over depth: we shipped 40 components with 80% visual coverage rather than 100 components with perfect API parity across frameworks. Some teams still had bespoke components, but the visual language was unified within six months.
Tech at this layer
- TypeScript
- JavaScript
- React
- Angular
- Ember.js
- Storybook
- Material UI
Infrastructure
Infrastructure
- Design system packages published to State Farm's internal npm registry via GitLab CI with automated visual regression testing on every merge request.
- Storybook served as both documentation and a living test environment, deployed to an internal CDN for cross-team browsing.
- The early failure was versioning: a breaking change in the token package cascaded to all three framework packages simultaneously, breaking 12 consumer apps in a single morning.
The design system lived in a GitLab monorepo with per-package CI pipelines. Each framework package had its own build, test, and publish step, but all shared the token foundation. Storybook was deployed automatically on merge to main, giving designers and developers a live reference.
The Drive Safe & Save app ran on Firebase for crash reporting and analytics, with Java and .NET backend services behind an API gateway. The mobile build pipeline used Kotlin for Android-specific modules and React Native for the shared UI layer.
The versioning incident taught us to decouple the token package from framework packages using a compatibility matrix — tokens could advance independently, and framework packages declared which token range they supported. That single change eliminated cascading breaks for the remaining eight months of the engagement.
Tech at this layer
- GitLab
- Firebase
- Storybook
Data Layer
Data Layer
- The design token layer was the data model: a JSON schema defining every visual primitive, versioned and published as a standalone package.
- Driving telemetry flowed from the OBD-II device through a mobile SDK into a backend pipeline, with Redux managing client-side state of trip summaries, scores, and discount eligibility.
- Nothing was cached on-device beyond the current trip — privacy by design meant telemetry cleared after upload.
The design system's "database" was a structured JSON token file: every color, spacing value, breakpoint, and motion curve had a canonical name and value. Downstream packages transformed these tokens into platform-specific formats — CSS custom properties for web, StyleSheet constants for React Native.
For Drive Safe & Save, the OBD-II device or phone sensors collected driving events (speed, acceleration, braking, time of day), the mobile SDK batched and uploaded them, and the backend scored each trip. Redux on the client held the current trip state, historical summaries, and discount projections. We deliberately avoided caching scored results on-device because the scoring algorithm was updated server-side and clients needed to always reflect the latest model.
Tech at this layer
- Redux
- TypeScript
- GraphQL
- Firebase
Services
Services
- The design system publishing service: a GitLab pipeline that built, tested, and published three framework packages from a single source.
- The telemetry ingestion service: Java microservices that received driving events, validated them, and queued them for scoring.
- The scoring service was the real complexity — an ML pipeline evaluating driving behavior against actuarial models to produce discount recommendations.
- If the telemetry upload failed, the SDK queued events locally and retried with exponential backoff, ensuring no trip data was lost.
The design system had one critical service: the CI/CD pipeline that ensured every published package was visually regression-tested, semantically versioned, and compatible with its declared token range. We treated this pipeline as a product — it had its own backlog, its own SLOs, and its own on-call rotation.
On the Drive Safe & Save side, the backend was Java and .NET services behind an API gateway. The ingestion service validated incoming telemetry, the scoring service ran driving behavior through ML models, and the notification service pushed discount updates back to the app. The scoring service took the longest to stabilize — edge cases in driving data (tunnels dropping GPS, OBD-II disconnects mid-trip) required months of hardening.
Tech at this layer
- Java
- .NET
- Kotlin
- GraphQL
Interface
Interface
- The design system: a Storybook-driven component library with interactive documentation, prop playgrounds, and copy-paste code snippets for each framework.
- The Drive Safe & Save app: a React Native application with a trip-recording flow, driving score dashboard, and discount tracker.
- Accessibility was enforced at the component level — every Storybook story included an accessibility audit panel via axe-core.
The design system's interface was Storybook itself. Each component had a dedicated page with live examples, prop controls, framework-specific code snippets, and an embedded accessibility audit. Designers used it as a reference; developers used it as a clipboard.
The Drive Safe & Save app followed a three-screen flow: start trip → view live feedback → review score. The dashboard showed historical trips, a rolling safety score, and projected discount savings. Redux managed the state transitions between recording, uploading, and scored states. We held a hard line on 60fps during trip recording — any frame drop during the drive could make users think the app had stopped recording.
Tech at this layer
- React Native
- Redux
- Storybook
- Material UI
- TypeScript
Outcome
Outcome
- The 1x/DXL design system was adopted by 60+ teams across State Farm within its first year, covering 80% of the component surface area.
- Drive Safe & Save saw a 25% increase in user engagement after the redesigned experience shipped.
- QA visual regression tickets dropped by 40% across teams consuming the design system.
- The lesson: ship tokens before components — visual consistency is cheaper than API consistency, and it buys the trust needed to standardize APIs later.
The design system proved that adoption beats completeness. By shipping tokens first and components second, we gave teams immediate value — consistent colors, spacing, and typography — without asking them to rewrite anything. Within a year, 60+ teams had adopted at least the token layer, and 30+ were using framework-specific components.
Drive Safe & Save shipped its redesigned React Native experience with a 25% engagement lift. The app felt like a State Farm product for the first time, and users noticed — satisfaction scores for the telematics program rose alongside engagement.
One thing I would do differently: I would have invested in automated cross-framework visual regression testing from day one instead of month three. The versioning incident that broke 12 apps was entirely preventable with a CI gate that rendered the same component across all three frameworks and diffed the screenshots. We built it eventually, but the trust damage cost us two months of adoption momentum.
Tech at this layer
- React Native
- TypeScript
- Storybook