Design comparison
SolutionDesign
Solution retrospective
I’m uncertain about my work and would appreciate a simpler solution for this project. I’m practicing my CSS and hope you can assist me with this. Thank you!
Community feedback
- @souzathgPosted about 1 year ago
Hi! Congrats on finishing this challenge!
On your next project, consider using CSS variables so you can reuse values, like this::root { /* COLORS */ --primary-dark-cyan: hsl(158, 36%, 37%); --primary-cream: hsl(30, 38%, 92%); --neutral-dark-blue: hsl(212, 21%, 14%); --neutral-grayish-blue: hsl(228, 12%, 48%); --neutral-white: hsl(0, 0%, 100%); --link-color: hsl(228, 45%, 44%); /* TYPOGRAPHY */ --sans: "Montserrat", sans-serif; --serif: "Fraunces", serif; } body { height: 100vh; width: 100vw; background-color: var(--primary-cream); display: flex; flex-direction: column; justify-content: center; align-items: center; }
I took this piece of code from another challenge I completed, but you can get the idea. You can set variables and reuse them all over your style sheet with var(--name).
Hope this feedback was help to you! Keep on coding!
Marked as helpful0
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