@@ -42,7 +42,7 @@ const getStyleDictionaryConfig: StyleDictionaryConfigGenerator = (
42
42
Object . entries ( {
43
43
css : css ( `css/${ filename } .css` , options . prefix , options . buildPath , {
44
44
themed : options . themed ,
45
- theme : [ options . theme , getFallbackTheme ( options . theme ) ] ,
45
+ theme : [ options . theme /* , getFallbackTheme(options.theme)*/ ] ,
46
46
} ) ,
47
47
docJson : docJson ( `docs/${ filename } .json` , options . prefix , options . buildPath , {
48
48
theme : [ options . theme , getFallbackTheme ( options . theme ) ] ,
@@ -60,26 +60,26 @@ export const buildDesignTokens = async (buildOptions: ConfigGeneratorOptions): P
60
60
/** -----------------------------------
61
61
* Internal Colors
62
62
* ----------------------------------- */
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
+ }
83
83
84
84
/** -----------------------------------
85
85
* Colors, shadows & borders
0 commit comments