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

Function property

packages/tailwindcss/src/utilities.ts:159–171  ·  view source on GitHub ↗
(ident: string, initialValue?: string, syntax?: string)

Source from the content-addressed store, hash-verified

157}
158
159function property(ident: string, initialValue?: string, syntax?: string) {
160 return atRule('@property', ident, [
161 decl('syntax', syntax ? `"${syntax}"` : `"*"`),
162 decl('inherits', 'false'),
163
164 // If there's no initial value, it's important that we omit it rather than
165 // use an empty value. Safari currently doesn't support an empty
166 // `initial-value` properly, so we have to design how we use things around
167 // the guaranteed invalid value instead, which is how `initial-value`
168 // behaves when omitted.
169 ...(initialValue ? [decl('initial-value', initialValue)] : []),
170 ])
171}
172
173/**
174 * Apply opacity to a color using `color-mix`.

Callers 15

borderSpacingPropertiesFunction · 0.85
translatePropertiesFunction · 0.85
scalePropertiesFunction · 0.85
transformPropertiesFunction · 0.85
touchPropertiesFunction · 0.85
snapPropertiesFunction · 0.85
createUtilitiesFunction · 0.85
scrollbarColorPropertiesFunction · 0.85
borderPropertiesFunction · 0.85
gradientStopPropertiesFunction · 0.85
maskPropertiesGradientFunction · 0.85
maskPropertiesEdgeFunction · 0.85

Calls 2

atRuleFunction · 0.90
declFunction · 0.90

Tested by

no test coverage detected