Submitted almost 3 years ago
Order Summary Component Main / Display Flex
@Yohan-Marques
Design comparison
SolutionDesign
Solution retrospective
I would like your Feedback, to correct something that is messy or wrong in my code and to have a different point of view to aggregate in my knowledge. Thank you in advance. 🙏🙏🙏
Community feedback
- @jgengo-altPosted almost 3 years ago
Good job Yohan!
I would suggest you take a look at css var : https://www.w3schools.com/css/css3_variables.asp
so basically you could have a :
:root { --color-one: hsl(...); --color-two: hsl(...); }
and you can re-use it anywhere you want by just writing
.myClass { color: var(--color-one); }
That's a nice trick, and can be useful to quickly change the color in the futur since you need to replace it only in one place ;)
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord