-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about scss/map-deep #358
Comments
TBH I'm not as competent at Sass as I used to be so I do not have a good answer. @didoo I believe you wrote these formats initially, do you have any thoughts on this? |
@7studio look at this thread: #137 /cc @dbanksdesign |
@7studio This is still an issue, correct? |
@chazzmoney IMHO, yes it is and much more since the |
@dbanksdesign lets clean this up too |
Hey, I just opened a PR to add support for the |
Hi,
I would like to understand the
scss/map-deep
behaviour because it seems very strange to me.We will take the JSON file below as a basis for the reflection:
scss/variables
will output SCSS variable list without!default
flag.scss/map-flat
will output one single depth SCSS map.scss/map-deep
will output a list of SCSS variables with!default
flag and a SCSS map which uses the previously defined variables.I don't understand why the
scss/map-deep
is so different from the two first methods (scss/variables
andscss/map-flat
) and especially why values are not into the map like for the other map formatter.The
!default
flag is very dangerous in this case because if the tokens file is not the first to be loaded, the values can be overwritten.IMHO, the
scss/map-deep
formatter should not use a list of variables. If we want this list, we should take another way to generate it. Maybe something like below:For the moment, I'm using a custom format/formatter to remove these differences but maybe I'm wrong.
Can someone help me to understand these choices please?
Thank you☺️
The text was updated successfully, but these errors were encountered: