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