Migrating from VCC UI
@volvo-cars/css is the direct replacement for VCC UI and is designed to work alongside it, so you can adopt it incrementally.
Decision framework
Section titled “Decision framework”Use the following guidelines to decide how to handle VCC UI usage in your codebase:
🟢 All new development should use @volvo-cars/css
As of v1.0, teams should not implement any new components or features using
VCC UI.
🟠 Existing features may keep using VCC UI — but major
changes should use @volvo-cars/css
@volvo-cars/css is designed to work alongside VCC UI. Whenever you make a
change to an existing VCC UI component, that change should be made with
@volvo-cars/css going forward. If the component is expected to live long
term, consider migrating it entirely. Components using Fela, including those
that use VCC UI components, don’t interact well with React Server Components
and may prevent you from using the latest Next.js features.
🔴 Near end-of-life apps and pages can stay on VCC UI
Some older applications and pages are no longer actively worked on or promoted. It often wouldn’t make commercial sense to migrate those.
Migration approach
Section titled “Migration approach”- Install
@volvo-cars/cssalongside VCC UI. See the installation guide. - Migrate component by component. Start with the simplest, most isolated components and work outward.
- Use the flight rules for guidance on handling visual differences and edge cases.
- Enable linting. Add
@volvo-cars/eslint-plugin-csswith thedeprecated-classrule to catch issues early. - Remove VCC UI from a page or application once all its components have been migrated.
Related guides
Section titled “Related guides”- Flight rules — Practical decision-making guidance for migration scenarios.
- VCC UI Text → CSS typography — Mapping old
<Text variant="...">names to current classes. - CSS 0.x → 1.0 — Upgrading between CSS package versions.