spark_css 1.0.0-alpha.4 copy "spark_css: ^1.0.0-alpha.4" to clipboard
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 CssTransitionProperty sealed 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) plus variable() and raw() constructors.
  • Feat: Added CssDuration sealed class with ms(), s(), variable(), and raw() constructors for type-safe CSS duration values.

Changed #

  • Breaking Change: CssTransition now accepts CssTransitionProperty instead of String for the property parameter, and CssDuration instead of String for duration and delay parameters.

1.0.0-alpha.3 #

Added #

  • Coverage: Achieved 100% test coverage across the entire package.
  • Feat: Moved CssAngle to 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.hueRotate now accepts a CssAngle instead of a num.
  • Breaking Change: CssGradientDirection.angle now accepts a CssAngle instead of a String.

1.0.0-alpha.2 #

Added #

  • Feat: Massive expansion of the type-safe CSS system and integration into Style.typed.
    • Added CssBackgroundImage with support for url(), linear-gradient(), and radial-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 CssBorderRadius and CssFlexShorthand.
    • Breaking Change: Updated Style.typed to use these new types for its parameters, significantly improving type safety and developer experience.

1.0.0-alpha.1 #

  • Initial release extracted from spark_framework package.
  • 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.product flag.
  • Pure Dart package with zero runtime dependencies.
0
likes
140
points
331
downloads

Publisher

verified publisherkleak.dev

Weekly Downloads

Type-safe CSS style system for Spark framework.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on spark_css