Skip to content

Interface: CssFunction

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

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

Properties

description?

ts
optional description?: string;

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

Prose from a @function doc tag, when authored.


name

ts
name: string;

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

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


parameters

ts
parameters: string[];

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

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:78

The result descriptor/type, when declared.

Released under the MIT License