tailwind_flutter 0.1.1
tailwind_flutter: ^0.1.1 copied to clipboard
Tailwind CSS design tokens and utility-first styling API for Flutter. Type-safe, composable, theme-aware.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2026-03-12 #
Changed #
.fontSize()now acceptsTwFontSizetokens directly — no more.valueneeded. When aTwFontSizeis passed, the paired Tailwind line-height is automatically applied.
0.1.0 - 2026-03-12 #
Added #
- Complete Tailwind CSS v4 color palette (22 families x 11 shades = 242 colors) plus semantic colors (black, white, transparent)
- Spacing scale (35 values from
s0throughs96) withEdgeInsetsconvenience getters (.all,.x,.y) - Typography tokens: 13 font sizes with paired line-heights, 9 font weights, 6 letter spacings, 6 line heights
- Border radius scale (10 values from
nonethroughfull) withBorderRadiusconvenience getters - Box shadow presets (7 levels from
xxsthroughxl2plusinnerandnone) - Opacity scale (21 values from
o0througho100) and responsive breakpoint constants (5 thresholds) - Theme integration: 7
ThemeExtensionclasses,TwThemewidget,TwThemeDatawith.light()/.dark()presets,context.twaccessor - Widget extensions:
.p(),.px(),.py(),.m(),.mx(),.my(),.bg(),.rounded(),.opacity(),.shadow(),.width(),.height(),.center(),.align(),.clipRect(),.clipOval() - Text extensions:
.bold(),.italic(),.fontSize(),.textColor(),.letterSpacing(),.lineHeight(),.fontWeight(),.textStyle() TwStylecomposable styling with.merge(),.apply(),.resolve(), andTwVariant(.dark/.light) for brightness-conditional overrides- Example app demonstrating all three API tiers (tokens, extensions, styles)
- Golden tests for styled widgets across light and dark themes
0.0.1-dev.1 #
- Initial package scaffold
- Project structure with placeholder files
- CI pipeline (analyze, test, publish check)
- Strict lint rules via very_good_analysis