pub struct Theme {
pub id: String,
pub name: String,
pub description: Option<String>,
pub palette: Palette,
pub typography: Typography,
pub node_kind_fallbacks: NodeKindFallbacks,
pub connector: ConnectorStyle,
pub icons: Vec<Icon>,
}Expand description
One theme and its theme-local icon collection.
Fields§
§id: StringGlobal Stack theme identifier.
name: StringHuman-readable theme name.
description: Option<String>Optional contributor-facing description.
palette: PaletteNamed colors available to other theme records.
typography: TypographyTypography sizes, weights, and deterministic metrics reference.
node_kind_fallbacks: NodeKindFallbacksVisual fallback for every Stack node kind.
connector: ConnectorStyleConnector and connector-label treatment.
icons: Vec<Icon>Theme-local named and fallback icon assets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more