Skip to content

Inline color hints for Sublime Text

License

Notifications You must be signed in to change notification settings

braver/ColorHints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1673090 · Feb 26, 2025

History

40 Commits
Jun 11, 2023
Feb 26, 2025
Nov 29, 2019
Nov 29, 2019
Aug 18, 2021
Aug 18, 2021
Apr 8, 2019
May 16, 2020
Apr 6, 2019
Apr 8, 2019
Jul 27, 2024
Feb 26, 2025
Jun 11, 2023

Repository files navigation

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 @facelessuser for the utils and libraries that make this possible. The Pantone reference files were dowloaded 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!