-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(exporter-scss): Fix exporter to make it work again after Supernov…
…a token changes #DS-936 Changes: - Split Radius tokens to separate file - Remove font weight normalization as it is not needed anymore - Add temporary hack to make font style italic based on name, until Supernova makes it clear how to do it in JS - Fix token grouping
- Loading branch information
Showing
15 changed files
with
141 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"author": "Jan Kryšpín <[email protected]>", | ||
"organization": "LMC s.r.o.", | ||
"source_dir": "src", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"usesBrands": true, | ||
"config": { | ||
"sources": "sources.json", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 21 additions & 8 deletions
29
exporters/scss/src/js/generators/__tests__/__snapshots__/typography.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`generateTypography should generate simple output 1`] = ` | ||
"$basepink-10: ( | ||
: ( | ||
"$body-medium-text-italic: ( | ||
mobile: ( | ||
font-family: "'Ebony', sans-serif", | ||
font-size: 1rem, | ||
font-style: italic, | ||
font-weight: 300, | ||
line-height: 0.1, | ||
letter-spacing: 10, | ||
text-indent: 10, | ||
), | ||
) !default; | ||
$body-medium-text-light: ( | ||
mobile: ( | ||
font-family: "'Test', sans-serif", | ||
font-size: 1rem, | ||
font-style: normal, | ||
font-weight: test, | ||
font-weight: 300, | ||
line-height: 0.1, | ||
letter-spacing: 10, | ||
text-indent: 10, | ||
), | ||
) !default; | ||
$basepink-20: ( | ||
: ( | ||
$body-medium-text-regular: ( | ||
mobile: ( | ||
font-family: "'Test', sans-serif", | ||
font-size: 1rem, | ||
font-style: normal, | ||
font-weight: test, | ||
font-weight: 400, | ||
line-height: 0.1, | ||
letter-spacing: 10, | ||
text-indent: 10, | ||
), | ||
) !default; | ||
$styles: ( | ||
basepink-10: $basepink-10, | ||
basepink-20: $basepink-20, | ||
body-medium-text-italic: $body-medium-text-italic, | ||
body-medium-text-light: $body-medium-text-light, | ||
body-medium-text-regular: $body-medium-text-regular, | ||
) !default; | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.