v0.2.000
Tailwind CSS v4 Compliance & Comprehensive Test Coverage
This release brings the entire token library into full alignment with Tailwind CSS v4.3.3, adds 34 new Layout modifier functions, and increases snapshot test coverage from 145 → 169 tests.
Breaking changes
brightness()/grayscale()/invert()/saturate()/sepia()/backdrop*numeric methods —.percent(Int)removed; now takeIntdirectly (producesbrightness-50, notbrightness-50%)borderCollapse()— removed.revert(v3-only)boxShadow()— removed.inner(v3-onlyshadow-inner)textShadow()— removed.xl,.xxl,.inner; prefix changedshadow-*→text-shadow-*wordBreak()— removed.words(break-words) and.anywhere(break-anywhere) (v3-only)
v4 renames & additions
| Utility | v3 | v4 |
|---|---|---|
| BoxShadow | shadow-sm |
shadow-xs |
| BoxShadow | shadow |
shadow-sm |
| BoxShadow | — | added .xxs = "shadow-2xs" |
| TextShadow | — | added .xxs = "text-shadow-2xs" |
| TextOverflow | overflow-ellipsis |
added .ellipsis = "text-ellipsis" |
| Whitespace | whitespace-normal |
fixed rawValue from "normal" |
| TransitionBehavior | transition-allow-discrete |
transition-discrete |
| TransitionTiming | — | added .initial = "ease-initial" |
| ScrollSnapType | — | added .mandatory, .proximity |
| ScrollSnapAlign | snap-none |
snap-align-none |
| Blur | .md = "blur" (bare) |
"blur-md"; added .xxxl = "blur-3xl" |
| BackdropBlur | .md = "backdrop-blur" (bare) |
"backdrop-blur-md"; added .xxxl = "backdrop-blur-3xl" |
| DropShadow | .md = "drop-shadow" (bare) |
"drop-shadow-md" |
| BorderRadius | .md = "rounded" (bare) |
"rounded-md"; added .fourxl = "rounded-4xl" |
| TextWrap | "wrap" |
"text-wrap" |
| VerticalAlign | "baseline" |
"align-baseline" |
New modifier functions
- Layout:
flexWrap,flexGrow,flexShrink,alignContent,alignSelf,gapY,insetTop,insetRight,insetBottom,insetLeft,insetX,insetY,aspect,columns,order,float,clear,overflowX,overflowY,overscrollBehavior/X/Y,objectFit,objectPosition,isolation,boxSizing,breakAfter/Before/Inside,boxDecorationBreak,gridTemplateColumns/Rows,gridColumn/Start/End,gridRow/Start/End,gridAutoFlow/Columns/Rows,flexBasis,justifyItems,justifySelf,placeContent/Items/Self
Bug fixes
insetdirectional functions — renamed fromtop()/right()/bottom()/left()toinsetTop()/insetRight()/insetBottom()/insetLeft()(avoided ambiguity with Spacing)insetdouble-prefix — fixedinset-inset-*bug in directional variantsTWTInset— added.arbitrary(String)for bracket syntaxTWTLineHeight— added.value(Double)and.arbitrary(String)cases- Color opacity — all color modifier functions now forward the
opacity:parameter correctly - Various tokens — added missing
.container,.fraction,.arbitrarycases
Testing
- 169 snapshot tests (up from 145) across 17 suites
- Every Layout modifier function covered with at least one test + variant test
- Value patterns (
.size(N),.number(N),.value(N),.arbitrary("…"),.fraction) tested per function
Full Changelog: 0.1.102...0.2.000