Flutter के लिए Tailwind CSS। className='flex p-4 bg-white dark:bg-gray-800' लिखें और Wind अनुकूलित widget वृक्ष उत्पन्न करता है, जिसमें डार्क मोड और प्रतिक्रियाशील ब्रेकपॉइंट शामिल हैं।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
FlutterSDK_Wind फ्लटर में टेलविंड सीएसएस के उपयोगिता-पहले स्टाइलिंग को लाता है, जिससे विकासकर्ता संक्षिप्त, पठनीय className एट्रिब्यूट लिख सकते हैं, जैसे 'flex p-4 bg-white dark:bg-gray-800'। यह इन्हें अद्यतन विजेट ट्री में संकलित करता है और डार्क मोड और रिस्पॉन्सिव ब्रेकपॉइंट्स के लिए निर्मित समर्थन प्रदान करता है। इस पैकेज के माध्यम से UI विकास को बॉयलरप्लेट कम करके और प्लेटफॉर्म के बीच सुसंगत डिज़ाइन को बढ़ावा देकर सरल बनाया गया है। त्वरित प्रोटोटाइपिंग और स्केलेबल डिज़ाइन सिस्टम की तलाश करने वाली टीमों के लिए आदर्श है।
उपयोग
त्वरित UI प्रोटोटाइपिंग
क्रॉस-प्लेटफॉर्म प्रतिक्रियाशील डिज़ाइन
डार्क मोड कार्यान्वयन
डिज़ाइन सिस्टम मानकीकरण
विजेट नेस्टिंग को कम करना
मुख्य विशेषताएँ
उपयोगिता-पहली CSS सिंटैक्स
स्वचालित डार्क मोड हैंडलिंग
प्रतिक्रियाशील ब्रेकपॉइंट्स
अनुकूलित widget वृक्ष उत्पादन
न्यूनतम बॉलरप्लेट
इनके लिए उपयुक्त
फ्रंटएंड डेवलपर्स
डिज़ाइन सिस्टम टीमें
त्वरित एप्लिकेशन विकास
सुसंगत शैली की आवश्यकता वाले प्रोजेक्ट
Tailwind CSS के साथ परिचित टीमें
विचार योग्य बातें
Tailwind के अनुभवहीन उपयोगकर्ताओं के लिए सीखने का ढलान
बड़े ऐप में संभावित प्रदर्शन अतिरिक्त लागत
हस्त लेखित विजेट कोडिंग की तुलना में सीमित कस्टमाइज़ेशन
बिल्ड समय प्रसंस्करण की आवश्यकता है
अत्यधिक गतिशील या जटिल एनीमेशन के लिए उपयुक्त नहीं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Tailwind CSS for Flutter.
Utility-first styling that turns className strings into optimized Flutter widget trees. If you know Tailwind, you already know Wind.
Flutter's structural styling costs you a six widget pyramid for a rounded card with a hover state, and the Flutter team has acknowledged the verbosity itself. Wind is the styling layer that closes the gap: one string, one widget, the same utility names you already write on the web.
That runs as written. No MouseRegion, no setState, no _isHovered boolean, no MediaQuery branch for the tablet layout.
What you get
The Tailwind vocabulary you already know.flex, p-4, bg-blue-500, rounded-lg, shadow-md, parsed by 20 token parsers. Classes paste between a web project and a Flutter one unmodified.
27 W-prefix widgets.WDiv, WText, WButton, WInput, WSelect, WPopover, WDatePicker, WCard, WTabs, WBadge, WSwitch, WRadio, WDynamic, and five FormField wrappers that drop straight into a Flutter Form.
Prefixes that stack.dark:, sm: to 2xl:, hover: / focus: / disabled: / loading: / selected:, and ios: / android: / web: / mobile: / macos: / windows: / linux: for the cases where one platform genuinely differs.
A theme you own. 24 WindThemeData fields covering every token scale: colors, spacing, typography, shadows, breakpoints, animations. Defaults track Tailwind's own. aliases let you name a bare token once and use it everywhere.
Variant composition.WindRecipe and WindSlotRecipe build a className (or a per-slot map) from a base, variant axes, compound variants and a caller override, in a strict emission order with no merge magic to reason about.
Forms that behave on a phone. A focused field lifts the whole input clear of the keyboard and of the keyboard toolbar above it, not just the line the caret sits on. A control with an onTap is one traversal stop and activates on Enter, Space, a gamepad A button and a TV remote.
Server-driven UI.WDynamic renders a widget tree from JSON against a whitelist of 13 Wind widgets and 16 Flutter core widgets, so a layout change can ship without a store release.
Written for agents as much as for people. A canonical skill, a hosted MCP server and an llms.txt inventory, all maintained in this repository.
className rules worth knowing before the first line
Rule
What it means
Prefix order
<state>:<breakpoint>:<dark>:<platform>:<utility>, and prefixes stack freely.
Conflicts
The last class in a family wins. p-2 p-6 is padding 6.
Dark mode
Every color token carries its dark: pair in the SAME className. A missing pair is a bug, and the parser says so once in kDebugMode.
Unknown tokens
Dropped silently in release, named once in debug. A typo never throws and never renders a red screen.
Spacing scale
One step is 4 logical pixels, so p-4 is 16. Font size and tracking are pixel based too.
Caching
A parsed className is cached on className + breakpoint + brightness + platform + states, so rebuilds cost a map lookup.
Wind is not a literal Tailwind port. Transforms, filters, group-* / peer-*, container queries and @apply have no Flutter counterpart and are deliberately out of scope; the full list lives in the docs.
For coding agents
Wind ships its own agent surface rather than hoping a model guessed right:
npx skills add fluttersdk/ai --skill wind-ui
The skill at skills/wind-ui/SKILL.md is the source of truth for the className grammar, the widget surface, the dark-mode pairing rule and the anti-patterns. fluttersdk/ai distributes it to Claude Code, Cursor, OpenCode, Gemini CLI, VS Code Copilot, Codex CLI, Cline and Roo Code. The hosted MCP server at mcp.fluttersdk.com exposes a search-docs tool over Streamable HTTP with no auth, and npx @fluttersdk/mcp bridges it for stdio-only clients. The machine-readable package inventory is llms.txt.
Documentation and examples
Full documentation with live previews is at fluttersdk.com/wind: every widget, every parser token, the theme fields, dark mode, responsive design, WDynamic, and the AI setup. Upgrading from an earlier release? See the upgrade guide. Internals live in ARCHITECTURE.md.
The example/ directory is the same gallery the docs site embeds:
cd example && flutter pub get
flutter run -d chrome
Requires Flutter 3.27.0 and Dart 3.4.0 or newer. Stable since 1.0, MIT licensed, and the only runtime dependencies are flutter_svg and the diagnostics contracts package.
Contributing
git clone https://github.com/fluttersdk/wind.git
cd wind && flutter pub get
New behaviour ships with a failing test first. Before opening a pull request, run what CI runs:
dart format --output=none --set-exit-if-changed .
dart analyze
flutter test
./tool/coverage.sh 90
dart pub publish --dry-run
CI enforces 90% line coverage on lib/, zero analyzer issues and zero format drift.
Wind is the styling layer of the fluttersdk ecosystem, and it works perfectly well on its own. If Wind saved you a Container or two, give it a star, it helps others find it.