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

Function styleRule

packages/tailwindcss/src/ast.ts:70–76  ·  packages/tailwindcss/src/ast.ts::styleRule
(selector: string, nodes: AstNode[] = [])

Source from the content-addressed store, hash-verified

68export type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot
69
70export function styleRule(selector: string, nodes: AstNode[] = []): StyleRule {
71 return {
72 kind: class="st">'rule',
73 selector,
74 nodes,
75 }
76}
77
78export function atRule(name: string, params: string = class="st">'', nodes: AstNode[] = []): AtRule {
79 return {

Callers 11

selectorsFunction · 0.90
parseCssFunction · 0.90
ast.test.tsFile · 0.90
createUtilitiesFunction · 0.90
createVariantsFunction · 0.90
substituteAtVariantFunction · 0.90
ruleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected