posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.9k stars 71 forks source link

Allow for manual CSS style rules in `style=` arg of `tab_style()` #433

Open rich-iannone opened 2 months ago

rich-iannone commented 2 months ago

While we can add quite a few cell styles using style.text(...) and style.fill(...) there may be CSS styles that would be useful to have in a table but don't have a dedicated argument. For this reason, it would be good to be able to add CSS rules as strings (e.g., "font-variant: small-caps;").