# from_css_color 0.1.0

Creates Color instance from CSS color string according to https://drafts.csswg.org/css-color-3




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'from_css_color:0.1.0'
```
Published: 2020-06-18T21:14:27.775644Z
Expected archive SHA-256: 62c6a3644c4dc34ce28433fc577885f8251fb140b2ff6435bf5c5e46fd439af0

Available in cache; verification: upstream_checksum
## Direct dependencies
- flutter: map[sdk:flutter]

## Package README (untrusted upstream documentation)
# From CSS Color

A package that creates Color instances from CSS color strings according to https://drafts.csswg.org/css-color-3.
Hex, RGB and X11 keywords are supported. Work on HSL is in progress and should be ready up to the next release.

## Usage

To use this plugin, add `from_css_color` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).

## Example

Import the library.

```dart
import 'package:from_css_color/from_css_color.dart';
```

And use it anywhere you want to create a Color from CSS color definition format:

```dart
Container(
  color: fromCSSColor('#ff00aa'),
  // ...
)
```

Visit examples for more details.

## Changelog
## 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.







 
