spark_css 1.0.0-alpha.4
spark_css: ^1.0.0-alpha.4 copied to clipboard
Type-safe CSS style system for Spark framework.
Changelog #
1.0.0-alpha.4 #
Added #
- 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.
Changed #
- Breaking Change:
CssTransitionnow acceptsCssTransitionPropertyinstead ofStringfor thepropertyparameter, andCssDurationinstead ofStringfordurationanddelayparameters.
1.0.0-alpha.3 #
Added #
- 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.
Changed #
- Breaking Change:
CssFilter.hueRotatenow accepts aCssAngleinstead of anum. - Breaking Change:
CssGradientDirection.anglenow accepts aCssAngleinstead of aString.
1.0.0-alpha.2 #
Added #
- 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
1.0.0-alpha.1 #
- 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.