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
↓ 2 callers
Function
getPart
(classPartObject: ClassPartObject, path: string)
packages/tailwind-merge/src/lib/class-group-utils.ts:253
↓ 2 callers
Function
hasLiteral
(code: string, value: string)
packages/next/tests/helpers.ts:169
↓ 2 callers
Function
hasLiteral
(code: string, value: string)
packages/plugin-core/tests/helpers.ts:45
↓ 2 callers
Function
haveProperSubset
(subset: Set<string>, superset: Set<string>)
packages/configurator/src/design-system.ts:209
↓ 2 callers
Function
havePropertiesEqual
(first: Set<string>, second: Set<string>)
packages/configurator/src/design-system.ts:214
↓ 2 callers
Function
isArbitraryValue
(value: string)
packages/tailwind-merge/src/lib/validators.ts:57
↓ 2 callers
Function
isArbitraryVariable
(value: string)
packages/tailwind-merge/src/lib/validators.ts:81
↓ 2 callers
Function
isNumber
(value: string)
packages/tailwind-merge/src/lib/validators.ts:20
↓ 2 callers
Function
loadFixtureDesignSystems
* Loads the design systems generation classifies on: the fixture's project, paired with a vanilla system shared by every fixture of the worker with th
packages/configurator/tests/fixture-utils.ts:124
↓ 2 callers
Function
log
(message)
scripts/stamp-dev-version.mjs:115
↓ 2 callers
Function
mergeArrayProperties
( baseObject: Partial<Record<NoInfer<Key>, readonly unknown[]>>, mergeObject: Partial<Record<NoInfer<K
packages/tailwind-merge/src/lib/merge-configs.ts:76
↓ 2 callers
Function
mergeClassList
(classList: string, configUtils: ConfigUtils)
packages/tailwind-merge/src/lib/merge-classlist.ts:6
↓ 2 callers
Function
overrideProperty
( baseObject: T, overrideKey: K, overrideValue: T[K] | undefined, )
packages/tailwind-merge/src/lib/merge-configs.ts:44
↓ 2 callers
Function
parseDeclarations
(css: string, candidate?: string)
packages/configurator/src/declarations.ts:34
↓ 2 callers
Function
pinReadmeLinks
({ repoRoot, packageDir, ref })
scripts/pin-readme-links.mjs:19
↓ 2 callers
Function
planGroup
(group: ClassGroup<string>)
packages/configurator/src/plan.ts:105
↓ 2 callers
Function
pruningState
(scanner: SourceScanner, scan: UsageScan, report: PruneReport)
packages/plugin-core/src/generation.ts:172
↓ 2 callers
Function
readMtime
A missing file reads as null, which differs from any real modification time.
packages/plugin-core/src/generation.ts:213
↓ 2 callers
Function
recordDependency
(file: string)
packages/plugin-core/src/generation.ts:76
↓ 2 callers
Function
replaceFile
(file: string, content: string)
packages/vite/tests/helpers.ts:215
↓ 2 callers
Function
resolvePruneOptions
(option: TailwindMergeOptions['prune'])
packages/next/src/options.ts:39
↓ 2 callers
Function
resolvePruneOptions
( option: TailwindMergeOptions['prune'], config: ResolvedConfig, )
packages/vite/src/prune-options.ts:10
↓ 2 callers
Function
runCli
(argv: string[])
packages/configurator/src/run-cli.ts:11
↓ 2 callers
Function
serializeArray
(items: PlanValue[], indent: number, context: SerializeContext)
packages/configurator/src/emit.ts:306
↓ 2 callers
Function
serializeArrayBody
( items: PlanValue[], indent: number, context: SerializeContext, )
packages/configurator/src/emit.ts:318
↓ 2 callers
Function
serializeStringArray
(values: readonly string[])
packages/configurator/src/emit.ts:465
↓ 2 callers
Function
setupNextTests
()
packages/next/tests/helpers.ts:40
↓ 2 callers
Function
sleep
(milliseconds: number)
packages/next/tests/helpers.ts:173
↓ 2 callers
Function
spawnNext
* Spawns the Next.js CLI in its own process group so `stop` can end the CLI, the dev server it forks, and the loader pool processes Turbopack spawns i
packages/next/tests/helpers.ts:180
↓ 2 callers
Function
toCandidate
The candidate string Tailwind compiles for a class name: prefixed under a theme prefix (`tw:p-2`), the name itself otherwise. Class lists and everythi
packages/configurator/src/design-system.ts:201
↓ 2 callers
Function
trackModuleDependencies
(file: string, onDependency: (file: string) => void)
packages/configurator/src/resolvers.ts:69
↓ 2 callers
Function
unclassifiedCompilingClasses
Names of the design system's class list that compile but the generated config (prefix removed, since class-list names are unprefixed) does not classif
packages/configurator/tests/fixture-utils.ts:172
↓ 2 callers
Function
watchSourceDirectories
Source directories outside the Vite root need explicit watching too; configuration dependencies are registered as the session discovers them.
packages/vite/src/index.ts:134
↓ 1 callers
Function
addAutoGeneratedInfoComment
* @param {string} content * @returns {string}
packages/tailwind-merge/scripts/update-readme.mjs:93
↓ 1 callers
Function
addBoxShorthand
Registers a known four-sided shorthand and its logical axes, retaining the library's horizontal-tb axis policy without equating individual logical and
packages/configurator/src/property-coverage.ts:138
↓ 1 callers
Method
addContextDependency
(directory: string)
packages/next/src/loader.ts:21
↓ 1 callers
Method
addDependency
(file: string)
packages/next/src/loader.ts:20
↓ 1 callers
Method
addMissingDependency
(file: string)
packages/next/src/loader.ts:22
↓ 1 callers
Function
aliasEquivalent
* Signature equality alone is blind to conditions and importance. Aliases need an unconditional element-level effect and mutual coverage: a later buil
packages/configurator/src/custom-utilities.ts:619
↓ 1 callers
Function
aliasSpellings
* The same value under the target group's other class-name prefixes: `inset-s-sm` assigned to the `start` group (prefixes `inset-s` and `start`) yield
packages/configurator/src/augment.ts:378
↓ 1 callers
Function
analyzeSelector
* Determines what a selector does to the render target relative to the class's base element. The subject anchor is `&` (nested rules) or the class sel
packages/configurator/src/declarations.ts:120
↓ 1 callers
Function
apply
(list: string)
packages/configurator/tests/effect-combinations.test.ts:73
↓ 1 callers
Function
applyAugmentations
( plan: ConfigPlan, augmentations: { assignments: Map<string, string[]> collisions: {
packages/configurator/src/plan.ts:248
↓ 1 callers
Function
applyCustomUtilityPlan
( plan: ConfigPlan, customUtilityPlan: CustomUtilityPlan, )
packages/configurator/src/plan.ts:201
↓ 1 callers
Function
applyStaticLinks
* Replaces the relative links in the docs overview with absolute ones pinned to the release tag, so the generated READMEs keep working from npm and fr
packages/tailwind-merge/scripts/update-readme.mjs:59
↓ 1 callers
Function
applyToConfig
(config: NextConfig, options: TailwindMergeOptions)
packages/next/src/index.ts:52
↓ 1 callers
Function
assembleFixture
Bundles a generation result — the full one or a re-pruned one — after its emitted-module round trip.
packages/configurator/tests/fixture-utils.ts:100
↓ 1 callers
Function
assembleResult
Everything after classification: prune to the used classes, if any, then emit and materialize. Kept apart so a result can be re-pruned for other class
packages/configurator/src/generate.ts:149
↓ 1 callers
Function
assertBuiltTwMerge
* Applies the same smoke tests to each generated ESM bundle so build-tool changes cannot leave the ES5 entry point broken while the default entry poin
packages/tailwind-merge/scripts/test-built-package-exports.mjs:23
↓ 1 callers
Function
assertBuiltTwMerge
* Applies the same smoke tests to each generated CJS bundle so build-tool changes cannot leave the ES5 entry point broken while the default entry poin
packages/tailwind-merge/scripts/test-built-package-exports.cjs:22
↓ 1 callers
Function
assertConsumerTypes
The packed variant of the consumer-types fixture (same main.ts, single source of truth): type-checking resolves the plugin entry and the runtime subpa
packages/next/scripts/test-packed-package.mjs:341
↓ 1 callers
Function
assertConsumerTypes
The packed variant of the consumer-types fixture (same main.ts, single source of truth): type-checking resolves the subpath to the bundled .d.mts and
packages/vite/scripts/test-packed-package.mjs:278
↓ 1 callers
Function
assertEveryCompilingClassIsAccountedFor
* The classification invariant every unpruned fixture must hold: a class Tailwind suggests and compiles is either classified by the generated config o
packages/configurator/tests/fixture-utils.ts:143
↓ 1 callers
Function
assertGeneratedRuntime
Exercises generation from the packed plugin through a real `next build`: the loader runs in Next's own loader process, imports the compiler and scanne
packages/next/scripts/test-packed-package.mjs:289
↓ 1 callers
Function
assertGeneratedRuntime
Exercises generation from the packed plugin: a successful top-level import does not load the compiler or scanner. Aliased CSS and an inline safelist v
packages/vite/scripts/test-packed-package.mjs:242
↓ 1 callers
Function
assertPrerequisites
Both builds must exist up front: the tarball ships this package's dist, and the consumer checks resolve tailwind-merge through its published shape (di
packages/next/scripts/test-packed-package.mjs:53
↓ 1 callers
Function
assertPrerequisites
Both builds must exist up front: the tarball ships this package's dist, and the consumer checks resolve tailwind-merge through its published shape (di
packages/vite/scripts/test-packed-package.mjs:53
↓ 1 callers
Function
assertPublished
(name, version)
scripts/stamp-dev-version.mjs:99
↓ 1 callers
Function
assertRuntimeImports
Imports both subpaths from inside the consumer through ordinary package resolution — the exports map, the config the plugin produces (pointing at a lo
packages/next/scripts/test-packed-package.mjs:237
↓ 1 callers
Function
assertRuntimeImports
Imports all three subpaths from inside the consumer through ordinary package resolution — the exports map, the bundled plugin's own imports (including
packages/vite/scripts/test-packed-package.mjs:201
↓ 1 callers
Function
assertTarballLayout
Asserts the tarball's file list: the complete dist set, the entry sources, the standard package files — and none of the development files (tests, docs
packages/next/scripts/test-packed-package.mjs:81
↓ 1 callers
Function
assertTarballLayout
Asserts the tarball's file list: the complete dist set, the entry sources, the standard package files — and none of the development files (tests, docs
packages/vite/scripts/test-packed-package.mjs:78
↓ 1 callers
Function
autoDetectSources
Mirrors how `@tailwindcss/vite`, `@tailwindcss/postcss`, and the CLI turn the compiler's `root` into scanner sources: `source(none)` disables automati
packages/configurator/src/scan.ts:100
↓ 1 callers
Function
bareValueJoinsRoot
Whether a functional root's bare class (a plugin `DEFAULT` value) compiles and covers its shape's exemplar both ways, like a static root that joins it
packages/configurator/src/custom-utilities.ts:286
↓ 1 callers
Function
benchWithMemory
( name: string, fn: () => void, options?: { iterations?: number; time?: number }, )
packages/tailwind-merge/tests/tw-merge.benchmark.ts:97
↓ 1 callers
Function
buildAugmentations
({ project, vanilla, projectClassGroupId, vanillaClassGroupId, groupPrefixKeys, custom
packages/configurator/src/augment.ts:51
↓ 1 callers
Function
buildCustomUtilityPlan
({ project, vanilla, vanillaClassGroupId, encoding, }: BuildCustomUtilityPlanOptions)
packages/configurator/src/custom-utilities.ts:53
↓ 1 callers
Function
buildFixture
( css: string, base: string, options: Omit<GenerateOptions, 'css' | 'base' | 'prune'>, )
packages/configurator/tests/fixture-utils.ts:84
↓ 1 callers
Function
buildFixture
( root: string, { options = {}, webpack = false }: RunOptions = {}, )
packages/next/tests/helpers.ts:132
↓ 1 callers
Function
buildPlan
({ snapshot, cacheSize, encoding = 'compact' }: BuildPlanOptions)
packages/configurator/src/plan.ts:92
↓ 1 callers
Function
buildShorthandLonghands
Expands the known shorthand graph once, including reset-only longhands. This also handles overlapping shorthands, such as border-inline covering borde
packages/configurator/src/property-coverage.ts:20
↓ 1 callers
Function
buildStressCss
()
packages/configurator/tests/stress.test.ts:37
↓ 1 callers
Function
changedUtilitySuggestions
* Finds names added to or removed from each Tailwind suggestion branch, before getClassList merges duplicate names. A name can move between branches o
packages/configurator/src/augment.ts:285
↓ 1 callers
Function
check
(input: string)
packages/configurator/tests/fixture-utils.ts:414
↓ 1 callers
Function
checkUtilities
Supply the negative functional root shared by the positive-claim regressions.
packages/configurator/tests/negative-utilities.test.ts:132
↓ 1 callers
Function
classesCompile
(designSystem: DesignSystemAccess, classNames: string[])
packages/configurator/src/design-system.ts:195
↓ 1 callers
Function
classifyByProperties
( className: string, properties: Set<string>, exemplarsByFirstSegment: Map<string, Map<string, str
packages/configurator/src/augment.ts:329
↓ 1 callers
Function
cloneValues
Deep copy of plan values, so group arrays can be edited independently of each other and of the shared scale definitions.
packages/configurator/src/plan.ts:329
↓ 1 callers
Function
closestPackageType
The `type` field of the package.json that governs a file, like Node's lookup: the closest one decides, even without a `type`.
packages/configurator/src/resolvers.ts:135
↓ 1 callers
Function
collectConstantCandidates
Gathers the resolved theme scales as shared-const candidates; group arrays contain them verbatim wherever a theme getter was substituted. Theme keys a
packages/configurator/src/emit.ts:146
↓ 1 callers
Function
collectCssFiles
Limit the eager scan to plain-CSS filenames. Following explicit imports is separate and does not impose an extension requirement. Symlinks are followe
packages/plugin-core/src/discovery.ts:121
↓ 1 callers
Function
collectExemplars
* One exemplar class per (first name segment, class group) pair, e.g. `text` → text-color: `text-red-500`. Only exemplars for segments that actually n
packages/configurator/src/augment.ts:306
↓ 1 callers
Function
collectFunctionalClasses
* Indexes suggested classes and their slash modifiers once for both encoding and conflict inference. Modifiers can enable independent declarations thr
packages/configurator/src/custom-utilities.ts:313
↓ 1 callers
Function
collectGroupSignatures
* One exemplar vanilla class per built-in group, with lazily computed signatures — most groups are never compared against, and compiling ~300 exemplar
packages/configurator/src/custom-utilities.ts:553
↓ 1 callers
Function
collectInlineSources
* Collects `@source inline(…)` safelist entries and `@source not inline(…)` exclusions from the entrypoint and the CSS files of its import graph. Tail
packages/configurator/src/scan.ts:127
↓ 1 callers
Function
collectUnstableImports
* Collects the names imported from the unstable entry point across the given source trees, split into runtime values and type-only names, which are ch
scripts/check-library-release.mjs:93
↓ 1 callers
Function
collectUsedValidatorNames
Validator names in first-use order, for the destructuring statement at the top of `getConfig`.
packages/configurator/src/emit.ts:101
↓ 1 callers
Function
compareVersions
* @param {number[]} a * @param {number[]} b * @returns {number}
scripts/update-pinned-links.mjs:171
↓ 1 callers
Function
compiledProperties
(className: string)
packages/configurator/tests/edge-cases.test.ts:91
↓ 1 callers
Function
composesThrough
Whether a declaration value reads a custom property the earlier class sets and the later class leaves alone — the earlier class then keeps acting thro
packages/configurator/tests/oracle.ts:135
↓ 1 callers
Function
concatArrays
( array1: readonly T[], array2: readonly U[], )
packages/tailwind-merge/src/lib/utils.ts:4
↓ 1 callers
Function
createClassValidatorObject
( classGroupId: AnyClassGroupIds, validator: ClassValidator, )
packages/tailwind-merge/src/lib/class-group-utils.ts:25
↓ 1 callers
Function
createConsumerInstall
* Lays the extracted package out as a consumer install: the real directory moves into a scratch node_modules (Node resolves a package's own imports fr
packages/next/scripts/test-packed-package.mjs:206
↓ 1 callers
Function
createConsumerInstall
* Lays the extracted package out as a consumer install: the real directory moves into a scratch node_modules (Node resolves a package's own imports fr
packages/vite/scripts/test-packed-package.mjs:177
↓ 1 callers
Function
createLruCache
( maxCacheSize: number, )
packages/tailwind-merge/src/lib/lru-cache.ts:9
↓ 1 callers
Function
createPostfixLookupClassGroupIds
(config: AnyConfig)
packages/tailwind-merge/src/lib/config-utils.ts:17
↓ 1 callers
Function
createSortModifiers
(config: AnyConfig)
packages/tailwind-merge/src/lib/sort-modifiers.ts:8
↓ 1 callers
Function
createTailwindIntegration
(config: ResolvedConfig)
packages/vite/src/resolution.ts:7
↓ 1 callers
Function
css
(file: string)
packages/plugin-core/tests/generation-session.test.ts:21
↓ 1 callers
Function
customOrderSensitiveModifiers
Added or redefined variants that style another target are ordering barriers, like the default before/after/child modifiers. Compile their suggested sp
packages/configurator/src/generate.ts:164
← previous
next →
101–200 of 489, ranked by callers