from_css_color 1.1.0 from_css_color: ^1.1.0 copied to clipboard
Creates Color instance from CSS color string according to https://drafts.csswg.org/css-color-3
1.1.0 #
- Add
toCssColor()
extension method to convert Color instance to CSS color string.
1.0.0 #
- Add support for 4 (#rgba) and 8 (#rrggbbaa) digit hex colors.
- Update versioning to stable after 3 months of usage in production (no breaking changes expected).
0.1.1 #
- Update readme and file formatting.
0.1.0 #
- Support for 'transparent' color keyword.
- Support for hsl/hsla colors.
0.0.1 #
- Support for 3 and 6 digit hex colors.
- Support for rgb/rgba colors.
- Support for X11 keywords.