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.
- Host: GitHub
- URL: https://github.com/mcavallo/alfred-color-name-ruby
- Owner: mcavallo
- License: mit
- Created: 2016-09-10T20:22:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T16:39:00.000Z (almost 10 years ago)
- Last Synced: 2025-03-28T07:03:40.979Z (about 1 year ago)
- Topics: alfred-workflow, colors, css, ruby, sass
- Language: Ruby
- Homepage:
- Size: 490 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.


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