New answer: Deploy your Mixin with Expression Expression validation
So, I understand that you want the namespace to be used as the default value, but without entering the global scope at all. I think you need to expand your mixin definition like this:
Then call without or with a value:
.testMixin1(); .testMixin1(red);
Outputs (depending on whether a value is set or not):
background-color: #333333; background-color: #ff0000;
OR
You can still use the "getter" mixin in your namespace, as I already noted, for example:
Original answer: Bind the variable to yourself.
If you combine the variable into the mixer itself, you can access it. So that...
Then either turn it on ...
One: globally
or two: Locally
.selector {
Both of them will be displayed ...
.selector { background-color: #333333; }
source share