¶
rich-color-ext extends the Rich library to parse 3-digit hex colors (#09F→#0099FF) and CSS color names (rebeccapurple→#663399). This project allows Rich users to write color names or short hex codes and have them correctly parsed into Rich Color instances.
Latest release
rich-color-ext is currently at v0.1.9 (2025-11-19). Check the changelog for recent updates.
To verify the version you have installed, run
Key features¶
- Parse 3-digit hex colors like
#abc→#AABBCC - Parse CSS color names
rebeccapurple,mediumslateblue - Lightweight monkey-patch to Rich's
Color.parseto add the above support.
For installation instructions, usage examples, packaging notes and more, see the sections linked from the navigation.