IconCSSIconSetOptions

Options for generating CSS for an icon set as background or mask.

Properties

Link copied to clipboard
abstract var color: String?

Color for monotone icons. Icons with a set color use "background" mode.

Link copied to clipboard
abstract var commonSelector: String?

Selector for rules shared by all icons.

Link copied to clipboard
abstract var customise: (String, String) -> String?

Customise an icon body before generating CSS. Receives the body and the icon name.

Link copied to clipboard
abstract var forceSquare: Boolean?

Make each icon square by centering it in a square viewBox.

Link copied to clipboard
abstract var format: CSSFormatMode?

Formatter.

Link copied to clipboard
abstract var iconSelector: String?

Selector used for the icon.

Link copied to clipboard
abstract var mode: IconCSSMode?

Rendering mode. When omitted, it is detected from the icon content: "mask" for icons that use currentColor, "background" otherwise.

Link copied to clipboard
abstract var overrideSelector: String?

Selector for rules that override the common rules. Supports {name} for the icon name.

Link copied to clipboard
abstract var pseudoSelector: Boolean?

Treat iconSelector as a pseudo-selector, such as ::after.

Link copied to clipboard
abstract var rules: dynamic

Additional CSS rules, keyed by property name.

Link copied to clipboard
abstract var varName: String?

CSS variable name used to store the icon data.