MCPcopy Create free account
hub / github.com/cloudflare/kumo / getAllVariantData

Function getAllVariantData

packages/kumo-figma/src/generators/code.ts:345–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343 * @returns Complete intermediate data including base styles, lang config, and variants
344 */
345export function getAllVariantData() {
346 const baseStyles = getBaseStyles();
347 const langConfig = getLangConfig();
348
349 // Build variant data for each lang
350 const variants = langConfig.values.map(function (lang) {
351 return {
352 lang: lang,
353 description: langConfig.descriptions[lang],
354 };
355 });
356
357 return {
358 baseStyles: baseStyles,
359 langConfig: langConfig,
360 variants: variants,
361 };
362}

Callers 1

code.test.tsFile · 0.90

Calls 2

getLangConfigFunction · 0.85
getBaseStylesFunction · 0.70

Tested by

no test coverage detected