# from_css_color 0.1.1

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.1'
```
Published: 2020-06-18T22:20:31.828952Z
Expected archive SHA-256: dc52f291a9119217a49a73bd8348047cacd4b0a53a55eb2756214aebdbfdc86a

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(A), HSL(A) and X11 keywords are supported.

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







 
