Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSass variables should (optionally?) have `!default` flag #307
Comments
|
I like having |
|
I was just picturing it being an option on the format in the config—beyond that, not sure. I guess the token level makes sense for overrides, not sure about file level…are there other options/features that work at the file level? |
Oh, I think I was multi-tasking when I wrote this, I just meant "so we can choose whether or not downstream users can override the variables," full stop. I don't know if I can conjure a reason we'd want the default flag on some tokens but not others, but it doesn't seem out of the question. |
For any token definition that includes the property `themeable: true`, a `!default` will now be added in the scss/variables format. GitHub issue amzn#307
For any token definition that includes the property `themeable: true`, a `!default` will now be added in the scss/variables format. GitHub issue amzn#307
Fixes #307 For any token definition that includes the property `themeable: true`, a `!default` will now be added in the scss/variables format.
|
We merged in #359 onto the 3.0 branch targeting the next major release. We will keep this issue open until the release. We want to see if this flag |


In the
scss/map-deepformat, the variables it generates (for use in the map) have the!defaultflag:…whereas the
scss/variablesformat doesn't have that:Is there a reason why one has it and the other doesn't? To me, it seems like:
!defaultshould be added as an option so we can choose whether or not we want them to be able to override the variables from the configuration. (I guess that's a feature request.