Home / Function/ resolveApplyDependencies() — tailwindcss Function Reference

resolveApplyDependencies() — tailwindcss Function Reference

Architecture documentation for the resolveApplyDependencies() function in apply.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  4753b67f_383f_d178_f10f_3bf30b958d9c["resolveApplyDependencies()"]
  1721da0c_9e1d_5bee_ab0a_a192cfa6640d["apply.ts"]
  4753b67f_383f_d178_f10f_3bf30b958d9c -->|defined in| 1721da0c_9e1d_5bee_ab0a_a192cfa6640d
  7ad9d996_c0ff_47f5_d131_ab2ead06506e["substituteAtApply()"]
  7ad9d996_c0ff_47f5_d131_ab2ead06506e -->|calls| 4753b67f_383f_d178_f10f_3bf30b958d9c
  style 4753b67f_383f_d178_f10f_3bf30b958d9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/apply.ts lines 302–324

function* resolveApplyDependencies(
  node: Extract<AstNode, { kind: 'at-rule' }>,
  designSystem: DesignSystem,
) {
  for (let candidate of node.params.split(/\s+/g)) {
    for (let node of designSystem.parseCandidate(candidate)) {
      switch (node.kind) {
        case 'arbitrary':
          // Doesn't matter, because there is no lookup needed
          break

        case 'static':
        case 'functional':
          // Lookup by "root"
          yield node.root
          break

        default:
          node satisfies never
      }
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does resolveApplyDependencies() do?
resolveApplyDependencies() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/apply.ts.
Where is resolveApplyDependencies() defined?
resolveApplyDependencies() is defined in packages/tailwindcss/src/apply.ts at line 302.
What calls resolveApplyDependencies()?
resolveApplyDependencies() is called by 1 function(s): substituteAtApply.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free