( node: SectionNode, settings: TailwindSettings, )
| 317 | }; |
| 318 | |
| 319 | export const tailwindSection = async ( |
| 320 | node: SectionNode, |
| 321 | settings: TailwindSettings, |
| 322 | ): Promise<string> => { |
| 323 | const childrenStr = await tailwindWidgetGenerator(node.children, settings); |
| 324 | const builder = new TailwindDefaultBuilder(node, settings) |
| 325 | .size() |
| 326 | .position() |
| 327 | .customColor(node.fills, "bg"); |
| 328 | |
| 329 | const build = builder.build(); |
| 330 | return childrenStr |
| 331 | ? `\n<div${build}>${indentString(childrenStr)}\n</div>` |
| 332 | : `\n<div${build}></div>`; |
| 333 | }; |
| 334 | |
| 335 | export const tailwindCodeGenTextStyles = (): string => { |
| 336 | if (previousExecutionCache.length === 0) { |
no test coverage detected