euv_ui/component/icon/view/enum.rs
1use super::*;
2
3/// The size scale of the `euv_icon` component.
4///
5/// The steps match the shared monochrome type scale: an icon is a glyph, so it
6/// never carries colour — only the foreground token, inherited by the class.
7#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
8pub enum EuvIconSize {
9 /// A 12px glyph for inline hints and metadata rows.
10 Xs,
11 /// A 16px glyph for dense rows and button-adjacent marks.
12 Sm,
13 /// A 20px glyph, the default size for inline body content.
14 #[default]
15 Md,
16 /// A 24px glyph for section headers and empty-state marks.
17 Lg,
18 /// A 32px glyph for hero and page-header glyphs.
19 Xl,
20}