04. Composing all variant styles
🐇 TL;DR
- This is taking shape!
- Let’s repeat the process for the
size
andshape
variants.
🐢 Background
Our buttons still look pretty average, but you can definitely see things taking shape.
Let’s apply the same reasoning to implement dynamic styles for the size
and shape
variant permutations.
🏆 Your challenge 🏆
In the Gitpod workspace below:
-
Populate the
sizeClasses
andshapeClasses
lookup objects, just like you did for theimpact
variants. -
If you’ve done everything right, the
Button
components in the page should look exactly like the hardcoded buttons above!
✌️ Good luck!
Open in Gitpod →