An open API service indexing awesome lists of open source software.

https://github.com/g1eny0ung/alfred-colors-workflow

Convert CSS colors between hex, rgb, hsl in Alfred.
https://github.com/g1eny0ung/alfred-colors-workflow

alfred alfred-workflow hex hsl rgb

Last synced: 3 months ago
JSON representation

Convert CSS colors between hex, rgb, hsl in Alfred.

Awesome Lists containing this project

README

        

# Alfred-Colors-workflow

[Download](https://github.com/g1eny0ung/Alfred-Colors-workflow/raw/master/dist/Colors.alfredworkflow)

Convert CSS colors between **hex, rgb, hsl** in Alfred.

The keyword is **`c`**, you can change it with your habit.

![demo](demo.gif)

## Pre-installation

```sh
brew install ruby
gem install chunky_png
```

## Formats

### keywords

> Use keywords to represent colors, you can find all keywords in .

- black => #000
- darkblue => #00008b
- yellowgreen => #9acd32

### hex

> Use hex to represent colors, you can use the following formats (`#` can be omitted):

- #ffffff
- ffffff
- #fff
- fff

### rgb

> Use rgb to represent colors, you can use the following formats (the `rgb()` wrapper can be omitted):

- rgb(255, 255, 255)
- rgb(255-255-255)
- rgb(255 255 255)
- rgb(255|255|255)

### hsl

> Use hsl to represent colors, you can use the following formats (the `hsl()` wrapper can be omitted):

- hsl(0, 0%, 100%)
- same as rgb

## Credits

Color picker icons created by Freepik - Flaticon