What problem does it solve?
Converting legacy Emotion styled-components to a modern Mantine-based styling approach is tedious and error-prone, requiring careful decisions about which CSS properties map to style props versus CSS modules while preserving visual fidelity.
Core Features & Use Cases
- Systematic Migration Workflow: Follows a strict priority order—Mantine style props first, CSS modules only for pseudo-selectors and non-expressible properties, inline styles only for dynamic runtime values.
- Design Token Enforcement: Snaps hardcoded rem/px values to the nearest Mantine spacing, radius, and font-size tokens, and replaces raw colors with design system variables.
- Pattern Library: Provides ten concrete before/after migration patterns covering layout containers, dynamic props with cx(), keyframes animations, responsive styles, and shared Emotion styles.
- Use Case: When removing a
.styled.tsx file from a React component, the Skill classifies each styled component, generates the CSS module with camelCase classes, updates the TSX with Mantine components, and verifies zero Emotion imports remain.
Quick Start
Migrate the Emotion styled-components in this component to Mantine style props and CSS modules, then delete the .styled.tsx file.