Home / Function/ createPair() — tailwindcss Function Reference

createPair() — tailwindcss Function Reference

Architecture documentation for the createPair() function in expand-declaration.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  ece4f6e0_1c36_af66_ab19_e85df03f785a["createPair()"]
  8e85a534_6601_c513_9452_8a311dc16b8f["expand-declaration.ts"]
  ece4f6e0_1c36_af66_ab19_e85df03f785a -->|defined in| 8e85a534_6601_c513_9452_8a311dc16b8f
  style ece4f6e0_1c36_af66_ab19_e85df03f785a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/expand-declaration.ts lines 26–31

function createPair(lhs: string, rhs: string): Record<number, [prop: string, index: number][]> {
  return {
    1: [[lhs, 0], [rhs, 0]],
    2: [[lhs, 0], [rhs, 1]],
  } as const;
}

Domain

Subdomains

Frequently Asked Questions

What does createPair() do?
createPair() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/expand-declaration.ts.
Where is createPair() defined?
createPair() is defined in packages/tailwindcss/src/expand-declaration.ts at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free