decodeArbitraryValue() — tailwindcss Function Reference
Architecture documentation for the decodeArbitraryValue() function in decode-arbitrary-value.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD fcaea65f_8651_c21e_ec5d_f042e1ab495e["decodeArbitraryValue()"] 0bec5ca9_74c8_dcc7_ec12_6404fb6493bd["parseCandidate()"] 0bec5ca9_74c8_dcc7_ec12_6404fb6493bd -->|calls| fcaea65f_8651_c21e_ec5d_f042e1ab495e 62a1e81d_e57d_83b1_bc05_4b2210993980["parseModifier()"] 62a1e81d_e57d_83b1_bc05_4b2210993980 -->|calls| fcaea65f_8651_c21e_ec5d_f042e1ab495e ceb1ff41_a641_27dd_6289_7f779710b411["parseVariant()"] ceb1ff41_a641_27dd_6289_7f779710b411 -->|calls| fcaea65f_8651_c21e_ec5d_f042e1ab495e 17722c69_83eb_3eca_a126_826c54cdd9cf["convertUnderscoresToWhitespace()"] fcaea65f_8651_c21e_ec5d_f042e1ab495e -->|calls| 17722c69_83eb_3eca_a126_826c54cdd9cf e5eb2faf_45a2_ac47_3404_8bd4e7eb6817["parse()"] fcaea65f_8651_c21e_ec5d_f042e1ab495e -->|calls| e5eb2faf_45a2_ac47_3404_8bd4e7eb6817 5666e99d_13d5_2782_fe94_78f3f4fb3234["recursivelyDecodeArbitraryValues()"] fcaea65f_8651_c21e_ec5d_f042e1ab495e -->|calls| 5666e99d_13d5_2782_fe94_78f3f4fb3234 c57928e0_95f9_bd68_c036_1186e1a4d345["toCss()"] fcaea65f_8651_c21e_ec5d_f042e1ab495e -->|calls| c57928e0_95f9_bd68_c036_1186e1a4d345 f243ebef_646d_a5d9_ad97_6f162c638efd["addWhitespaceAroundMathOperators()"] fcaea65f_8651_c21e_ec5d_f042e1ab495e -->|calls| f243ebef_646d_a5d9_ad97_6f162c638efd style fcaea65f_8651_c21e_ec5d_f042e1ab495e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/decode-arbitrary-value.ts lines 4–17
export function decodeArbitraryValue(input: string): string {
// There are definitely no functions in the input, so bail early
if (input.indexOf('(') === -1) {
return convertUnderscoresToWhitespace(input)
}
let ast = ValueParser.parse(input)
recursivelyDecodeArbitraryValues(ast)
input = ValueParser.toCss(ast)
input = addWhitespaceAroundMathOperators(input)
return input
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does decodeArbitraryValue() do?
decodeArbitraryValue() is a function in the tailwindcss codebase.
What does decodeArbitraryValue() call?
decodeArbitraryValue() calls 5 function(s): addWhitespaceAroundMathOperators, convertUnderscoresToWhitespace, parse, recursivelyDecodeArbitraryValues, toCss.
What calls decodeArbitraryValue()?
decodeArbitraryValue() is called by 3 function(s): parseCandidate, parseModifier, parseVariant.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free