PA

paper-to-nativewind

Safely migrates React Native Paper UI code to NativeWind utility classes while preserving behavior and accessibility.

Install

mkdir -p .claude/skills/paper-to-nativewind && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12903" && unzip -o skill.zip -d .claude/skills/paper-to-nativewind && rm skill.zip

Installs to .claude/skills/paper-to-nativewind

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Migrate React Native Paper UI code to NativeWind utility classes while preserving behavior, theming intent, and accessibility.
126 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Migrate React Native Paper UI code to NativeWind
  • Preserve component behavior
  • Maintain theming intent
  • Ensure accessibility
  • Translate style intent into utility classes

How it works

This skill refactors existing React Native Paper components by mapping them to NativeWind layouts, replacing theme-based styles with utility classes, and validating states and responsiveness.

Inputs & outputs

You give it
React Native Paper UI code
You get back
Updated component code using NativeWind className conventions, with brief migration notes

When to use paper-to-nativewind

  • Migrating UI screens to Tailwind-based styling
  • Replacing themed component libraries
  • Refactoring legacy React Native codebases

About this skill

Paper to NativeWind

Use this skill when refactoring existing React Native Paper screens/components into a NativeWind-first implementation.

Goals

  • Keep feature behavior unchanged.
  • Keep accessibility semantics unchanged or better.
  • Translate style intent into utility classes with clear composition.
  • Avoid introducing visual regressions in spacing, typography, and states.

Recommended Workflow

  1. Identify all Paper components in scope (for example: Button, Card, TextInput, Chip, Snackbar, Dialog).
  2. Map each component to a NativeWind-native layout and primitive set.
  3. Preserve component props and interaction contracts.
  4. Replace theme-based style objects with utility class tokens.
  5. Validate disabled/loading/error/focus states.
  6. Verify parity on small and large screen sizes.

Conversion Rules

  • Prefer incremental migration per component or screen, not large rewrites.
  • Keep state logic and business logic untouched unless required for parity.
  • Do not silently drop variants (outlined, elevated, tonal, etc.); map each one.
  • Replace one-off inline styles with reusable className patterns when repeated.
  • Keep text contrast and tap targets compliant.
  • If exact parity is impossible, document tradeoffs explicitly.

Output Expectations

  • Updated component code using NativeWind className conventions.
  • Brief migration notes listing mapped components and any accepted differences.
  • Clear TODO markers for unresolved parity gaps.

Validation Checklist

  • Interaction parity: press, focus, disabled, loading.
  • Visual parity: spacing, border radius, elevation/shadow, typography.
  • Accessibility: labels, roles, hints, hit slop where needed.
  • Responsiveness: no clipping or overlap on narrow devices.

When not to use it

  • When the user wants to introduce visual regressions
  • When the user wants to silently drop component variants
  • When the user wants to modify state logic or business logic unnecessarily

Limitations

  • Prefer incremental migration per component or screen
  • Requires explicit documentation of tradeoffs if exact parity is impossible
  • The skill focuses on styling migration, not business logic changes

How it compares

This skill automates the translation of styling from a component library to a utility-first CSS framework while preserving critical aspects like behavior and accessibility, which is more efficient than manual, line-by-line conversion.

Compared to similar skills

paper-to-nativewind side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
paper-to-nativewind (this skill)03moNo flagsIntermediate
gesture-handler-3-migration12moNo flagsAdvanced
swiftui-patterns-developer16moNo flagsIntermediate
frontend-folder-creation01moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry