stitch_to_flutter

Convert Stitch HTML/Tailwind UI into Flutter widgets with Theme-based styling.

1|Updated Apr 28, 2024
One-click install
npx skills add https://github.com/HabitaNexus/monorepo --skill stitch-to-flutter-habitanexus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stitch_to_flutter
Source: https://github.com/HabitaNexus/monorepo/tree/main/skills/flutter/stitch_to_flutter
Command: npx skills add https://github.com/HabitaNexus/monorepo --skill stitch-to-flutter-habitanexus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts Stitch HTML/Tailwind UI into production-ready Flutter widgets.

Core Features & Use Cases

  • Structure mapping: translates div.flex to Column/Row, paddings to Padding, etc.
  • Style mapping: uses Theme.of(context).colorScheme and TextTheme; maps Tailwind to Flutter tokens.
  • Atomic design guidance: applies Atoms/Molecules/Organisms for reusable components.

Quick Start

Translate a Stitch HTML/Tailwind page into a Flutter screen aligned with the app's design system.

Frequently Asked Questions about stitch_to_flutter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Stitch HTML with Tailwind into Flutter widgets?

To convert Stitch HTML with Tailwind into Flutter widgets, the skill maps HTML structures like div.flex to Column or Row and translates Tailwind classes into Flutter widgets, yielding production-ready UI code aligned with your design system.

How does Tailwind style mapping work when translating designs to Flutter?

Tailwind style mapping translates utility classes into Flutter tokens using Theme.of(context).colorScheme and TextTheme. This ensures the generated Flutter UI uses theme-based colors and typography, avoiding hard-coded values for dynamic branding.

Can I use atomic design patterns for Flutter components converted from Stitch?

Yes, you can apply atomic design patterns for Flutter components converted from Stitch. The skill guides the breakdown of translated UI elements into Atoms, Molecules, and Organisms to ensure visual consistency and reusable components.

What is the best way to avoid hard-coded colors in Flutter UI generated from Tailwind?

The best way to avoid hard-coded colors in Flutter UI generated from Tailwind is mapping styles directly to Theme.of(context).colorScheme. This approach enforces design system tokens and satisfies dynamic branding requirements automatically.

Does converting Stitch UI to Flutter require hard-coded padding values?

No, converting Stitch UI to Flutter does not require hard-coded padding values. HTML paddings are mapped to Flutter Padding widgets and aligned with the application's design system tokens to maintain scalable structure mapping.