-
Notifications
You must be signed in to change notification settings - Fork 569
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
feature request possibly: outputReferences
to the scss/map-deep
#712
Comments
notlee
added a commit
to notlee/style-dictionary
that referenced
this issue
Oct 19, 2021
Use the `formattedVariables` within the `scss/map-deep` formatter to add support for the `outputReferences` option. Closes: amzn#712 A side effect of this change is that `scss/map-deep` also supports the `themeable` token property. For backward compatibility changes have been made so tokens default to being themeable with `scss/map-deep`, unlike for `scss/variables` where tokens are not themeable by default. See amzn#474
Hi, I came across the same thing and had a go at adding support here: #720 |
Oh, sorry, I didn't read your issue properly. My interpretation of how an before: $color-core-neutral-0: #ffffff !default;
$color-background-primary: #ffffff !default;
$design-system-tokens: (
'color': (
'background': (
'primary': $color-background-primary
),
'neutral': (
'0': $color-core-neutral-0,
)
)
) after: $color-core-neutral-0: #ffffff !default;
$color-background-primary: $color-core-neutral-0 !default;
$design-system-tokens: (
'color': (
'background': (
'primary': $color-background-primary
),
'neutral': (
'0': $color-core-neutral-0,
)
)
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
feature request possibly:
outputReferences
to the scss/map-deephttps://amzn.github.io/style-dictionary/#/formats?id=scssmap-deep
before:
ideally after:
minimal example: https://github.com/JackHowa/auto-rebuild-watcher-scss-css/tree/POC-update-font-color-watch-theme
Originally posted by @JackHowa in #643 (comment)
The text was updated successfully, but these errors were encountered: