-
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.
fixup! Feat(variables-scss): Export to javascript #DS-1437
- Loading branch information
Showing
15 changed files
with
68 additions
and
56 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
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,2 +1,5 @@ | ||
# Generated files used by Supernova | ||
generated | ||
|
||
# variable-scss exporter example mock test files | ||
**/__fixtures__/**/unformatted*.* |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
exporters/variables-scss/src/formatters/__fixtures__/unformattedExample.scss
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$my-var: ( | ||
color: #000, | ||
background: #fff, | ||
border: 1px solid #000, | ||
) !default; | ||
|
||
$gradient-basic-overlay: linear-gradient(var(--gradient-angle, 0deg), #fff 0%, #fff0 100%) !default; |
10 changes: 10 additions & 0 deletions
10
exporters/variables-scss/src/formatters/__fixtures__/unformattedExample.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const gridSpacingDesktop = '32px'; | ||
|
||
export const gridColumns = '12'; | ||
|
||
export const grids = { | ||
spacing: { | ||
desktop: gridSpacingDesktop, | ||
}, | ||
columns: gridColumns, | ||
}; |
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
7 changes: 7 additions & 0 deletions
7
exporters/variables-scss/src/generators/__fixtures__/barrelFileMock.scss
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@forward 'borders'; | ||
@forward 'other'; | ||
@forward 'radii'; | ||
@forward 'spacing'; | ||
@forward 'shadows'; | ||
@forward 'gradients'; | ||
@forward 'typography'; |
12 changes: 12 additions & 0 deletions
12
exporters/variables-scss/src/generators/__fixtures__/mockedRootThemeFile.scss
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@use 'themes/theme-light'; | ||
@use 'themes/theme-light-inverted'; | ||
|
||
// The first theme is the default theme, as the left column in the Figma table. | ||
$themes: ( | ||
theme-light: ( | ||
colors: theme-light.$colors, | ||
), | ||
theme-light-inverted: ( | ||
colors: theme-light-inverted.$colors, | ||
), | ||
); |
6 changes: 6 additions & 0 deletions
6
exporters/variables-scss/src/generators/__fixtures__/unformattedExample.scss
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$grids: ( | ||
columns: $grid-columns, | ||
spacing: ( | ||
desktop: $grid-spacing-desktop, | ||
), | ||
) !default; |
6 changes: 6 additions & 0 deletions
6
exporters/variables-scss/src/generators/__fixtures__/unformattedExample.ts
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const grids = { | ||
columns: gridColumns, | ||
spacing: { | ||
desktop: gridSpacingDesktop, | ||
}, | ||
}; |
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
7 changes: 0 additions & 7 deletions
7
exporters/variables-scss/tests/fixtures/unformattedExample.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["./", "./.eslintrc.cjs"] | ||
"include": ["./", "./.eslintrc.cjs"], | ||
"exclude": ["**/__fixtures__/**/unformatted*.*"] | ||
} |