IconCSSIconOptions

Options for generating CSS for one icon 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 customise: (String) -> String?

Customise the icon body before generating CSS.

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 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.