Skip to content

Commit 436ed87

Browse files
fix (#1128)
1 parent d4c7ea4 commit 436ed87

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/buildTokens.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,16 @@ export const buildDesignTokens = async (buildOptions: ConfigGeneratorOptions): P
5858
* Internal Colors
5959
* ----------------------------------- */
6060
try {
61-
for (const {filename, source, include} of themes) {
61+
for (const {filename, source, include, theme} of themes) {
6262
// build functional scales
6363
const extendedSD = await PrimerStyleDictionary.extend({
6464
source: [...source, ...include], // build the special formats
6565
include,
6666
platforms: {
67-
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {themed: true}),
67+
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {
68+
themed: true,
69+
theme,
70+
}),
6871
},
6972
})
7073
await extendedSD.buildAllPlatforms()

0 commit comments

Comments
 (0)