This is a Rust's Design System based on Material 3 spec

Status

working on, (not ready usable) see project website at https://material-rs.gitlab.io/materialyours

Development

Prerequisites

Run

now you can see example site on your browser

Development whatching file's changes

Goals

currently we working on yew's api, but in the future we hope can provide an api for all rustwasm frameworks

Roadmap

Usage

warning this section is outdated, usage and examples needs be updated.

```rust use yew::prelude::{functioncomponent, html}; use materialyou::provider::MaterialProvider;

[function_component(MyApp)]

fn my_app() -> Html { // MaterialProvider provides context info for material design // for theming, icons, typography html! {

{"My App"}

} } ```

```rust use yew::prelude::{functioncomponent, html}; use materialyou::{ color::ColorRole, components::card::{ Card, CardKind, FilledCard, }, css, provider::MaterialProvider };

[function_component(MyComponent)]

fn mycomponent() -> Html { let styles = { let customstyles = css::new_style("div", r#"margin: 8px;"#);

    vec![custom_styles]
};

let custom_bg_role = ColorRole::Tertiary;

html! { <div>
    <Card bg_role={custom_bg_role} styles={styles.clone()} >{"ElevatedCard is the default card"}</Card>

    <Card kind={CardKind::Outlined} styles={styles.clone()} >{"Outlined Card"}</Card>

    <FilledCard styles={styles.clone()} >{"Filled card"}</FilledCard>
</div> }

}

[function_component(MyApp)]

fn my_app() -> Html { html! { } } ```

Contribution guide

working on... (we have not defined the development cycle)

Support

I am an independent computer developer and researcher. My work is progressing slowly because I live on the edge. I have been looking for a job for several years to be able to live and continue with my work but it is easier said than done.

If you believe in my code and want to support my work you can give me a job or support me trough patreon.

License

License: LGPL v3