Skip to content

Commit

Permalink
add internalCss output (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Mar 18, 2024
1 parent eadfb35 commit f77bbc8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/buildTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@ export const buildDesignTokens = (buildOptions: ConfigGeneratorOptions): void =>
/** -----------------------------------
* Colors, shadows & borders
* ----------------------------------- */
try {
for (const {filename, source, include} of themes) {
// build functional scales
PrimerStyleDictionary.extend({
source: [...source, ...include], // build the special formats
include,
platforms: {
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {themed: true}),
},
}).buildAllPlatforms()
}
} catch (e) {
// eslint-disable-next-line no-console
console.error('🛑 Error trying to build internal css colors for code output:', e)
}

/** -----------------------------------
* Internal Colors
* ----------------------------------- */
try {
for (const {filename, source, include} of themes) {
// build functional scales
Expand Down

0 comments on commit f77bbc8

Please sign in to comment.