Home / Function/ createBareQuad() — tailwindcss Function Reference

createBareQuad() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/tailwindcss/src/expand-declaration.ts lines 16–23

function createBareQuad(t = 'top', r = 'right', b = 'bottom', l = 'left'): Record<number, [prop: string, index: number][]> {
  return {
    1: [[t, 0], [r, 0], [b, 0], [l, 0]],
    2: [[t, 0], [r, 1], [b, 0], [l, 1]],
    3: [[t, 0], [r, 1], [b, 2], [l, 1]],
    4: [[t, 0], [r, 1], [b, 2], [l, 3]],
  } as const;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free