You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I began implementing I was getting frustrated that the types in my theme object were still a bit loose. I wouldn't know until runtime that I mistyped a color or a border radius key. To remedy this I created a couple of helper functions:
Hi there, thanks for posting this suggestion! I'm currently on vacation until July 13, but I'll see if I can get someone else on the team to read through and share their thoughts on this before that.
Hey everyone, Great project!
As I began implementing I was getting frustrated that the types in my theme object were still a bit loose. I wouldn't know until runtime that I mistyped a color or a border radius key. To remedy this I created a couple of helper functions:
Used as:
This enforces type safety on the variants appropriately!
If this is an interesting enough concept to the maintainers I can submit a PR and expose these two functions for common use.
The text was updated successfully, but these errors were encountered: