/opt/canhelp/node_modules/tailwindcss/src/util
NameSizeModeActions
applyImportantSelector.js7740644editdlrm
bigSign.js980644editdlrm
buildMediaQuery.js5600644editdlrm
cloneDeep.js2830644editdlrm
cloneNodes.js13330644editdlrm
color.js27180644editdlrm
colorNames.js43010644editdlrm
configurePlugins.js5780644editdlrm
createPlugin.js7030644editdlrm
createUtilityPlugin.js12220644editdlrm
dataTypes.js73320644editdlrm
defaults.js3610644editdlrm
escapeClassName.js2550644editdlrm
escapeCommas.js960644editdlrm
flattenColorPalette.js4100644editdlrm
formatVariantSelector.js98620644editdlrm
getAllConfigs.js10370644editdlrm
hashConfig.js1260644editdlrm
isKeyframeRule.js1420644editdlrm
isPlainObject.js2620644editdlrm
isSyntacticallyValidPropertyValue.js16120644editdlrm
log.js7890644editdlrm
math-operators.ts52900644editdlrm
nameClass.js6340644editdlrm
negateValue.js7710644editdlrm
normalizeConfig.js90240644editdlrm
normalizeScreens.js43460644editdlrm
parseAnimationValue.js23510644editdlrm
parseBoxShadowValue.js18550644editdlrm
parseDependency.js8670644editdlrm
parseGlob.js5100644editdlrm
parseObjectStyles.js4290644editdlrm
pluginUtils.js81830644editdlrm
prefixSelector.js9920644editdlrm
pseudoElements.js57170644editdlrm
removeAlphaVariables.js7850644editdlrm
resolveConfig.js69670644editdlrm
resolveConfigPath.js15910644editdlrm
responsive.js2430644editdlrm
splitAtTopLevelOnly.js15270644editdlrm
tap.js720644editdlrm
toColorValue.js1370644editdlrm
toPath.js7390644editdlrm
transformThemeValue.js16370644editdlrm
validateConfig.js8880644editdlrm
validateFormalSyntax.js10200644editdlrm
withAlphaVariable.js12150644editdlrm
Edit: /opt/canhelp/node_modules/tailwindcss/src/util/transformThemeValue.js (1637B)
import postcss from 'postcss' import isPlainObject from './isPlainObject' export default function transformThemeValue(themeSection) { if (['fontSize', 'outline'].includes(themeSection)) { return (value) => { if (typeof value === 'function') value = value({}) if (Array.isArray(value)) value = value[0] return value } } if (themeSection === 'fontFamily') { return (value) => { if (typeof value === 'function') value = value({}) let families = Array.isArray(value) && isPlainObject(value[1]) ? value[0] : value return Array.isArray(families) ? families.join(', ') : families } } if ( [ 'boxShadow', 'transitionProperty', 'transitionDuration', 'transitionDelay', 'transitionTimingFunction', 'backgroundImage', 'backgroundSize', 'backgroundColor', 'cursor', 'animation', ].includes(themeSection) ) { return (value) => { if (typeof value === 'function') value = value({}) if (Array.isArray(value)) value = value.join(', ') return value } } // For backwards compatibility reasons, before we switched to underscores // instead of commas for arbitrary values. if (['gridTemplateColumns', 'gridTemplateRows', 'objectPosition'].includes(themeSection)) { return (value) => { if (typeof value === 'function') value = value({}) if (typeof value === 'string') value = postcss.list.comma(value).join(' ') return value } } return (value, opts = {}) => { if (typeof value === 'function') { value = value(opts) } return value } }