atRule() — tailwindcss Function Reference
Architecture documentation for the atRule() function in ast.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD a9af385a_fd12_f1d8_7cf0_ccb9b281ca18["atRule()"] 112073d3_66c7_8610_9209_6e6a56fb828b["cssAstToPostCssAst()"] 112073d3_66c7_8610_9209_6e6a56fb828b -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 c90ec073_0241_abd8_3427_8edf14bd20d2["postCssAstToCssAst()"] c90ec073_0241_abd8_3427_8edf14bd20d2 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 0e91912d_5423_6991_60b0_8afbca30e459["migrateTheme()"] 0e91912d_5423_6991_60b0_8afbca30e459 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 ec867cf3_916b_0d16_65ec_c715e69fee03["optimizeAst()"] ec867cf3_916b_0d16_65ec_c715e69fee03 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 8b7b19eb_b2e9_7522_24fe_7d4dcb7d22a4["buildImportNodes()"] 8b7b19eb_b2e9_7522_24fe_7d4dcb7d22a4 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 00f82a70_37cd_d9d2_64c8_29c748c197c6["createUtilitySignatureCache()"] 00f82a70_37cd_d9d2_64c8_29c748c197c6 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 cb063cf6_f495_bb4b_84d1_f1d23fb0dae1["createVariantSignatureCache()"] cb063cf6_f495_bb4b_84d1_f1d23fb0dae1 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 9fbfbf7d_7486_16f1_14be_06acdc92b2cb["keyframesToRules()"] 9fbfbf7d_7486_16f1_14be_06acdc92b2cb -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 f9776eb1_2e39_1c04_0c09_5a1f1eec4204["buildCustomContainerUtilityRules()"] f9776eb1_2e39_1c04_0c09_5a1f1eec4204 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 ad196438_55f7_af7b_1604_1d75c1c27d8e["buildPluginApi()"] ad196438_55f7_af7b_1604_1d75c1c27d8e -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 a073a4cd_758b_23aa_b3d4_216815e4dd3d["objectToAst()"] a073a4cd_758b_23aa_b3d4_216815e4dd3d -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 cae2462d_b48b_78d8_8df1_2534f7aac297["registerScreensConfig()"] cae2462d_b48b_78d8_8df1_2534f7aac297 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 8bb120ad_8027_cede_007f_1d5351f7ca96["applyVariant()"] 8bb120ad_8027_cede_007f_1d5351f7ca96 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 5f0c52a3_326e_e124_2536_7e86fa5c6341["parseAtRule()"] 5f0c52a3_326e_e124_2536_7e86fa5c6341 -->|calls| a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 style a9af385a_fd12_f1d8_7cf0_ccb9b281ca18 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
Called By
- applyVariant()
- buildCustomContainerUtilityRules()
- buildImportNodes()
- buildPluginApi()
- createUtilitySignatureCache()
- createVariantSignatureCache()
- createVariants()
- cssAstToPostCssAst()
- keyframesToRules()
- migrateTheme()
- objectToAst()
- optimizeAst()
- parseAtRule()
- parseCss()
- postCssAstToCssAst()
- property()
- registerScreensConfig()
- substituteAtSlot()
Source
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