# from_css_color 0.0.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.0.1'
```
Published: 2020-05-05T22:22:23.932879Z
Expected archive SHA-256: c42d75c8f5ca185b88b36d7fbb2504fc2f22f1354d910c9b0588c71138c64f56

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

* Support for 3 and 6 digit hex colors.
* Support for rgb/rgba colors.
* Support for X11 keywords.







 
