zachdaniel / tails

Utilities for working with tailwind classes, like semantic merge, and conditional class lists.
MIT License
81 stars 9 forks source link

improvement: support deeply-nested theme colors #7

Closed rellen closed 1 year ago

rellen commented 1 year ago

Theme colors in tailwind can be deeply-nested, e.g. "my_theme": {"neutral": {"gray": "#DDDDDD", ...}}

Originally, these classes were not surfaced by Tails so it was not able to merge classes using them with other color-related classes.

Tails.Colors.all_color_classes can be changed to support these deeply-nested themes so that they are surfaced correctly.

Contributor checklist

zachdaniel commented 1 year ago

🚀Thank you for your contribution!🚀