Trait savory_elements::design_system::DesignSystemImpl[][src]

pub trait DesignSystemImpl {
    fn text(&self, class: TextLens<'_>) -> Style;
fn button(&self, class: ButtonLens) -> Style;
fn switch(&self, class: SwitchLens<'_>) -> StyleMap;
fn radio(&self, class: RadioLens<'_>) -> StyleMap;
fn text_input(&self, class: TextInputLens) -> Style;
fn progress_bar(&self, class: ProgressBarLens) -> StyleMap; }

Trait used by design system types to generate elements/views styles.

Required methods

fn text(&self, class: TextLens<'_>) -> Style[src]

Generate needed styles for Text view

fn button(&self, class: ButtonLens) -> Style[src]

Generate needed styles for Button view

fn switch(&self, class: SwitchLens<'_>) -> StyleMap[src]

Generate needed styles for Switch view

fn radio(&self, class: RadioLens<'_>) -> StyleMap[src]

Generate needed styles for Radio view

fn text_input(&self, class: TextInputLens) -> Style[src]

Generate needed styles for TextInput view

fn progress_bar(&self, class: ProgressBarLens) -> StyleMap[src]

Generate needed styles for ProgressBar view

Loading content...

Implementors

impl DesignSystemImpl for SavoryDS[src]

Loading content...