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

https://github.com/mcavallo/alfred-color-name-ruby

Get the name for a hex color. Ruby version.
https://github.com/mcavallo/alfred-color-name-ruby

alfred-workflow colors css ruby sass

Last synced: about 1 year ago
JSON representation

Get the name for a hex color. Ruby version.

Awesome Lists containing this project

README

          

# Alfred Workflow: Color Name (Ruby)

Based on [Name that Color](http://chir.ag/projects/name-that-color/). Built as an Alfred workflow for convenience with some tweaks to fit my personal needs.

![](https://raw.githubusercontent.com/mcavallo/alfred-color-name-ruby/master/assets/screenshot_001.png)

![](https://raw.githubusercontent.com/mcavallo/alfred-color-name-ruby/master/assets/screenshot_002.png)

## Choose what to copy

The workflow has the following modifiers:

Modifier | Result | Example
-------- | ------ | -------
None | SASS variable name | `$color-dove-gray`
⌃ (Control) | SASS variable definition | `$color-dove-gray: #6D6C6C;`
⌘ (Cmd) | Color hex | `#6D6C6C`
⌥ (Option) | Color RGB | `rgb(109, 108, 108)`

## Requirements

- Alfred 3
- Modern version of Ruby 2.0+ (OS X 10.10 ships with 2.0)

## Credits

- PNG generation done with [chunky_png](https://github.com/wvanbergen/chunky_png) by [wvanbergen](https://github.com/wvanbergen)
- Icon by [FreeIconsPNG](http://www.freeiconspng.com/free-images/color-icon-12533)

## License

Copyright (c) 2016 Mariano Cavallo. MIT Licensed, see [LICENSE](https://raw.githubusercontent.com/mcavallo/alfred-color-name-ruby/master/LICENSE) for details.