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

Method static

packages/tailwindcss/src/variants.ts:73–85  ·  view source on GitHub ↗
(
    name: string,
    applyFn: VariantFn<'static'>,
    { compounds, order }: { compounds?: Compounds; order?: number } = {},
  )

Source from the content-addressed store, hash-verified

71 private lastOrder = 0
72
73 static(
74 name: string,
75 applyFn: VariantFn<'static'>,
76 { compounds, order }: { compounds?: Compounds; order?: number } = {},
77 ) {
78 this.set(name, {
79 kind: 'static',
80 applyFn,
81 compoundsWith: Compounds.Never,
82 compounds: compounds ?? Compounds.StyleRules,
83 order,
84 })
85 }
86
87 fromAst(name: string, ast: AstNode[], designSystem: DesignSystem) {
88 let selectors: string[] = []

Callers 11

fromAstMethod · 0.95
createVariantsFunction · 0.95
parseCssFunction · 0.45
staticVariantFunction · 0.45
candidate.test.tsFile · 0.45
addVariantFunction · 0.45
addUtilitiesFunction · 0.45
registerContainerCompatFunction · 0.45
insertFunction · 0.45
registerLegacyUtilitiesFunction · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected