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
  73226a59_1278_9855_982c_3d33f7cff9e0["createPrefixedQuad()"]
  b01687d1_d51c_5473_580c_8f99b517e78c["createBareQuad()"]
  73226a59_1278_9855_982c_3d33f7cff9e0 -->|calls| b01687d1_d51c_5473_580c_8f99b517e78c
  style 73226a59_1278_9855_982c_3d33f7cff9e0 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.
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