
Design comparison
Solution retrospective
Me enorgullece haber aprendido más técnicas con el challenge anterior y haberlas aplicado ahora en este desafio.
What challenges did you encounter, and how did you overcome them?Mi mayo desafío fue la utilización de las fuentes ya que es la primera vez que las utilizo de esta manera
What specific areas of your project would you like help with?Me gustaría ayuda con cualquier área de mi proyecto para poder mejorar y crecer como profesional.
Community feedback
- @alaa-mekibesPosted 3 months ago
Well done good job 🎉
- Just use css variables to improved maintainability like this:
:root { --bg-color: hsl(210, 46%, 95%); /* Add your other colors here */ } body { background-color: var(--bg-color); /* Other properties */ }
Fantastic progress, keep going, you're doing brilliantly!
Marked as helpful1@abigailelisPosted 3 months ago@alaa-mekibes thank you so much, can you tell me what does this css variables?
1@alaa-mekibesPosted 3 months ago@abigailelis Hi,
CSS variables, also known as custom properties, are reusable values defined with the
--
prefix in the:root
or any otherselector
. For example::root { --main-color: #3498db; --padding: 1rem; } div { background-color: var(--main-color); padding: var(--padding); }
They help maintain consistency, make your code more readable, and allow for easier updates across your styles.
For example, if I have 5 elements with the same color and later want to change their color, I don't need to update each element individually. Instead, I can simply modify the color in the
:root
, and it will automatically apply to all the elements. This approach is especially helpful for maintaining the visual identity of the site.Marked as helpful1@abigailelisPosted 3 months ago@alaa-mekibes thank you so much for your answer !! It's very helpful for me. I didn't know about those CSS variables
1
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