Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialIvan Franzone
7,328 PointsMixin and Global Mixin
Hello! What´s the difference between a "mixin" and a "global mixin"?
Thanks in advance
1 Answer
sizwengubane
15,244 PointsA mixin lets you group CSS declarations that you want to re-use throughout ur site. To create a mixin you can use the '@mixin' directive and give it a name. After creating u can use a mixin by using the '@include' keyword followed by the mixin name. A GLOBAL mixin is the SAME thing but the only difference is u can access the mixin in different style-sheets by importing the file with the mixin and calling the mixin by its name i hope u got it thanks