-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
277 additions
and
215 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// TODO: build all currently built files using this setup | ||
|
||
const StyleDictionary = require('style-dictionary') | ||
|
||
const modes = ['compact'] | ||
|
||
console.log(`Building default mode...`) | ||
StyleDictionary.extend({ | ||
source: [ | ||
// exclude non-default modes from source | ||
`./src/**/!(*.${modes.join(`|*.`)}).tokens.json`, | ||
], | ||
|
||
platforms: { | ||
css: { | ||
transformGroup: 'css', | ||
buildPath: 'dist/', | ||
files: [ | ||
{ | ||
destination: `root.css`, | ||
format: `css/variables`, | ||
options: { | ||
outputReferences: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
|
||
json: { | ||
buildPath: 'dist/', | ||
files: [ | ||
{ | ||
destination: 'index.tokens.json', | ||
format: 'json/nested', | ||
}, | ||
], | ||
}, | ||
}, | ||
}).buildAllPlatforms() | ||
|
||
console.log(`\n\n Building compact mode...`) | ||
StyleDictionary.extend({ | ||
source: [`./src/**/*.compact.tokens.json`], | ||
platforms: { | ||
css: { | ||
transformGroup: `css`, | ||
buildPath: 'dist/', | ||
files: [ | ||
{ | ||
destination: `compact.css`, | ||
format: `css/variables`, | ||
options: { | ||
outputReferences: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}).buildAllPlatforms() |
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
36 changes: 36 additions & 0 deletions
36
proprietary/tokens/src/brand/amsterdam/typography.compact.tokens.json
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,36 @@ | ||
{ | ||
"amsterdam": { | ||
"typography": { | ||
"text-level": { | ||
"0": { | ||
"font-size": { "value": "clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem)" }, | ||
"line-height": { "value": "1.15" } | ||
}, | ||
"1": { | ||
"font-size": { "value": "clamp(1.621rem, calc(1.408vw + 1.34rem), 2.747rem)" }, | ||
"line-height": { "value": "1.2" } | ||
}, | ||
"2": { | ||
"font-size": { "value": "clamp(1.389rem, calc(1.01vw + 1.187rem), 2.197rem)" }, | ||
"line-height": { "value": "1.25" } | ||
}, | ||
"3": { | ||
"font-size": { "value": "clamp(1.191rem, calc(0.709vw + 1.049rem), 1.758rem)" }, | ||
"line-height": { "value": "1.3" } | ||
}, | ||
"4": { | ||
"font-size": { "value": "clamp(1.021rem, calc(0.481vw + 0.925rem), 1.406rem)" }, | ||
"line-height": { "value": "1.5" } | ||
}, | ||
"5": { | ||
"font-size": { "value": "clamp(0.875rem, calc(0.313vw + 0.813rem), 1.125rem)" }, | ||
"line-height": { "value": "1.6" } | ||
}, | ||
"6": { | ||
"font-size": { "value": "clamp(0.75rem, calc(0.188vw + 0.713rem), 0.9rem)" }, | ||
"line-height": { "value": "1.6" } | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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.