MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / cssToClassNames

Function cssToClassNames

packages/extension/utils/tailwind.ts:1180–1183  ·  view source on GitHub ↗
(style: Record<string, string>)

Source from the content-addressed store, hash-verified

1178}
1179
1180export function cssToClassNames(style: Record<string, string>): string[] {
1181 const cls = cssToTailwind(style)
1182 return cls ? cls.split(WHITESPACE_RE).filter(Boolean) : []
1183}
1184
1185function cssToClassNamesWithArbitraryProperties(style: Record<string, string>): string[] {
1186 const known = cssToClassNames(style)

Callers 3

tailwind.test.tsFile · 0.90
styleToClassNamesFunction · 0.90

Calls 1

cssToTailwindFunction · 0.85

Tested by

no test coverage detected