Skip to main content

euv_ui/component/typography/view/
enum.rs

1use super::*;
2
3/// The typographic role a piece of text plays.
4///
5/// The roles map one-to-one onto the registry's text classes, so a
6/// caller can pick the role without knowing the class names.
7#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
8pub enum EuvTextVariant {
9    /// Running text at the body size.
10    #[default]
11    Body,
12    /// A section headline.
13    Title,
14    /// A page headline, the largest of the three.
15    TitleLg,
16    /// A sub-headline, the smallest of the three.
17    TitleSm,
18    /// A paragraph of running text.
19    Paragraph,
20    /// Supporting text in the muted style.
21    Secondary,
22    /// Text in the monospace style, for code and identifiers.
23    Mono,
24    /// Text marked as removed.
25    Deletion,
26    /// Text marked as inserted.
27    Underline,
28}