Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dcastil/tailwind-merge
/ functions
Functions
489 in github.com/dcastil/tailwind-merge
⨍
Functions
489
◇
Types & classes
61
↓ 1 callers
Function
customUtilityGroupId
Group IDs get a `utility.` prefix so they cannot collide with the skeleton's group IDs and are recognizable in reports and the emitted config.
packages/configurator/src/custom-utilities.ts:300
↓ 1 callers
Function
declarationsEqual
Exact equality of two compiled declaration lists — the bar for treating two spellings as the same utility.
packages/configurator/src/augment.ts:402
↓ 1 callers
Function
dedupeValues
* Removes duplicate literals and validator references while keeping the first occurrence, since substituting a theme scale can repeat values the skele
packages/configurator/src/plan.ts:461
↓ 1 callers
Function
describeDivergence
Where the generated config's merge of `first second` disagrees with Tailwind's verdict — keyed by class-group pair so the snapshots list one example p
packages/configurator/tests/vanilla-coverage.test.ts:122
↓ 1 callers
Function
describeScale
* Explains where a scale's values come from and why they are encoded the way they are, so the generated file stays debuggable without readers having t
packages/configurator/src/plan.ts:425
↓ 1 callers
Function
downloadAndExtract
(tarballUrl, scratchDirectory)
scripts/check-library-release.mjs:145
↓ 1 callers
Function
encodeAsFamilies
* Collapses names sharing a first segment into one nested entry per family, with the tails themselves encoded recursively through `encodeScale` — so n
packages/configurator/src/compress.ts:110
↓ 1 callers
Function
encodeThemeScale
* Encodes the scale for one theme key, applying per-key knowledge on top of the generic encoding.
packages/configurator/src/plan.ts:387
↓ 1 callers
Function
encodeWithValidators
(names: string[])
packages/configurator/src/compress.ts:88
↓ 1 callers
Function
escapeRegex
* @param {string} value * @returns {string}
scripts/update-pinned-links.mjs:200
↓ 1 callers
Function
exactFunctionalValueItems
* The exact-mode value matchers of a functional root whose compiled effects are uniform across suggestions and probes: compile-verified named values (
packages/configurator/src/custom-utilities.ts:504
↓ 1 callers
Function
existingParentDirectory
A missing nested directory cannot be watched yet; its closest existing ancestor observes creation of the remaining path. Only failed local requests us
packages/configurator/src/resolvers.ts:207
↓ 1 callers
Function
exitWithSetupError
A missing build is a setup problem, not a failed check: print the command to run instead of a stack trace.
packages/next/scripts/test-packed-package.mjs:371
↓ 1 callers
Function
exitWithSetupError
A missing build is a setup problem, not a failed check: print the command to run instead of a stack trace.
packages/vite/scripts/test-packed-package.mjs:307
↓ 1 callers
Function
expand
(property: string)
packages/configurator/src/property-coverage.ts:117
↓ 1 callers
Function
expandSequence
(sequence: string)
packages/configurator/src/scan.ts:213
↓ 1 callers
Function
expectSuccessfulBuild
({ code, output, }: { code: number | null output: string })
packages/next/tests/helpers.ts:142
↓ 1 callers
Function
experimentalParseClassName
({ className, parseClassName })
packages/tailwind-merge/tests/experimental-parse-class-name.test.ts:7
↓ 1 callers
Function
extractAndAssertManifest
Extracts the tarball and asserts the packed manifest: the exports map is the dist mapping the workspace already uses (no publish-time swap for this pa
packages/next/scripts/test-packed-package.mjs:147
↓ 1 callers
Function
extractAndAssertManifest
Extracts the tarball and asserts the packed manifest: pnpm must have swapped the dist exports in from publishConfig (npm publish would not — the publi
packages/vite/scripts/test-packed-package.mjs:131
↓ 1 callers
Method
fetchClientChunks
Fetches the browser JavaScript a page loads, concatenated, to check what the client compilation served.
packages/next/tests/helpers.ts:33
↓ 1 callers
Function
fetchReleaseManifest
(version)
scripts/check-library-release.mjs:130
↓ 1 callers
Function
findAliasGroup
* Finds the single built-in group whose classes set exactly what the static utility sets: the signatures (context-qualified property names) must be eq
packages/configurator/src/custom-utilities.ts:589
↓ 1 callers
Function
findClassAnchor
The class selector to anchor on: the one spelling the candidate, or the first one when the candidate is unknown or absent (a selector Tailwind built w
packages/configurator/src/declarations.ts:96
↓ 1 callers
Function
findFilesMentioning
* Lists tracked text files mentioning the previous tag, as a cheap pre-filter for the link rewrite. git grep exits 1 when nothing matches, which is a
scripts/update-pinned-links.mjs:115
↓ 1 callers
Function
findLongestRun
Finds the longest candidate array matching the items starting at `start`, to be emitted as a spread. Skips the candidate currently being defined and f
packages/configurator/src/emit.ts:350
↓ 1 callers
Function
findMissingImports
* Values are checked by importing the released entry point, types by looking for their declaration in the shipped declaration file — the only check av
scripts/check-library-release.mjs:161
↓ 1 callers
Function
findPreviousTag
* Finds the newest existing release tag of the given package by semver, including the un-prefixed legacy tags for the package that owns the pre-monore
scripts/update-pinned-links.mjs:135
↓ 1 callers
Function
flush
()
packages/vite/src/updates.ts:36
↓ 1 callers
Function
forEachFile
(patterns: string | string[], callback: (fileContent: string) => void)
packages/tailwind-merge/tests/docs-examples.test.ts:24
↓ 1 callers
Function
forceGarbageCollection
* Forces garbage collection if available (requires Node.js --expose-gc flag). * Used to establish clean memory baselines for accurate memory measurem
packages/tailwind-merge/tests/tw-merge.benchmark.ts:181
↓ 1 callers
Function
formatBytes
(bytes: number)
packages/tailwind-merge/tests/tw-merge.benchmark.ts:169
↓ 1 callers
Function
formatDivergences
(divergences: Map<string, string>)
packages/configurator/tests/vanilla-coverage.test.ts:153
↓ 1 callers
Function
frameForHeader
( header: string, parent: BlockFrame | undefined, candidate: string | undefined, )
packages/configurator/src/declarations.ts:62
↓ 1 callers
Function
freePort
()
packages/next/tests/helpers.ts:234
↓ 1 callers
Function
functionalEffectSignature
Values can vary within a functional group; its affected properties, targets, guards, and importance must remain the same.
packages/configurator/src/custom-utilities.ts:443
↓ 1 callers
Function
getClassGroupsInClassPart
(classPart: ClassPartObject)
packages/tailwind-merge/tests/class-map.test.ts:366
↓ 1 callers
Function
getConflictingClassGroupIds
( classGroupId: AnyClassGroupIds, hasPostfixModifier: boolean, )
packages/tailwind-merge/src/lib/class-group-utils.ts:65
↓ 1 callers
Function
getFixture
()
packages/configurator/tests/real-world.test.ts:106
↓ 1 callers
Function
getFixtures
()
packages/configurator/tests/real-world.test.ts:146
↓ 1 callers
Function
getGroupIdForArbitraryProperty
(className: string)
packages/tailwind-merge/src/lib/class-group-utils.ts:139
↓ 1 callers
Function
getGroupRecursive
( classParts: string[], startIndex: number, classPartObject: ClassPartObject, )
packages/tailwind-merge/src/lib/class-group-utils.ts:94
↓ 1 callers
Function
getMemoryUsage
()
packages/tailwind-merge/tests/tw-merge.benchmark.ts:159
↓ 1 callers
Method
getOptions
()
packages/next/src/loader.ts:19
↓ 1 callers
Function
getOutputConfig
* Creates a shared output configuration so every public bundle receives the same Babel transforms while retaining its format-specific file path and ru
packages/tailwind-merge/scripts/rollup.config.mjs:162
↓ 1 callers
Method
getVariants
Variant suggestions and selector templates, including CSS and JavaScript registrations.
packages/configurator/src/design-system.ts:42
↓ 1 callers
Function
getVersion
()
packages/tailwind-merge/scripts/update-readme.mjs:79
↓ 1 callers
Function
groupFunctionalClasses
Groups named values and numeric kinds by their compiled effects, ignoring values but preserving rule scope and importance. Probe-only shapes prevent u
packages/configurator/src/custom-utilities.ts:361
↓ 1 callers
Function
hasClassClaim
Whether `className` already resolves into these items through a literal — the check that keeps a restore from appending a duplicate literal to the own
packages/configurator/src/plan.ts:312
↓ 1 callers
Function
inferOverrideConflicts
* For every custom group, finds the groups whose exemplar declarations its utility fully covers — whenever the utility comes later in a class list, th
packages/configurator/src/custom-utilities.ts:671
↓ 1 callers
Function
isAny
()
packages/tailwind-merge/src/lib/validators.ts:28
↓ 1 callers
Function
isAnyNonArbitrary
(value: string)
packages/tailwind-merge/src/lib/validators.ts:46
↓ 1 callers
Function
isArbitraryFamilyName
(value: string)
packages/tailwind-merge/src/lib/validators.ts:70
↓ 1 callers
Function
isArbitraryImage
(value: string)
packages/tailwind-merge/src/lib/validators.ts:76
↓ 1 callers
Function
isArbitraryLength
(value: string)
packages/tailwind-merge/src/lib/validators.ts:59
↓ 1 callers
Function
isArbitraryMaskPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:62
↓ 1 callers
Function
isArbitraryNumber
(value: string)
packages/tailwind-merge/src/lib/validators.ts:65
↓ 1 callers
Function
isArbitraryPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:73
↓ 1 callers
Function
isArbitraryShadow
(value: string)
packages/tailwind-merge/src/lib/validators.ts:78
↓ 1 callers
Function
isArbitrarySize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:55
↓ 1 callers
Function
isArbitraryVariableFamilyName
(value: string)
packages/tailwind-merge/src/lib/validators.ts:89
↓ 1 callers
Function
isArbitraryVariableImage
(value: string)
packages/tailwind-merge/src/lib/validators.ts:97
↓ 1 callers
Function
isArbitraryVariableLength
(value: string)
packages/tailwind-merge/src/lib/validators.ts:83
↓ 1 callers
Function
isArbitraryVariableMaskPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:86
↓ 1 callers
Function
isArbitraryVariablePosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:92
↓ 1 callers
Function
isArbitraryVariableShadow
(value: string)
packages/tailwind-merge/src/lib/validators.ts:100
↓ 1 callers
Function
isArbitraryVariableSize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:95
↓ 1 callers
Function
isArbitraryVariableWeight
(value: string)
packages/tailwind-merge/src/lib/validators.ts:103
↓ 1 callers
Function
isArbitraryWeight
(value: string)
packages/tailwind-merge/src/lib/validators.ts:68
↓ 1 callers
Function
isCommonJsModule
* Whether Node evaluates the file as CommonJS, as far as that can be told without loading it: by extension, or for the ambiguous extensions by the clo
packages/configurator/src/resolvers.ts:119
↓ 1 callers
Function
isFraction
(value: string)
packages/tailwind-merge/src/lib/validators.ts:18
↓ 1 callers
Function
isInside
(directory: string, ancestor: string)
packages/vite/src/prune-options.ts:44
↓ 1 callers
Function
isInteger
(value: string)
packages/tailwind-merge/src/lib/validators.ts:22
↓ 1 callers
Function
isIntentional
(key: string)
packages/configurator/tests/vanilla-coverage.test.ts:146
↓ 1 callers
Function
isNamedContainerQuery
(value: string)
packages/tailwind-merge/src/lib/validators.ts:49
↓ 1 callers
Function
isPercent
(value: string)
packages/tailwind-merge/src/lib/validators.ts:24
↓ 1 callers
Function
isThemeGetter
(func: Function)
packages/tailwind-merge/src/lib/class-group-utils.ts:273
↓ 1 callers
Function
isThemeGetter
(value: Function)
packages/configurator/src/plan.ts:454
↓ 1 callers
Function
isTshirtSize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:26
↓ 1 callers
Function
literal
(value: string)
packages/configurator/src/compress.ts:169
↓ 1 callers
Function
load
()
packages/configurator/tests/resolvers.test.ts:123
↓ 1 callers
Function
loadDesignSystem
The node wrapper currently drops resolver hooks when loading a design system. Use its own Tailwind engine with explicit loaders for bundler integratio
packages/configurator/src/design-system.ts:83
↓ 1 callers
Function
loadScanner
()
packages/configurator/src/scan.ts:113
↓ 1 callers
Function
loadTailwindEngine
Resolves and imports the compiler once per process. A failed load is not kept: the next generation retries, e.g. once an install has finished relinkin
packages/configurator/src/design-system.ts:119
↓ 1 callers
Function
locateCssRoot
()
packages/vite/src/index.ts:83
↓ 1 callers
Function
log
(message)
scripts/check-library-release.mjs:190
↓ 1 callers
Function
lookupName
The string the class map walks for a matched class: negative classes like `-mt-2` start their lookup after the empty first part, exactly as `getClassG
packages/configurator/src/prune.ts:141
↓ 1 callers
Function
mapCase
Decorate both sides of an independently specified case without deriving its expected merge result from runtime behavior.
packages/configurator/tests/effect-combinations.test.ts:72
↓ 1 callers
Function
memoizeClassList
* Caches `getClassList()` on a loaded design system. Tailwind rebuilds the list on every call, and the custom-utility, augmentation, and collision pas
packages/configurator/src/design-system.ts:134
↓ 1 callers
Function
mergeConfigProperties
( baseObject: Partial<Record<string, readonly unknown[]>>, mergeObject: Partial<Record<string, readonl
packages/tailwind-merge/src/lib/merge-configs.ts:65
↓ 1 callers
Function
mergeTable
(twMerge: (classList: string) => string, classLists: string[])
packages/configurator/tests/fixture-utils.ts:257
↓ 1 callers
Function
nearestExistingDirectory
(file: string)
packages/next/src/loader.ts:153
↓ 1 callers
Function
neutralizedGroupId
Group ID for a neutralized class that keeps a validator-based claim somewhere: a group of its own, referenced by no conflict map, so the class behaves
packages/configurator/src/plan.ts:307
↓ 1 callers
Method
next
()
packages/next/src/loader.ts:49
↓ 1 callers
Function
notifyUpdate
(update: PluginUpdate)
packages/vite/src/index.ts:177
↓ 1 callers
Function
onDependency
()
packages/configurator/tests/scan.test.ts:92
↓ 1 callers
Function
onError
(error)
packages/plugin-core/tests/generation-session.test.ts:37
↓ 1 callers
Method
onUpdate
Subscribes to the dev server's reactions to file changes. Returns the unsubscribe function.
packages/vite/src/index.ts:59
↓ 1 callers
Function
outOfRoot
(filePath: string)
packages/vite/src/index.ts:138
↓ 1 callers
Function
overrideConfigProperties
( baseObject: Partial<Record<string, readonly unknown[]>>, overrideObject: Partial<Record<string, read
packages/tailwind-merge/src/lib/merge-configs.ts:54
← previous
next →
201–300 of 489, ranked by callers