#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Material {
Solid,
Frost,
Shell,
Scrim,
}
impl Material {
#[allow(non_upper_case_globals)]
#[deprecated(note = "Renamed to Frost")]
pub const Acrylic: Self = Self::Frost;
#[allow(non_upper_case_globals)]
#[deprecated(note = "Renamed to Shell")]
pub const Mica: Self = Self::Shell;
#[allow(non_upper_case_globals)]
#[deprecated(note = "Renamed to Scrim")]
pub const Smoke: Self = Self::Scrim;
pub const fn as_class(self) -> &'static str {
match self {
Self::Solid => "orbital-token-material-solid",
Self::Frost => "orbital-token-material-frost",
Self::Shell => "orbital-token-material-shell",
Self::Scrim => "orbital-token-material-scrim",
}
}
pub const fn as_token(self) -> &'static str {
match self {
Self::Solid => "none",
Self::Frost => "saturate(108%) blur(12px)",
Self::Shell => "saturate(128%) blur(16px)",
Self::Scrim => "none",
}
}
}