decl() — tailwindcss Function Reference
Architecture documentation for the decl() function in ast.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1369a6dc_e395_347d_5d24_b88e22c5446d["decl()"] b9cbffa4_c352_cf3c_268f_cbb174fb3a47["ast.ts"] 1369a6dc_e395_347d_5d24_b88e22c5446d -->|defined in| b9cbffa4_c352_cf3c_268f_cbb174fb3a47 dea2012d_fe14_a673_2ce4_701a84a75cdb["cssAstToPostCssAst()"] dea2012d_fe14_a673_2ce4_701a84a75cdb -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 63cea7e8_6a82_90d2_b2b0_c166362f218b["postCssAstToCssAst()"] 63cea7e8_6a82_90d2_b2b0_c166362f218b -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 7a457be5_eaef_02ce_7bc4_4e0317ecd8ce["migratePrefix()"] 7a457be5_eaef_02ce_7bc4_4e0317ecd8ce -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 9f2a64dc_05ff_3425_1af8_f2dbd33c3b9a["optimizeAst()"] 9f2a64dc_05ff_3425_1af8_f2dbd33c3b9a -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 06d695a5_21e2_adf5_352b_954581b3e1c0["buildCustomContainerUtilityRules()"] 06d695a5_21e2_adf5_352b_954581b3e1c0 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d f2b46398_1cac_b0f2_946b_db57178a0090["registerLegacyUtilities()"] f2b46398_1cac_b0f2_946b_db57178a0090 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 2e310eb5_4501_1335_aeaa_0b16be3953d3["objectToAst()"] 2e310eb5_4501_1335_aeaa_0b16be3953d3 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d d3da176b_5d25_508c_c940_26dbd0d5b553["compileBaseUtility()"] d3da176b_5d25_508c_c940_26dbd0d5b553 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 6574abf9_b8da_9782_8f1b_87e120c8dee6["parseDeclaration()"] 6574abf9_b8da_9782_8f1b_87e120c8dee6 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 25758157_37c7_6a41_4b05_7fc8c0e52eed["expandDeclaration()"] 25758157_37c7_6a41_4b05_7fc8c0e52eed -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d f7f9b3da_5977_1aa6_3bcb_bfc607af4e8f["parseCss()"] f7f9b3da_5977_1aa6_3bcb_bfc607af4e8f -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 33ad9fa3_6ced_a665_219a_5d4b9e6b40ec["property()"] 33ad9fa3_6ced_a665_219a_5d4b9e6b40ec -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d 7fde493f_fce8_21db_d666_1cc635b91c73["alphaReplacedShadowProperties()"] 7fde493f_fce8_21db_d666_1cc635b91c73 -->|calls| 1369a6dc_e395_347d_5d24_b88e22c5446d style 1369a6dc_e395_347d_5d24_b88e22c5446d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/ast.ts lines 95–102
export function decl(property: string, value: string | undefined, important = false): Declaration {
return {
kind: 'declaration',
property,
value,
important,
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does decl() do?
decl() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/ast.ts.
Where is decl() defined?
decl() is defined in packages/tailwindcss/src/ast.ts at line 95.
What calls decl()?
decl() is called by 15 function(s): alphaReplacedDropShadowProperties, alphaReplacedShadowProperties, buildCustomContainerUtilityRules, compileBaseUtility, createVariants, cssAstToPostCssAst, expandDeclaration, migratePrefix, and 7 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free