Skip to content

Commit b7d3452

Browse files
test
1 parent 161f797 commit b7d3452

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

scripts/buildTokens.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getStyleDictionaryConfig: StyleDictionaryConfigGenerator = (
4242
Object.entries({
4343
css: css(`css/${filename}.css`, options.prefix, options.buildPath, {
4444
themed: options.themed,
45-
theme: [options.theme, getFallbackTheme(options.theme)],
45+
theme: [options.theme /*, getFallbackTheme(options.theme)*/],
4646
}),
4747
docJson: docJson(`docs/${filename}.json`, options.prefix, options.buildPath, {
4848
theme: [options.theme, getFallbackTheme(options.theme)],
@@ -60,26 +60,26 @@ export const buildDesignTokens = async (buildOptions: ConfigGeneratorOptions): P
6060
/** -----------------------------------
6161
* Internal Colors
6262
* ----------------------------------- */
63-
// try {
64-
// for (const {filename, source, include, theme} of themes) {
65-
// // build functional scales
66-
// const extendedSD = await PrimerStyleDictionary.extend({
67-
// source: [...source, ...include], // build the special formats
68-
// include,
69-
// log,
70-
// platforms: {
71-
// css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {
72-
// themed: true,
73-
// theme: [theme, getFallbackTheme(theme)],
74-
// }),
75-
// },
76-
// })
77-
// await extendedSD.buildAllPlatforms()
78-
// }
79-
// } catch (e) {
80-
// // eslint-disable-next-line no-console
81-
// console.error('🛑 Error trying to build internal css colors for code output:', e)
82-
// }
63+
try {
64+
for (const {filename, source, include, theme} of themes) {
65+
// build functional scales
66+
const extendedSD = await PrimerStyleDictionary.extend({
67+
source: [...source, ...include], // build the special formats
68+
include,
69+
log,
70+
platforms: {
71+
css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {
72+
themed: true,
73+
theme: [theme, getFallbackTheme(theme)],
74+
}),
75+
},
76+
})
77+
await extendedSD.buildAllPlatforms()
78+
}
79+
} catch (e) {
80+
// eslint-disable-next-line no-console
81+
console.error('🛑 Error trying to build internal css colors for code output:', e)
82+
}
8383

8484
/** -----------------------------------
8585
* Colors, shadows & borders

0 commit comments

Comments
 (0)