default.serialize() — tailwindcss Function Reference
Architecture documentation for the default.serialize() function in custom-serializer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 34b2aeb3_2c01_9bc9_8a5a_c9353ad27801["default.serialize()"] 9fa28cda_9316_110b_b56a_cb506aee9aca["custom-serializer.ts"] 34b2aeb3_2c01_9bc9_8a5a_c9353ad27801 -->|defined in| 9fa28cda_9316_110b_b56a_cb506aee9aca style 34b2aeb3_2c01_9bc9_8a5a_c9353ad27801 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/test-utils/custom-serializer.ts lines 13–22
serialize(val, config, indentation, depth, refs, printer) {
if (typeof val !== 'string') {
throw new Error('This was already tested in the test() callback')
}
let replaced = val.replaceAll(HIGH_PRECISION_COLOR_FUNCTION, (match, _, first, second) => {
return match.replaceAll(first, first.slice(0, 3)).replaceAll(second, second.slice(0, 3))
})
return printer(replaced, config, indentation, depth, refs)
},
Domain
Subdomains
Source
Frequently Asked Questions
What does default.serialize() do?
default.serialize() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/test-utils/custom-serializer.ts.
Where is default.serialize() defined?
default.serialize() is defined in packages/tailwindcss/src/test-utils/custom-serializer.ts at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free