MCPcopy
hub / github.com/tailwindlabs/tailwindcss / rule

Function rule

packages/tailwindcss/src/ast.ts:87–93  ·  packages/tailwindcss/src/ast.ts::rule
(selector: string, nodes: AstNode[] = [])

Source from the content-addressed store, hash-verified

85}
86
87export function rule(selector: string, nodes: AstNode[] = []): StyleRule | AtRule {
88 if (selector.charCodeAt(0) === AT_SIGN) {
89 return parseAtRule(selector, nodes)
90 }
91
92 return styleRule(selector, nodes)
93}
94
95export function decl(property: string, value: string | undefined, important = false): Declaration {
96 return {

Callers 15

parseCssFunction · 0.90
handleBgLinearFunction · 0.90
staticVariantFunction · 0.90
walk.test.tsFile · 0.90
applyVariantFunction · 0.90
parseFunction · 0.90
substituteAtApplyFunction · 0.90
addUtilitiesFunction · 0.90
objectToAstFunction · 0.90

Calls 2

parseAtRuleFunction · 0.90
styleRuleFunction · 0.85

Tested by

no test coverage detected