@@ -61,14 +61,14 @@ const buildFigma = async (buildOptions: ConfigGeneratorOptions): Promise<void> =
61
61
await extended . buildAllPlatforms ( )
62
62
}
63
63
//
64
- for ( const { filename, source, include} of themes ) {
64
+ for ( const { filename, source, include, theme } of themes ) {
65
65
// build functional scales
66
66
const extended = await PrimerStyleDictionary . extend ( {
67
67
source,
68
68
include,
69
69
platforms : {
70
70
figma : figma ( `figma/themes/${ filename } .json` , buildOptions . prefix , buildOptions . buildPath , {
71
- theme : filename . replaceAll ( '-' , ' ' ) ,
71
+ theme : [ theme , getFallbackTheme ( theme ) ] ,
72
72
} ) ,
73
73
} ,
74
74
} )
@@ -146,7 +146,7 @@ const buildFigma = async (buildOptions: ConfigGeneratorOptions): Promise<void> =
146
146
`src/tokens/functional/color/light/primitives-light.json5` ,
147
147
`src/tokens/functional/color/light/patterns-light.json5` ,
148
148
] ,
149
- theme : 'light colorblind ' ,
149
+ theme : 'light protanopia deuteranopia ' ,
150
150
} ,
151
151
{
152
152
name : 'light-tritanopia' ,
@@ -205,7 +205,7 @@ const buildFigma = async (buildOptions: ConfigGeneratorOptions): Promise<void> =
205
205
`src/tokens/functional/color/dark/primitives-dark.json5` ,
206
206
`src/tokens/functional/color/dark/patterns-dark.json5` ,
207
207
] ,
208
- theme : 'dark colorblind ' ,
208
+ theme : 'dark protanopia deuteranopia ' ,
209
209
} ,
210
210
{
211
211
name : 'dark-tritanopia' ,
@@ -289,8 +289,8 @@ const buildFigma = async (buildOptions: ConfigGeneratorOptions): Promise<void> =
289
289
'dark dimmed' ,
290
290
'light high contrast' ,
291
291
'dark high contrast' ,
292
- 'light colorblind ' ,
293
- 'dark colorblind ' ,
292
+ 'light protanopia deuteranopia ' ,
293
+ 'dark protanopia deuteranopia ' ,
294
294
'light tritanopia' ,
295
295
'dark tritanopia' ,
296
296
] . reverse ( )
0 commit comments