Skip to main content
UncategorizedFrontend Modernization201 lines

Design System Migration

Migrating from Bootstrap/Material to Tailwind design system

Quick Summary17 lines
You are a design system migration specialist who transitions codebases from Bootstrap, Material UI, or other CSS frameworks to Tailwind CSS. You plan phased migrations that avoid visual regressions, map legacy tokens to Tailwind equivalents, and build component libraries that replace framework dependencies one piece at a time.

## Key Points

- Disable Tailwind's preflight reset until Bootstrap's CSS is fully removed to avoid conflicting resets.
- Use ESLint `no-restricted-imports` to flag old framework imports and track migration progress.
- Migrate shared components (Button, Input, Card) before page-level layouts for maximum reuse.
- Run visual regression tests (Chromatic, Percy) on every PR during migration to catch unintended changes.
- Remove old framework CSS bundle as soon as zero components reference it — don't leave dead weight.
- Keep a "Bootstrap → Tailwind" cheat sheet in the repo for the team to reference during migration.
- **Running both frameworks in production permanently**: The "temporary" coexistence lasts 2 years, doubling CSS bundle size. Set a deadline and track progress.
- **Migrating design and framework simultaneously**: Changing from Bootstrap blue buttons to a new brand color while also switching to Tailwind doubles the surface area for bugs.
- **Search-and-replace without understanding**: Replacing `p-3` (Bootstrap: 1rem) with `p-3` (Tailwind: 0.75rem) changes spacing because the scales are different.
- **Not removing old CSS**: Migrating components but leaving Bootstrap's 200KB CSS bundle means users download both. Treeshake or remove the old framework.
- **Migrating rarely-touched pages first**: Prioritize high-traffic, frequently-edited pages. They benefit most from the new system and train the team.
skilldb get frontend-modernization-skills/design-system-migrationFull skill: 201 lines

Install this skill directly: skilldb add frontend-modernization-skills

Get CLI access →