Home / Function/ decl() — tailwindcss Function Reference

decl() — tailwindcss Function Reference

Architecture documentation for the decl() function in ast.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  85b46de2_edfa_9371_e2c6_e60f3f5346a2["decl()"]
  112073d3_66c7_8610_9209_6e6a56fb828b["cssAstToPostCssAst()"]
  112073d3_66c7_8610_9209_6e6a56fb828b -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  c90ec073_0241_abd8_3427_8edf14bd20d2["postCssAstToCssAst()"]
  c90ec073_0241_abd8_3427_8edf14bd20d2 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  faeb1e90_cf89_2804_6ef1_386b3a9ffaba["migratePrefix()"]
  faeb1e90_cf89_2804_6ef1_386b3a9ffaba -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  ec867cf3_916b_0d16_65ec_c715e69fee03["optimizeAst()"]
  ec867cf3_916b_0d16_65ec_c715e69fee03 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  f9776eb1_2e39_1c04_0c09_5a1f1eec4204["buildCustomContainerUtilityRules()"]
  f9776eb1_2e39_1c04_0c09_5a1f1eec4204 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  16ea83b7_6a24_51d7_fe79_5abfdb79d93e["registerLegacyUtilities()"]
  16ea83b7_6a24_51d7_fe79_5abfdb79d93e -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  a073a4cd_758b_23aa_b3d4_216815e4dd3d["objectToAst()"]
  a073a4cd_758b_23aa_b3d4_216815e4dd3d -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  b6aaa1cb_54ef_7dee_8d81_ee36d2da08a7["compileBaseUtility()"]
  b6aaa1cb_54ef_7dee_8d81_ee36d2da08a7 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  b484f819_aa07_b471_8a80_2e952408f2db["parseDeclaration()"]
  b484f819_aa07_b471_8a80_2e952408f2db -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  524663ee_dcd5_80b9_29bd_e2f21fc950aa["expandDeclaration()"]
  524663ee_dcd5_80b9_29bd_e2f21fc950aa -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c["parseCss()"]
  26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  b43ee24f_e9ee_4033_2f2b_968887b95935["property()"]
  b43ee24f_e9ee_4033_2f2b_968887b95935 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  7829d740_b77d_642a_6961_2b062dc27460["alphaReplacedShadowProperties()"]
  7829d740_b77d_642a_6961_2b062dc27460 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  db4785ee_f9d4_d30c_c923_4237d7c754d9["alphaReplacedDropShadowProperties()"]
  db4785ee_f9d4_d30c_c923_4237d7c754d9 -->|calls| 85b46de2_edfa_9371_e2c6_e60f3f5346a2
  style 85b46de2_edfa_9371_e2c6_e60f3f5346a2 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,
  }
}

Subdomains

Frequently Asked Questions

What does decl() do?
decl() is a function in the tailwindcss codebase.
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