Home / Function/ createPrefixedQuad() — tailwindcss Function Reference

createPrefixedQuad() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1107904e_a546_14d2_d92c_d56fd7b49d5d["createPrefixedQuad()"]
  6ad94eb5_5050_c104_6930_f586671c39b4["expand-declaration.ts"]
  1107904e_a546_14d2_d92c_d56fd7b49d5d -->|defined in| 6ad94eb5_5050_c104_6930_f586671c39b4
  bcda6f9e_5a5f_a46f_1658_10c353bea16e["createBareQuad()"]
  1107904e_a546_14d2_d92c_d56fd7b49d5d -->|calls| bcda6f9e_5a5f_a46f_1658_10c353bea16e
  style 1107904e_a546_14d2_d92c_d56fd7b49d5d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/expand-declaration.ts lines 5–13

function createPrefixedQuad(
  prefix: string,
  t = 'top',
  r = 'right',
  b = 'bottom',
  l = 'left',
): Record<number, [prop: string, index: number][]> {
  return createBareQuad(`${prefix}-${t}`, `${prefix}-${r}`, `${prefix}-${b}`, `${prefix}-${l}`)
}

Domain

Subdomains

Frequently Asked Questions

What does createPrefixedQuad() do?
createPrefixedQuad() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/expand-declaration.ts.
Where is createPrefixedQuad() defined?
createPrefixedQuad() is defined in packages/tailwindcss/src/expand-declaration.ts at line 5.
What does createPrefixedQuad() call?
createPrefixedQuad() calls 1 function(s): createBareQuad.

Analyze Your Own Codebase

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

Try Supermodel Free