utils/css
utils/css.getCustomProperty(prefix, propertyName) ⇒ string
Generates a CSS custom property name with a given prefix.
Kind: static method of utils/css
Returns: string
- The fully formed CSS custom property name (e.g., "--prefix-propertyName").
Param | Type | Description |
---|---|---|
prefix | string |
The prefix to apply to the custom property name. |
propertyName | string |
The base name of the custom property. |