#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum GlowIntensity {
None,
Subtle,
Strong,
}
impl GlowIntensity {
pub const fn as_class(self) -> &'static str {
match self {
Self::None => "orbital-token-glow-none",
Self::Subtle => "orbital-token-glow-subtle",
Self::Strong => "orbital-token-glow-strong",
}
}
pub const fn opacity_percent(self) -> u8 {
match self {
Self::None => 0,
Self::Subtle => 18,
Self::Strong => 28,
}
}
}