[][src]Struct seed_style_preview::Theme

pub struct Theme {
    pub name: String,
    pub anymap: Map<dyn Any>,
    pub spaces_scale: Vec<CssSpace>,
    pub font_sizes_scale: Vec<CssFontSize>,
    pub fonts_scale: Vec<CssFont>,
    pub font_weights_scale: Vec<CssFontWeight>,
    pub line_heights_scale: Vec<CssLineHeight>,
    pub letter_spacings_scale: Vec<CssLetterSpacing>,
    pub sizes_scale: Vec<CssSize>,
    pub borders_scale: Vec<CssBorder>,
    pub border_styles_scale: Vec<CssBorderStyle>,
    pub border_widths_scale: Vec<CssBorderWidth>,
    pub breakpoints_scale: Vec<u32>,
    pub media_bp_scale: Vec<CssMedia>,
    pub media_bp_pairs: Vec<(u32, Option<u32>)>,
    pub radii_scale: Vec<CssBorderRadius>,
    pub colors_scale: Vec<CssColor>,
    pub shadows_scale: Vec<CssShadow>,
}

Fields

name: Stringanymap: Map<dyn Any>spaces_scale: Vec<CssSpace>font_sizes_scale: Vec<CssFontSize>fonts_scale: Vec<CssFont>font_weights_scale: Vec<CssFontWeight>line_heights_scale: Vec<CssLineHeight>letter_spacings_scale: Vec<CssLetterSpacing>sizes_scale: Vec<CssSize>borders_scale: Vec<CssBorder>border_styles_scale: Vec<CssBorderStyle>border_widths_scale: Vec<CssBorderWidth>breakpoints_scale: Vec<u32>media_bp_scale: Vec<CssMedia>media_bp_pairs: Vec<(u32, Option<u32>)>radii_scale: Vec<CssBorderRadius>colors_scale: Vec<CssColor>shadows_scale: Vec<CssShadow>

Implementations

impl Theme[src]

pub fn new(name: &str) -> Theme[src]

pub fn space_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssSpace> + Clone
[src]

pub fn border_width_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssBorderWidth> + Clone
[src]

pub fn font_size_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssFontSize> + Clone
[src]

pub fn font_weight_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssFontWeight> + Clone
[src]

pub fn size_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssSize> + Clone
[src]

pub fn line_height_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssLineHeight> + Clone
[src]

pub fn letter_spacing_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssLetterSpacing> + Clone
[src]

pub fn border_scale<S>(self, scale: &[S]) -> Theme where
    S: Into<CssBorder> + Clone
[src]

pub fn breakpoint_scale<S: Into<Vec<u32>>>(self, scale: S) -> Theme[src]

pub fn general_get<T, R>(&self, alias: T) -> Option<R> where
    Self: OverloadedGeneralStyleLookUp<T, R>,
    T: Clone
[src]

pub fn get<T, R>(&self, alias: T) -> Option<R> where
    Self: OverloadedStyleLookUp<T, R>,
    T: Clone
[src]

pub fn set_size<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssSize>,
    Q: 'static + SizeTheme
[src]

pub fn set_shadow<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssShadow>,
    Q: 'static + ShadowTheme
[src]

pub fn set_color<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssColor>,
    Q: 'static + ColorTheme
[src]

pub fn set_space<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssSpace>,
    Q: 'static + SpaceTheme
[src]

pub fn set_font_size<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssFontSize>,
    Q: 'static + FontSizeTheme
[src]

pub fn set_border<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssBorder>,
    Q: 'static + BorderTheme
[src]

pub fn set_border_width<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssBorderWidth>,
    Q: 'static + BorderWidthTheme
[src]

pub fn set_border_style<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssBorderStyle>,
    Q: 'static + BorderStyleTheme
[src]

pub fn set_border_radius<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssBorderRadius>,
    Q: 'static + BorderRadiusTheme
[src]

pub fn set_transition<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssTransition>,
    Q: 'static + TransitionTheme
[src]

pub fn set_style<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<Style>,
    Q: 'static + StyleTheme
[src]

pub fn set_breakpoint<Q>(self, alias: Q, value: (u32, Option<u32>)) -> Theme where
    Q: 'static + BreakpointTheme
[src]

pub fn set_line_height<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssLineHeight>,
    Q: 'static + LineHeightTheme
[src]

pub fn set_letter_spacing<T, Q>(self, alias: Q, value: T) -> Theme where
    T: Into<CssLetterSpacing>,
    Q: 'static + LetterSpacingTheme
[src]

Trait Implementations

impl Debug for Theme[src]

impl Default for Theme[src]

Auto Trait Implementations

impl !RefUnwindSafe for Theme

impl !Send for Theme

impl !Sync for Theme

impl Unpin for Theme

impl !UnwindSafe for Theme

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,