Skip to content
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

Re-do of global namespace removal, and transform action update to support multi files #49

Merged
merged 7 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Style dictionary build
on:
push:
paths:
- 'data/tokens.json'
- 'config.json'
- 'build.js'
- "data/core.json"
- "config.json"
- "build.js"
branches-ignore:
- 'main'
- "main"

jobs:
transform_tokens:
Expand Down
13 changes: 4 additions & 9 deletions build/native/colors.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

export const base : string;
export const emphasis : string;
export const subdued : string;
export const level0 : string;
export const level1 : string;
export const level2 : string;
export const level3 : string;
export const green100 : string;
export const green200 : string;
export const green300 : string;
Expand Down Expand Up @@ -57,4 +50,6 @@ export const grey400 : string;
export const grey500 : string;
export const grey600 : string;
export const grey700 : string;
export const grey800 : string;
export const grey800 : string;
export const shadeswhite : string;
export const shadesblack : string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll do a follow up transformer to get rid of the shades prefix

13 changes: 4 additions & 9 deletions build/native/colors.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

module.exports = {
"base": "#2E3A47",
"emphasis": "#36485C",
"subdued": "#596D84",
"level0": "#F5F7FA",
"level1": "#FFF",
"level2": "#FCFEFF",
"level3": "#FFF",
"green100": "#FAFFFC",
"green200": "#EBF2EF",
"green300": "#D1E0D9",
Expand Down Expand Up @@ -58,5 +51,7 @@ module.exports = {
"grey500": "#596D84",
"grey600": "#475A70",
"grey700": "#36485C",
"grey800": "#2E3A47"
"grey800": "#2E3A47",
"shadeswhite": "#FFFFFF",
"shadesblack": "#000000"
};
2 changes: 1 addition & 1 deletion build/native/typography.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

export const letterSpacingBase : number;
Expand Down
2 changes: 1 addition & 1 deletion build/native/typography.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

module.exports = {
Expand Down
13 changes: 4 additions & 9 deletions build/scss/colors.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@

// Do not edit directly
// Generated on Wed, 03 Aug 2022 13:50:24 GMT
// Generated on Thu, 04 Aug 2022 14:54:26 GMT

$base: #2E3A47;
$emphasis: #36485C;
$subdued: #596D84;
$level0: #F5F7FA;
$level1: #FFF;
$level2: #FCFEFF;
$level3: #FFF;
$green100: #FAFFFC;
$green200: #EBF2EF;
$green300: #D1E0D9;
Expand Down Expand Up @@ -56,4 +49,6 @@ $grey400: #C8D3E0;
$grey500: #596D84;
$grey600: #475A70;
$grey700: #36485C;
$grey800: #2E3A47;
$grey800: #2E3A47;
$shadeswhite: #FFFFFF;
$shadesblack: #000000;
2 changes: 1 addition & 1 deletion build/scss/typography.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Do not edit directly
// Generated on Wed, 03 Aug 2022 13:50:24 GMT
// Generated on Thu, 04 Aug 2022 14:54:26 GMT

$letterSpacingBase: 0;
$paragraphSpacingBase: 0;
Expand Down
13 changes: 4 additions & 9 deletions build/ts/colors.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

export const base : string;
export const emphasis : string;
export const subdued : string;
export const level0 : string;
export const level1 : string;
export const level2 : string;
export const level3 : string;
export const green100 : string;
export const green200 : string;
export const green300 : string;
Expand Down Expand Up @@ -57,4 +50,6 @@ export const grey400 : string;
export const grey500 : string;
export const grey600 : string;
export const grey700 : string;
export const grey800 : string;
export const grey800 : string;
export const shadeswhite : string;
export const shadesblack : string;
13 changes: 4 additions & 9 deletions build/ts/colors.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

module.exports = {
"base": "#2E3A47",
"emphasis": "#36485C",
"subdued": "#596D84",
"level0": "#F5F7FA",
"level1": "#FFF",
"level2": "#FCFEFF",
"level3": "#FFF",
"green100": "#FAFFFC",
"green200": "#EBF2EF",
"green300": "#D1E0D9",
Expand Down Expand Up @@ -58,5 +51,7 @@ module.exports = {
"grey500": "#596D84",
"grey600": "#475A70",
"grey700": "#36485C",
"grey800": "#2E3A47"
"grey800": "#2E3A47",
"shadeswhite": "#FFFFFF",
"shadesblack": "#000000"
};
2 changes: 1 addition & 1 deletion build/ts/typography.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

export const letterSpacingBase : number;
Expand Down
2 changes: 1 addition & 1 deletion build/ts/typography.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Wed, 03 Aug 2022 13:50:24 GMT
* Generated on Thu, 04 Aug 2022 14:54:26 GMT
*/

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"source": ["data/transformed-tokens.json"]
"source": ["data/transformed-core.json"]
}
1 change: 1 addition & 0 deletions data/$themes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading