Home / Function/ load() — tailwindcss Function Reference

load() — tailwindcss Function Reference

Architecture documentation for the load() function in stylesheet.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  db944bd6_65e8_1ab3_5a4b_e4e204ebde75["load()"]
  eb8ababf_fa35_08e1_76f8_c2b2cea868b8["run()"]
  eb8ababf_fa35_08e1_76f8_c2b2cea868b8 -->|calls| db944bd6_65e8_1ab3_5a4b_e4e204ebde75
  style db944bd6_65e8_1ab3_5a4b_e4e204ebde75 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/stylesheet.ts lines 69–76

  static async load(filepath: string) {
    filepath = path.resolve(process.cwd(), filepath)

    let css = await fs.readFile(filepath, 'utf-8')
    let root = postcss.parse(css, { from: filepath })

    return new Stylesheet(root, filepath)
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does load() do?
load() is a function in the tailwindcss codebase.
What calls load()?
load() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free