Home / Function/ markPretty() — tailwindcss Function Reference

markPretty() — tailwindcss Function Reference

Architecture documentation for the markPretty() function in format-nodes.test.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8be6894d_cb5b_622e_e755_0eea9bb1f10f["markPretty()"]
  d416162c_9943_db17_ed57_8be427000ef6["format-nodes.test.ts"]
  8be6894d_cb5b_622e_e755_0eea9bb1f10f -->|defined in| d416162c_9943_db17_ed57_8be427000ef6
  1957fb3b_c8b6_a30f_cecf_5df5d54d6e6f["migrate()"]
  1957fb3b_c8b6_a30f_cecf_5df5d54d6e6f -->|calls| 8be6894d_cb5b_622e_e755_0eea9bb1f10f
  style 8be6894d_cb5b_622e_e755_0eea9bb1f10f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/css/format-nodes.test.ts lines 6–15

function markPretty(): Plugin {
  return {
    postcssPlugin: '@tailwindcss/upgrade/mark-pretty',
    OnceExit(root) {
      root.walkAtRules('tw-format', (atRule) => {
        atRule.raws.tailwind_pretty = true
      })
    },
  }
}

Subdomains

Called By

Frequently Asked Questions

What does markPretty() do?
markPretty() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/css/format-nodes.test.ts.
Where is markPretty() defined?
markPretty() is defined in packages/@tailwindcss-upgrade/src/codemods/css/format-nodes.test.ts at line 6.
What calls markPretty()?
markPretty() is called by 1 function(s): migrate.

Analyze Your Own Codebase

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

Try Supermodel Free