MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / htmlCodeGenTextStyles

Function htmlCodeGenTextStyles

packages/backend/src/html/htmlMain.ts:686–698  ·  view source on GitHub ↗
(settings: HTMLSettings)

Source from the content-addressed store, hash-verified

684};
685
686export const htmlCodeGenTextStyles = (settings: HTMLSettings) => {
687 const result = previousExecutionCache
688 .map(
689 (style) =>
690 `// ${style.text}\n${style.style.split(settings.htmlGenerationMode === "jsx" ? "," : ";").join(";\n")}`,
691 )
692 .join("\n---\n");
693
694 if (!result) {
695 return "// No text styles in this selection";
696 }
697 return result;
698};

Callers 1

codegenModeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected