Skip to content

g1eny0ung/Alfred-Colors-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfred-Colors-workflow

Download

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

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

demo

Pre-installation

brew install ruby
gem install chunky_png

Formats

keywords

Use keywords to represent colors, you can find all keywords in https://developer.mozilla.org/en-US/docs/Web/CSS/named-color.

  • 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages