Home / Function/ atRule() — tailwindcss Function Reference

atRule() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c35acfc6_964d_737e_6ecc_275e6f10293a["atRule()"]
  81a639ec_bc2c_cf5e_48e3_3ae33426ae0a["cssAstToPostCssAst()"]
  81a639ec_bc2c_cf5e_48e3_3ae33426ae0a -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  3b7b5721_2ad8_b95c_e5b3_704c1dbf9939["postCssAstToCssAst()"]
  3b7b5721_2ad8_b95c_e5b3_704c1dbf9939 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  77d1d37f_6021_dc8c_6d04_0c3b07e3ad19["migrateTheme()"]
  77d1d37f_6021_dc8c_6d04_0c3b07e3ad19 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  a6e11c3d_c962_0a65_d91f_6fbe955cf4f0["optimizeAst()"]
  a6e11c3d_c962_0a65_d91f_6fbe955cf4f0 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  510b91a2_860c_62c6_54c4_43c0ad2f601c["buildImportNodes()"]
  510b91a2_860c_62c6_54c4_43c0ad2f601c -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  6bc468c3_f692_fb93_b3e2_cf2a6051b874["createUtilitySignatureCache()"]
  6bc468c3_f692_fb93_b3e2_cf2a6051b874 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  9a5c7b9b_20db_35ed_c673_96cb0dd8c459["createVariantSignatureCache()"]
  9a5c7b9b_20db_35ed_c673_96cb0dd8c459 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  e43d1196_de1e_f940_0b19_7c0502d434bd["keyframesToRules()"]
  e43d1196_de1e_f940_0b19_7c0502d434bd -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  6e906b7f_b503_9163_425a_c68220491669["buildCustomContainerUtilityRules()"]
  6e906b7f_b503_9163_425a_c68220491669 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  3b6a2079_7f12_42cd_ba9f_a57ecec4366d["buildPluginApi()"]
  3b6a2079_7f12_42cd_ba9f_a57ecec4366d -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  11c177f7_f682_15b6_46e0_5cff60c4a5a6["objectToAst()"]
  11c177f7_f682_15b6_46e0_5cff60c4a5a6 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  ad8b6949_6736_d448_c51c_07f6658ef959["registerScreensConfig()"]
  ad8b6949_6736_d448_c51c_07f6658ef959 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  666b100e_8313_09d0_334c_b0fc7e6b9d54["applyVariant()"]
  666b100e_8313_09d0_334c_b0fc7e6b9d54 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  1d825a09_87b5_c531_bb8e_a4c358c7b855["parseAtRule()"]
  1d825a09_87b5_c531_bb8e_a4c358c7b855 -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a
  style c35acfc6_964d_737e_6ecc_275e6f10293a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/ast.ts lines 78–85

export function atRule(name: string, params: string = '', nodes: AstNode[] = []): AtRule {
  return {
    kind: 'at-rule',
    name,
    params,
    nodes,
  }
}

Domain

Subdomains

Frequently Asked Questions

What does atRule() do?
atRule() is a function in the tailwindcss codebase.
What calls atRule()?
atRule() is called by 18 function(s): applyVariant, buildCustomContainerUtilityRules, buildImportNodes, buildPluginApi, createUtilitySignatureCache, createVariantSignatureCache, createVariants, cssAstToPostCssAst, and 10 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free