Skip to content

Commit

Permalink
fix (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Dec 13, 2024
1 parent d4c7ea4 commit 436ed87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/buildTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ export const buildDesignTokens = async (buildOptions: ConfigGeneratorOptions): P
* Internal Colors
* ----------------------------------- */
try {
for (const {filename, source, include} of themes) {
for (const {filename, source, include, theme} of themes) {
// build functional scales
const extendedSD = await PrimerStyleDictionary.extend({
source: [...source, ...include], // build the special formats
include,
platforms: {
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {themed: true}),
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {
themed: true,
theme,
}),
},
})
await extendedSD.buildAllPlatforms()
Expand Down

0 comments on commit 436ed87

Please sign in to comment.