Improvements to the card example #2170
jenstornell
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made an improvement to the card example from here: https://tailwindcss.com/components/cards
The bottom of the card looks like this:
I've made it shorter:
What I did
flex
withgap
. That way I only need to set the display property on the parent, not on every child.font
andtext
classes to the parent for the children to inherit. There is no need to set them on every child.I hope you like it!
Beta Was this translation helpful? Give feedback.
All reactions