Home / Function/ fromString() — tailwindcss Function Reference

fromString() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ec11586e_b7a4_c86a_a7da_b615801ad878["fromString()"]
  b9897393_3e36_7806_d172_b9debcd215f6["Stylesheet"]
  ec11586e_b7a4_c86a_a7da_b615801ad878 -->|defined in| b9897393_3e36_7806_d172_b9debcd215f6
  084f6f8b_fe90_a5cf_9cf6_6fcc92cc6163["migrate()"]
  084f6f8b_fe90_a5cf_9cf6_6fcc92cc6163 -->|calls| ec11586e_b7a4_c86a_a7da_b615801ad878
  1be562b7_fe23_7e22_03ec_31b3d101e5e5["migrateContents()"]
  1be562b7_fe23_7e22_03ec_31b3d101e5e5 -->|calls| ec11586e_b7a4_c86a_a7da_b615801ad878
  style ec11586e_b7a4_c86a_a7da_b615801ad878 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/stylesheet.ts lines 87–91

  static async fromString(css: string) {
    let root = postcss.parse(css)

    return new Stylesheet(root)
  }

Subdomains

Frequently Asked Questions

What does fromString() do?
fromString() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is fromString() defined?
fromString() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 87.
What calls fromString()?
fromString() is called by 2 function(s): migrate, migrateContents.

Analyze Your Own Codebase

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

Try Supermodel Free