Skip to content

Strategies to avoid combinatorial explosions for tokens & states #32

Answered by markdalgleish
danielberndt asked this question in Q&A
Discussion options

You must be logged in to vote

Congrats on the migration! That's awesome 👏

The way we deal with this is to only put things on Box that are very commonly needed. This can also be evaluated for each individual prop, which helps cut down on the combinatorial explosion.

For example, only some of our props support responsive arrays, e.g. in our system padding is a responsive prop but background isn't because we very rarely change colours responsively. In addition, looking at your example, I'd say you might find that only some of your props need hover/focus support too.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danielberndt
Comment options

@duarten
Comment options

Answer selected by danielberndt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants