- Feat: Added
CssBackgroundsealed class for thebackgroundshorthand property with.none,.color(),.shorthand()(assembles full shorthand withposition / sizeslash syntax),.layers()(multiple backgrounds), plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssGridTemplateColumnssealed class forgrid-template-columnswith.none,.subgrid,.tracks(),.repeat(),.autoFill(),.autoFit(), plus.variable(),.raw(), and.global(). - Feat: Added
CssTrackSizesealed class for individual grid track sizes with.fr(),.length(),.minmax(),.fitContent(), and.raw(). - Feat: Added
accent-colorCSS property support viaCssColor? accentColorparameter inStyle.typed(). - Feat: Added
CssAnimationsealed class for theanimationshorthand property with.none, single animation (name, duration, timingFunction, delay, iterationCount, direction, fillMode, playState),.multiple(), plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssAnimationDirection,CssAnimationFillMode,CssAnimationPlayState, andCssAnimationIterationCountsealed classes for animation sub-properties. Reuses existingCssDurationandCssTimingFunctionfromCssTransition. - Feat: Added
CssBorderCollapsesealed class forborder-collapseproperty with.separate,.collapsekeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
border-top-color,border-right-color,border-bottom-color, andborder-left-colorCSS property support viaCssColor?parameters inStyle.typed(). - Feat: Added
CssBoxSizingsealed class forbox-sizingproperty with.contentBox,.borderBoxkeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssContentsealed class forcontentproperty with.normal,.nonekeywords,.value()for arbitrary content, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssJustifyItemssealed class forjustify-itemsproperty with.normal,.stretch,.start,.end,.center,.left,.right,.baseline,.firstBaseline,.lastBaselinekeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssListStylesealed class forlist-styleshorthand property with.nonekeyword, shorthand constructor with optionaltype,position, andimageparameters, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssListStyleTypesealed class with.disc,.circle,.square,.decimal,.nonekeywords. - Feat: Added
CssListStylePositionsealed class with.inside,.outsidekeywords. - Feat: Added
CssObjectFitsealed class forobject-fitproperty with.fill,.contain,.cover,.none,.scaleDownkeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssPointerEventssealed class forpointer-eventsproperty with.auto,.none,.visiblePainted,.visibleFill,.visibleStroke,.visible,.painted,.fill,.stroke,.allkeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssResizesealed class forresizeproperty with.none,.both,.horizontal,.vertical,.block,.inlinekeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssScrollBehaviorsealed class forscroll-behaviorproperty with.auto,.smoothkeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssTextOverflowsealed class fortext-overflowproperty with.clip,.ellipsiskeywords,.value()for custom strings, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssAspectRatiosealed class foraspect-ratioproperty with.autokeyword,.ratio(),.number(), plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssPlaceItemssealed class forplace-itemsshorthand property with align and optional justify parameters, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssPlaceContentsealed class forplace-contentshorthand property withCssAlignContentand optionalCssJustifyContentparameters, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssPlaceSelfsealed class forplace-selfshorthand property withCssAlignSelfand optionalCssJustifySelfparameters, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssJustifySelfsealed class forjustify-selfproperty with.auto,.normal,.stretch,.start,.end,.center,.left,.right,.baseline,.firstBaseline,.lastBaseline,.selfStart,.selfEndkeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssIsolationsealed class forisolationproperty with.auto,.isolatekeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssMixBlendModesealed class formix-blend-modeproperty with.normal,.multiply,.screen,.overlay,.darken,.lighten,.colorDodge,.colorBurn,.hardLight,.softLight,.difference,.exclusion,.hue,.saturation,.color,.luminositykeywords, plus.variable(),.raw(), and.global()escape hatches. - Feat: Added
CssBackgroundBlendModesealed class forbackground-blend-modeproperty with.normal,.multiply,.screen,.overlay,.darken,.lighten,.colorDodge,.colorBurn,.hardLight,.softLight,.difference,.exclusion,.hue,.saturation,.color,.luminositykeywords, plus.variable(),.raw(), and.global()escape hatches.
- Breaking Change:
Style.typed()backgroundparameter changed fromString?toCssBackground?. - Breaking Change:
Style.typed()gridTemplateColumnsparameter changed fromString?toCssGridTemplateColumns?.
- Deprecated: The
Style()untyped constructor is now deprecated in favor ofStyle.typed(). All CSS properties are now available as typed parameters.
- Feat: Added
CssTransitionPropertysealed class with typed constants for common animatable CSS properties (all,opacity,transform,backgroundColor,color,width,height,margin,padding,border,borderRadius,boxShadow,top,right,bottom,left,visibility,fontSize,lineHeight,letterSpacing,gap) plusvariable()andraw()constructors. - Feat: Added
CssDurationsealed class withms(),s(),variable(), andraw()constructors for type-safe CSS duration values.
- Breaking Change:
CssTransitionnow acceptsCssTransitionPropertyinstead ofStringfor thepropertyparameter, andCssDurationinstead ofStringfordurationanddelayparameters.
- Coverage: Achieved 100% test coverage across the entire package.
- Feat: Moved
CssAngleto its own file (css_angle.dart) and added support for CSS variables and global values. - Test: Implemented Zone-based minification testing, enabling full coverage of production CSS output logic.
- Breaking Change:
CssFilter.hueRotatenow accepts aCssAngleinstead of anum. - Breaking Change:
CssGradientDirection.anglenow accepts aCssAngleinstead of aString.
- Feat: Massive expansion of the type-safe CSS system and integration into
Style.typed.- Added
CssBackgroundImagewith support forurl(),linear-gradient(), andradial-gradient(). - Added background control types:
CssBackgroundSize,CssBackgroundPosition,CssBackgroundRepeat,CssBackgroundClip,CssBackgroundOrigin,CssBackgroundAttachment. - Added layout and spacing types:
CssFlexShorthand,CssZIndex,CssOutline,CssOutlineOffset. - Added visual effect types:
CssBoxShadow,CssTransform,CssFilter,CssBackdropFilter. - Added typography types:
CssTextShadow,CssFontStyle,CssTextDecoration,CssTextTransform,CssWhiteSpace,CssWordBreak. - Added
CssBorderRadiusandCssFlexShorthand. - Breaking Change: Updated
Style.typedto use these new types for its parameters, significantly improving type safety and developer experience.
- Added
- Initial release extracted from
spark_frameworkpackage. - Core style types:
Style,Stylesheet,CssStyle,css()helper. - Component style registry:
ComponentStyleRegistry,componentStyles. - Type-safe CSS value system:
CssColor,CssLength,CssSpacing,CssDisplay,CssPosition,CssFlex,CssOverflow,CssFont,CssText,CssCursor,CssNumber,CssBorder,CssTransition. - CSS minification support via
dart.vm.productflag. - Pure Dart package with zero runtime dependencies.