wind_kit
llms.txt46 starsChanged 16 days agoMITView on GitHub
Tailwind CSS for Flutter: className strings such as flex p-4 bg-white dark:bg-gray-800 become optimised Flutter widget trees. W-prefix widgets, token parsers, a WindThemeData of token scales, responsive, dark:, state and platform prefixes, WindRecipe variant composition and WDynamic server-driven UI. Stable 1.x, MIT. Stack: Flutter >=3.47.0 · Dart >=3.13.0 · Runtime deps: flutter_svg, material_ui, wind_kit_diagnostics_contracts. No state management library, no router, no mocking library. Prefix stack in a className: <state>:<breakpoint>:<dark>:<platform>:<utility>. The last class in a family wins. An unknown family is…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fluttersdk/windword for word, first seen Nov 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fluttersdk/wind★ 46100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- example/CLAUDE.mdCLAUDE.md
- wind-uiSkill
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Import only package:wind_kit/wind_kit.dart for wind_kit.
- Very specific: line 61
Never interpolate Dart into a className: route conditions through states: and prefixed classes.
≈ “Common” is an estimate: at least 1 in 5 of the 3,913 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# wind_kit
> Tailwind CSS for Flutter: `className` strings such as `flex p-4 bg-white dark:bg-gray-800` become optimised Flutter widget trees. W-prefix widgets, token parsers, a `WindThemeData` of token scales, responsive, `dark:`, state and platform prefixes, `WindRecipe` variant composition and `WDynamic` server-driven UI. Stable 1.x, MIT.
**Stack**: Flutter >=3.47.0 · Dart >=3.13.0 · Runtime deps: `flutter_svg`, `material_ui`, `wind_kit_diagnostics_contracts`. No state management library, no router, no mocking library.
**Setup**:
```bash
flutter pub add wind_kit material_ui
```
```dart
import 'package:flutter/foundation.dart';
import 'package:material_ui/material_ui.dart';
import 'package:wind_kit/wind_kit.dart';
void main() {
// Debug and profile only: lets tools such as tapir read widget state.
if (!kReleaseMode) {
Wind.installDebugResolver();
}
runApp(
WindTheme(
data: WindThemeData(),
builder: (context, controller) => MaterialApp(
theme: controller.toThemeData(),
home: Scaffold(
body: WDiv(
className: 'p-6 bg-white dark:bg-gray-800 rounded-xl shadow-lg',
child: WText('Hello', className: 'text-xl font-bold text-gray-900 dark:text-white'),
),
),
),
),
);
}
```
**Prefix stack** in a className: `<state>:<breakpoint>:<dark>:<platform>:<utility>`. The last class in a family wins. An unknown family is dropped with a one-time `kDebugMode` hint (release builds stay silent); a known family with an unsupported value drops silently. Every colour token (`bg-` / `text-` / `border-` / `fill-` / `ring-` / `shadow-`) carries a `dark:` pair in the same className.
**Parser cache key**: the alias-expanded `className + activeBreakpoint + brightness + platform + sorted(activeStates)`. A call that passes a `baseStyle` skips the cache. The key omits the theme's maps: call `WindParser.clearCache()` in test `setUp`, and after `setTheme` / `updateTheme` changes anything but brightness.
## API
- Widgets (one barrel, `package:wind_kit/wind_kit.dart`): layout `WDiv`, `WSpacer`, `WBreakpoint`, `WCard`, `WBadge`; display `WText`, `WIcon`, `WImage`, `WSvg`; interactive `WAnchor`, `WButton`, `WPopover`, `WTooltip`, `WTabs`, `WKeyboardActions` (`platform:` takes the string `'all'`, `'ios'` or `'android'`), `WindAnimationWrapper`; form `WInput`, `WSelect`, `WCheckbox`, `WSwitch`, `WRadio`, `WDatePicker`, `WFormInput`, `WFormSelect`, `WFormMultiSelect`, `WFormCheckbox`, `WFormDatePicker`; server-driven `WDynamic` (an allowlist of wind_kit and Flutter core widgets by default; its `builders:`, `denyWidgets:` and `customIcons:` extend or restrict it). `child` XOR `children` on every widget that takes both.
- Theme: `WindTheme` (takes `child` or `builder`), `WindThemeData` (token scales merged over the defaults), `WindThemeController` (`toggleTheme()`, `resetToSystem()`, `toThemeData()`), context extensions `context.windTheme`, `windThemeData`, `windBrightness`, `windIsDark`, `windColors`, `windScreens`, `wActiveBreakpoint`, `wIsMobile`, `wIsTablet`, `wIsDesktop`.
- Parsing: `WindParser.parse(className, context, states:, baseStyle:)` returns an immutable `WindStyle`; `WindThemeData.aliases` maps bare tokens to className strings.
- Composition: `WindRecipe` and `WindSlotRecipe` (base, variant axes, `WindCompoundVariant`, caller className appended last, no dedupe).
- Debug: `Wind.installDebugResolver()` and `Wind.installPerfResolver()` register resolvers in `wind_kit_diagnostics_contracts` (both no-ops in release builds), `WindPerfCounters` (opt-in counters; counting stays off until the host sets `WindPerfCounters.enabled`).
## Platforms
Android, iOS, web, macOS, Windows and Linux; the web build is WebAssembly-ready. `ios:` / `android:` / `web:` / `mobile:` / `macos:` / `windows:` / `linux:` prefixes target one platform. Spacing is 4 logical pixels per step and font sizes are pixels, not rem.
## Rules for agents
- Import only `package:wind_kit/wind_kit.dart` for wind_kit; there are no sub-barrels. Import `package:material_ui/material_ui.dart`, not `package:flutter/material.dart`, for `MaterialApp`, `ThemeData`, `Colors` and `MaterialColor`: the Flutter barrel gives "No MaterialLocalizations found" and type mismatches against `WindThemeData` and `controller.toThemeData()`.
- Pair every colour token with its `dark:` peer in the same className, on the same line.
- Never interpolate Dart into a className: route conditions through `states:` and prefixed classes.
- Inside a Row give the child `flex-1`; inside a bounded Column (`flex flex-col h-full`) give the scrolling child `flex-1 overflow-y-auto` and the constructor prop `scrollPrimary: true`. `h-full` fills any bounded parent; below a `WDiv` vertical scroll it reports in debug whenever its incoming height is unbounded, whichever parent passes that height on (a direct child of the scroll, a padding-only `WDiv`, a `flex flex-col`), and under a plain `SingleChildScrollView` an unbounded height silently takes the screen height.
- Spell-check token values by hand: a known family with an unsupported value (`text-7xl`, the scale stops at `6xl`; `w-auto`) or a mistyped prefix (`hovr:`) drops silently, and an unknown family (`ps-4`, `-m-4`) drops with a one-time `kDebugMode` hint.
- There is no `group-*`, `peer-*`, `@apply`, container query or `!important`, and no widget tracks press, so `active:` applies only through `states: {'active'}`: track press in your own state and pass it.
- Give an icon-only `WButton` or `WAnchor` a `semanticLabel`, and use `Icons.*_outlined` glyphs.
- Drive focus with `focusNode` or `autofocus` on `WAnchor` / `WButton`, never an outer `Focus`: a given `focusNode` is yours (the anchor never disposes it) and `autofocus` takes focus only when nothing in scope has it.
- In tests call `WindParser.clearCache()` in `setUp`.
- Install the skill for the full grammar: `npx skills add anilcancakir/wind_kit`.
## Docs
### Getting started
- [Installation](https://anilcancakir.com/wind_kit/docs/getting-started/installation.md): Add wind_kit to a Flutter app, wrap it in `WindTheme` and style your first widget with a className.
- [Upgrade Guide](https://anilcancakir.com/wind_kit/docs/getting-started/upgrade-guide.md): What changed between wind_kit versions and what to edit in your app when you upgrade.
### Core concepts
- [Dark Mode](https://anilcancakir.com/wind_kit/docs/core-concepts/dark-mode.md): Wind makes it incredibly easy to support dark mode using the `dark:` variant modifier.
- [Debugging](https://anilcancakir.com/wind_kit/docs/core-concepts/debugging.md): Print a widget's composition tree with the `debug` token, catch unknown className tokens and expose wind_kit state to tapir.
- [Dynamic Rendering](https://anilcancakir.com/wind_kit/docs/core-concepts/dynamic-rendering.md): Build Flutter UIs from JSON at runtime. WDynamic turns a Map structure into a live widget tree with action handling and form state management.
- [Responsive Design](https://anilcancakir.com/wind_kit/docs/core-concepts/responsive-design.md): Building interfaces that adapt to any screen size is a core requirement for modern applications.
- [State Management & Interactive Styles](https://anilcancakir.com/wind_kit/docs/core-concepts/state-management.md): Style hover, focus, disabled, loading and custom states with prefixed classes and the `states` prop.
- [Theme Binding](https://anilcancakir.com/wind_kit/docs/core-concepts/theme-binding.md): Theme binding allows you to sync your Wind configuration with Flutter's native `ThemeData` system.
- [Theme Configuration](https://anilcancakir.com/wind_kit/docs/core-concepts/theming.md): Configure colours, spacing, typography, breakpoints and animations through `WindThemeData`, and wrap the app in `WindTheme`.
- [Utility-First Fundamentals](https://anilcancakir.com/wind_kit/docs/core-concepts/utility-first.md): Utility-first styling is the core philosophy of Wind.
### Widgets
- [WAnchor](https://anilcancakir.com/wind_kit/docs/widgets/w-anchor.md): The foundational state wrapper that detects hover and focus, runs the gestures you give it and propagates that state down to all descendant widgets via `WindAnchorStateProvider`.
- [WBadge](https://anilcancakir.com/wind_kit/docs/widgets/w-badge.md): Inline status or label pill. Composes a pill-shaped `WDiv` (rounded-full, inline-flex) around a `WText` (text-xs).
- [WBreakpoint](https://anilcancakir.com/wind_kit/docs/widgets/w-breakpoint.md): Declarative breakpoint-keyed builder for rendering different widget trees per responsive breakpoint.
- [WButton](https://anilcancakir.com/wind_kit/docs/widgets/w-button.md): `WButton` is an interactive component that combines `WAnchor` state management with Tailwind-like utility styling and built-in loading states.
- [WCard](https://anilcancakir.com/wind_kit/docs/widgets/w-card.md): Surface container with optional `header` and `footer` slots.
- [WCheckbox](https://anilcancakir.com/wind_kit/docs/widgets/w-checkbox.md): A utility-first checkbox component that translates Tailwind-style classes into a fully customisable checkbox widget.
- [WDatePicker](https://anilcancakir.com/wind_kit/docs/widgets/w-date-picker.md): A utility-first date picker component built on WPopover with support for single date selection, date range selection, date-with-time selection, min/max constraints, and custom display formatting.
- [WDiv](https://anilcancakir.com/wind_kit/docs/widgets/w-div.md): The fundamental building block of Wind. `WDiv` acts as a multi-purpose container that replaces standard Flutter widgets like `Container`, `Row`, `Column`, `Flex`, `Grid`, `Wrap`, and `SingleChildScrollView`.
- [WDynamic](https://anilcancakir.com/wind_kit/docs/widgets/w-dynamic.md): `WDynamic` renders a Flutter widget tree from a JSON/Map configuration at runtime, with built-in action handling and form state management.
- [WFormCheckbox](https://anilcancakir.com/wind_kit/docs/widgets/w-form-checkbox.md): A Wind-styled checkbox that integrates with Flutter's Form validation, providing built-in support for labels, hints, and error states.
- [WFormDatePicker](https://anilcancakir.com/wind_kit/docs/widgets/w-form-date-picker.md): A form-integrated date picker that wraps WDatePicker with Flutter's `FormField<DateTime>`.
- [WFormInput](https://anilcancakir.com/wind_kit/docs/widgets/w-form-input.md): A Wind-styled input that integrates seamlessly with Flutter's native Form validation system.
- [WFormSelect](https://anilcancakir.com/wind_kit/docs/widgets/w-form-select.md): A Wind-styled single or multi-select dropdown that integrates seamlessly with Flutter's Form validation.
- [WIcon](https://anilcancakir.com/wind_kit/docs/widgets/w-icon.md): The utility-first icon component for displaying vector icons with Tailwind-like styling.
- [WImage](https://anilcancakir.com/wind_kit/docs/widgets/w-image.md): The `WImage` widget brings utility-first styling to images in Flutter, providing HTML-like semantics with Tailwind-inspired classes for sizing, object fitting, and decoration.
- [WInput](https://anilcancakir.com/wind_kit/docs/widgets/w-input.md): A utility-first form input that combines React-style controlled state management with Tailwind-like styling.
- [WKeyboardActions](https://anilcancakir.com/wind_kit/docs/widgets/w-keyboard-actions.md): A wrapper that renders a Done button and field-navigation toolbar above the keyboard for any group of input fields, with optional platform targeting and custom close widget.
- [WPopover](https://anilcancakir.com/wind_kit/docs/widgets/w-popover.md): A flexible popover component for creating dropdown menus, notification panels, user menus, tooltips, and similar overlay patterns.
- [WRadio](https://anilcancakir.com/wind_kit/docs/widgets/w-radio.md): Controlled radio button. Composes `WAnchor` (interaction state) + `WDiv` (outer ring shell) + `WDiv` (inner filled indicator).
- [WSelect](https://anilcancakir.com/wind_kit/docs/widgets/w-select.md): A highly customisable, utility-first select component that supports single selection, multi-selection, searching, and remote data fetching.
- [WSpacer](https://anilcancakir.com/wind_kit/docs/widgets/w-spacer.md): The `WSpacer` is a lightweight widget designed specifically for adding consistent gaps between elements.
- [WSvg](https://anilcancakir.com/wind_kit/docs/widgets/w-svg.md): The utility-first SVG component. `WSvg` brings HTML SVG semantics to Flutter with Tailwind-like utility classes for styling, supporting both asset paths and raw SVG strings.
- [WSwitch](https://anilcancakir.com/wind_kit/docs/widgets/w-switch.md): Controlled toggle switch. Composes `WAnchor` + `WDiv` (track) + `WDiv` (thumb).
- [WTabs](https://anilcancakir.com/wind_kit/docs/widgets/w-tabs.md): Controlled tabs widget. Renders a tab list and a content panel.
- [WText](https://anilcancakir.com/wind_kit/docs/widgets/w-text.md): A utility-first text component that translates Tailwind-like class strings into optimised Flutter typography.
- [WTooltip](https://anilcancakir.com/wind_kit/docs/widgets/w-tooltip.md): A Material-free tooltip styled through `className` that shows on hover after a delay, on keyboard focus and on long press, never takes focus and exposes its message as the child's semantics tooltip.
- [WindAnimationWrapper](https://anilcancakir.com/wind_kit/docs/widgets/wind-animation-wrapper.md): `WindAnimationWrapper` wraps any widget in a looping animation driven by `WindAnimationType`: spin, ping, pulse, or bounce.
### Layout
- [Aspect Ratio](https://anilcancakir.com/wind_kit/docs/layout/aspect-ratio.md): Utilities for controlling the aspect ratio of an element.
- [Display](https://anilcancakir.com/wind_kit/docs/layout/display.md): Utilities for controlling the layout mode of an element.
- [Flexbox & Layout](https://anilcancakir.com/wind_kit/docs/layout/flexbox.md): Utilities for controlling flex containers, direction, alignment, wrapping, and spacing.
- [Grid Template Columns](https://anilcancakir.com/wind_kit/docs/layout/grid.md): Utilities for specifying the columns in a grid layout.
- [Overflow](https://anilcancakir.com/wind_kit/docs/layout/overflow.md): Utilities for controlling how an element handles content that is too large for the container.
- [Positioning](https://anilcancakir.com/wind_kit/docs/layout/positioning.md): Utilities for controlling how elements are positioned in the layout using `relative` and `absolute` placement.
- [Sizing](https://anilcancakir.com/wind_kit/docs/layout/sizing.md): Utilities for setting the width and height of elements.
- [Spacing](https://anilcancakir.com/wind_kit/docs/layout/spacing.md): Utilities for controlling the padding and margin of elements.
- [Z-Index](https://anilcancakir.com/wind_kit/docs/layout/z-index.md): Utilities for controlling the stack order of an element.
### Borders
- [Border Width, Colour, & Radius](https://anilcancakir.com/wind_kit/docs/borders/borders.md): Utilities for controlling border width, colour, style, and border radius.
- [Ring Width, Colour, and Offset](https://anilcancakir.com/wind_kit/docs/borders/ring.md): Utilities for drawing an outline ring around an element.
### Styling
- [Background Colour](https://anilcancakir.com/wind_kit/docs/styling/background-color.md): Utilities for controlling an element's background colour.
- [Background Gradient](https://anilcancakir.com/wind_kit/docs/styling/background-gradient.md): Utilities for creating linear gradients with customisable directions and colour stops.
- [Background Image](https://anilcancakir.com/wind_kit/docs/styling/background-image.md): Utilities for controlling background images, sizing, positioning, and repeat behaviour.
- [Opacity](https://anilcancakir.com/wind_kit/docs/styling/opacity.md): Utilities for controlling the opacity of an element.
- [Shadow](https://anilcancakir.com/wind_kit/docs/styling/shadow.md): Utilities for controlling the box shadow of an element.
- [WindRecipe](https://anilcancakir.com/wind_kit/docs/styling/wind-recipe.md): A `tv()` (tailwind-variants) equivalent for Wind.
### Typography
- [Font Family](https://anilcancakir.com/wind_kit/docs/typography/font-family.md): Utilities for controlling the typeface of text.
- [Font Size](https://anilcancakir.com/wind_kit/docs/typography/font-size.md): Utilities for controlling the font size of an element.
- [Font Weight](https://anilcancakir.com/wind_kit/docs/typography/font-weight.md): Utilities for controlling the font weight of an element.
- [Letter Spacing](https://anilcancakir.com/wind_kit/docs/typography/letter-spacing.md): Utilities for controlling the tracking (letter spacing) of an element.
- [Line Height](https://anilcancakir.com/wind_kit/docs/typography/line-height.md): Utilities for controlling the leading (line height) of an element.
- [Text Align](https://anilcancakir.com/wind_kit/docs/typography/text-align.md): Utilities for controlling the alignment of text.
- [Text Colour](https://anilcancakir.com/wind_kit/docs/typography/text-color.md): Utilities for controlling the text colour of an element.
- [Text Decoration](https://anilcancakir.com/wind_kit/docs/typography/text-decoration.md): Utilities for controlling the decoration of text.
- [Text Overflow](https://anilcancakir.com/wind_kit/docs/typography/text-overflow.md): Utilities for controlling how text behaves when it overflows its container.
- [Text Transform](https://anilcancakir.com/wind_kit/docs/typography/text-transform.md): Utilities for controlling the capitalization and wrapping of text.
### Interactivity
- [Animation](https://anilcancakir.com/wind_kit/docs/interactivity/animation.md): Utilities for animating elements with CSS-like animation classes.
- [Cursor](https://anilcancakir.com/wind_kit/docs/interactivity/cursor.md): Utilities for controlling the mouse cursor shown when the pointer is over an element on web and desktop targets.
- [Transitions](https://anilcancakir.com/wind_kit/docs/interactivity/transition.md): Utilities for controlling the duration and easing of state transitions in Wind.
### Utilities
- [Color Helpers](https://anilcancakir.com/wind_kit/docs/utilities/color-helpers.md): Resolve theme colours, hex values and opacity from Dart with `wColor` and the context helpers.
- [Context Extensions](https://anilcancakir.com/wind_kit/docs/utilities/context-extensions.md): Read theme data, breakpoints, brightness and styling helpers straight from a `BuildContext`.
- [Responsive Helpers](https://anilcancakir.com/wind_kit/docs/utilities/responsive-helpers.md): Responsive helpers provide programmatic access to Wind's breakpoint system, platform detection, and screen metrics directly from your Dart code.
- [Spacing Helpers](https://anilcancakir.com/wind_kit/docs/utilities/spacing-helpers.md): Wind provides programmatic access to your theme's spacing scale through helper functions and extensions.
- [Style Parser](https://anilcancakir.com/wind_kit/docs/utilities/style-parser.md): Parse a className string into a `WindStyle` yourself with `wStyle` and `WindParser.parse`.
- [Typography Helpers](https://anilcancakir.com/wind_kit/docs/utilities/typography-helpers.md): Read the theme's font sizes and weights from Dart with `wFontSize`, `wFontWeight` and their context extensions.
## Links
- [README](https://github.com/anilcancakir/wind_kit/blob/master/README.md): install, what you get, the className rules and the agent rules table.
- [API reference](https://pub.dev/documentation/wind_kit/latest/): generated from the doc comments.
- [Changelog](https://github.com/anilcancakir/wind_kit/blob/master/CHANGELOG.md): what changed in each version.
- [Architecture](https://github.com/anilcancakir/wind_kit/blob/master/ARCHITECTURE.md): module layout, data flow, the parser cache and a change guide.
- [Project](https://github.com/anilcancakir/wind_kit/blob/master/PROJECT.md): what is in and out of scope, and the decisions already made.
- [Skill](https://github.com/anilcancakir/wind_kit/tree/master/skills/wind-ui): the `wind-ui` skill source, mirrored to `anilcancakir/ai`.
- [Docs MCP server](https://mcp.anilcancakir.com/): Streamable HTTP, no auth; tools `list_packages`, `list_docs`, `search_docs`, `read_doc`.
- [Source](https://github.com/anilcancakir/wind_kit): issues and pull requests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

