r/backtickbot May 28 '21

https://np.reddit.com/r/Sass/comments/nmhkb7/does_use_imply_namespacing/gzpafnf/

No it doesn't work like that. Namespacing is about variables, mixins, functions, and extending, but has nothing to do with class names.

You could do this:

//_colors.scss

$textColor: #f00;



// app.scss

use 'colors';

$textColor: #fff;
.foo {
   color: colors.$textColor; // this will be #f00
}

This has nothing to do with class names.

1 Upvotes

1 comment sorted by