-
-
Save Snugug/fcbfb6e3409a25100785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports zip.sass, zip.scss, or zip.css *nontransitively* with a "zip" prefix. | |
@use "zip"; | |
// Uses the "foo" mixin from zip. | |
@include zip-foo; | |
// The prefix is now "zap". | |
@use "zip" as zap; | |
// Everything is in the global namespace. | |
@use "zip" without prefix; | |
// Mixins named "foo" are completely invisible. | |
@use "zip" hide foo; | |
// Selectors including ".bar" aren't included and aren't extendable. | |
@use "zip" hide selector .bar; | |
// No mixins are visible. | |
@use "zip" hide all mixins; | |
// Nothing other than mixins or functions named "foo" are visible. | |
@use "zip" show foo; | |
// Everything in "zip" is visible to importers of this file. | |
// Supports all the same options as @use. | |
@export "zip"; | |
// If we want to make this work well with guarded assignment, we'll need something like this: | |
@use "zip" with $var: value, | |
$other-var: other-value; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment