html-colors
is an Espanso package that allows
you to insert HTML color codes into your text seamlessly. By using this
package, shortcuts like ##red
are automatically replaced with their
corresponding hex color codes (e.g., #FF0000
). You can also retrieve
RGB color codes and the color family. It is designed to work in
conjunction with the
html-utils-package
.
This package is inspired by Jenny Knuth’s gist. A big thank you to Jenny!
To install the latest released version of html-colors
, use Espanso
Hub:
espanso install html-colors
To install the development version directly from GitHub, use:
espanso install html-colors --git https://github.com/danielvartan/html-colors/ --external
Once installed, html-colors
will replace the specified shortcuts with
their corresponding character as you type.
The ##
prefix was used to avoid conflicts with social media hashtags
and the
html-utils-package
.
If you feel like there’s any important tag/snippet missing, feel free to create a Pull Request or open an Issue.
html-colors
code is released under the MIT
license.