Skip to content

Interface: CssFunction ​

Defined in: packages/core/src/model.ts:151

A CSS custom function (@function --name) the stylesheet defines.

Properties ​

description? ​

ts
optional description?: string;

Defined in: packages/core/src/model.ts:159

Prose from a @function doc tag, when authored.


name ​

ts
name: string;

Defined in: packages/core/src/model.ts:153

The function name, e.g. --negate.


parameters ​

ts
parameters: string[];

Defined in: packages/core/src/model.ts:155

The declared parameters, e.g. ["--value"], when derivable from the @function at-rule.


result? ​

ts
optional result?: string;

Defined in: packages/core/src/model.ts:157

The result descriptor/type, when declared.

Released under the MIT License