extractValue() — tailwindcss Function Reference
Architecture documentation for the extractValue() function in extract-static-plugins.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 17b4c7ea_e1f9_d654_8915_782187d7e404["extractValue()"] 7269613d_689c_049b_c5a1_169a57d36e90["findStaticPlugins()"] 7269613d_689c_049b_c5a1_169a57d36e90 -->|calls| 17b4c7ea_e1f9_d654_8915_782187d7e404 style 17b4c7ea_e1f9_d654_8915_782187d7e404 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/utils/extract-static-plugins.ts lines 372–382
function extractValue(capture: { name: string; node: { text: string } }) {
return capture.name === 'num_value'
? parseFloat(capture.node.text)
: capture.name === 'null_value'
? null
: capture.name === 'true_value'
? true
: capture.name === 'false_value'
? false
: capture.node.text
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does extractValue() do?
extractValue() is a function in the tailwindcss codebase.
What calls extractValue()?
extractValue() is called by 1 function(s): findStaticPlugins.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free