ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Color​Hints

by braver ST3

Display color preview hints inline in Sublime Text

Labels css, colors, utilities

Details

Installs

  • Total 14K
  • Win 8K
  • Mac 3K
  • Linux 3K
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 2 1 1 0 2 3 2 4 2 2 4 1 2 1 2 6 5 1 0 1 0 1 0 1 2 1 3 0 1 0 1 0 2 2 3 0 2 4 0 3 3 1 1 0 1
Mac 0 0 1 0 1 0 1 3 0 0 2 0 0 1 2 0 2 0 0 0 0 0 1 0 0 0 1 1 0 0 1 2 2 0 1 1 2 2 0 1 0 1 0 0 3 0
Linux 0 8 4 0 1 2 0 0 0 1 2 1 4 2 1 2 3 1 0 1 1 1 1 3 0 2 0 0 0 1 1 1 3 1 0 1 2 4 3 4 1 1 1 1 0 1

Readme

Source
raw.​githubusercontent.​com

ColorHints

Inline color hints for Sublime Text

Call up an inline color box displaying the color at the cursor(s). Live hints can be enabled always, never, or just in specific languages (via scope selectors). The manually called hints will stick around until the file is edited.

ColorHints currently understands:

  • hex(a)*
  • rgb(a)
  • hsl(a)
  • hwb(a)
  • css color names (e.g. “aliceblue” or “rebeccapurple”)
  • Pantone color codes (e.g. “16-1546 TCX” or “Yellow 012 C”)
  • RAL color codes (e.g. “RAL 6034”, “RAL 010 80 10”, “RAL 230-M”)

*) Set the “argb_hex” preference to true for (a)hex, ie. argb in hex values.

Notes

The alpha (opacity) value is not represented in the hint. In these small samples it's impossible to properly judge the opacity anyway, and it's usually more interesting to know the base color.

Thanks to Isaac Muse for the utils and libraries that make this possible. The Pantone reference files were downloaded from Pantone.com.

Related color utilities

This plugin just does what it says on the box: display color hints. Other packages do other nifty things with colors:

Buy me a coffee

☕️👌🏻

Please feel free to make a little donation via PayPal towards the coffee that keeps this labour of love running. It's much appreciated!