Enums: Icon
Control icon sizing and styling with predictable enum values.
Icon enums help you standardize icon size and visual style so icons stay consistent across components and layouts.
How it works
Use IconSize to scale icons and IconStyle to switch between solid, regular, light, and duotone styles.
Examples
IconSize.Smallfor compact action buttons.IconSize.x2for prominent status indicators.IconStyle.DuoTonefor emphasis in mixed palettes.
Reference
IconSize
Defines the size of an icon.
IconSize.DefaultThe icon size will not be applied.IconSize.ExtraSmallThe icon will be size 0.75em.IconSize.SmallThe icon will be size 0.875em.IconSize.LargeThe icon will be size 1.33em (Also applies vertical-align: -25%).IconSize.x2The icon will be size 2em.IconSize.x3The icon will be size 3em.IconSize.x4The icon will be size 4em.IconSize.x5The icon will be size 5em.IconSize.x6The icon will be size 6em.IconSize.x7The icon will be size 7em.IconSize.x8The icon will be size 8em.IconSize.x9The icon will be size 9em.IconSize.x10The icon will be size 10em.
IconStyle
Represents a different look of the same icons.
IconStyle.SolidIcon will be filled with single-color.IconStyle.RegularIcon will be outlined with single-color.IconStyle.LightIcon will be slightly lighter.IconStyle.DuoToneIcon will be shown in two-color tones.