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

Function buildClass

packages/extension/utils/tailwind.ts:973–982  ·  view source on GitHub ↗
(config: FamilyConfig, modifier: string, val: FormattedValue)

Source from the content-addressed store, hash-verified

971}
972
973function buildClass(config: FamilyConfig, modifier: string, val: FormattedValue): string {
974 const negPrefix = val.isNegative ? '-' : ''
975 const base = config.prefix + modifier
976 const connector = base && !base.endsWith('-') ? '-' : ''
977
978 if (!base) {
979 return `${negPrefix}${val.text}`
980 }
981 return `${negPrefix}${base}${connector}${val.text}`
982}
983
984function collapseSides(
985 config: FamilyConfig,

Callers 5

collapseSidesFunction · 0.85
collapseCornersFunction · 0.85
collapseAxesFunction · 0.85
collapseCompositeFunction · 0.85
cssToTailwindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected