Design comparison
SolutionDesign
Solution retrospective
What specific areas of your project would you like help with?
This is my first time using Sass. I would like to know any tips to help me structure my Sass better. I feel like the mixins could be simplified.
Community feedback
- @mikov144Posted 3 months ago
Hi! It's generally a good practice to divide your sass styles into a different modules (.scss files) and then @import them inside of your style.scss. Or @use, but variables and mixins won't work with it, so you gonna have to add them to the beginning of each scss file (if needed) with:
@use 'variables' as *;
@use 'mixins' as *;
Good luck!
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