Skip to content

Commit

Permalink
feat: split component tokens from modes for css & scss references
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Token structure change
  • Loading branch information
druhill committed Jan 23, 2024
1 parent cab875e commit 6c4a304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ const components = readdirSync('./data/tokens/Components/')
const modes = readdirSync('./data/tokens/Modes/')

const getFiles = (modeName, format, subType, suffix) => {
const mode = format.includes('variables') ? '' : modeName
return [
...getSplit('base', modeName, format, subType, suffix, false),
...getComponents(modeName, format, subType, suffix)
...getComponents(mode, format, subType, suffix)
]
}

Expand Down

0 comments on commit 6c4a304

Please sign in to comment.