Crates.io | yew_styles |
lib.rs | yew_styles |
version | 0.11.0 |
source | src |
created_at | 2020-02-26 23:15:03.589188 |
updated_at | 2021-11-28 17:55:23.645263 |
description | Framework styles for yew |
homepage | https://yewstyles.spielrs.tech |
repository | https://github.com/spielrs/yew-styles-page/tree/master/crate/yew_styles |
max_upload_size | |
id | 212841 |
size | 279,436 |
Yew Styles is a style framework for yew without JavaScript dependencies
The purpose of developing this project is first, provide a style framework for yew that doesn't require any JavaScript dependencies also to create a layout system which is not far of the flexbox concept, and, to take the rust benefits and implement properties selected by enumeration in the most of the cases which makes fast for developing applications and avoids the practice try and error
Each component is split in two parts, the logical yew component and its sass module, however, it is not necessary to worry about the sass module only it needs to be include in the project
Note: One of the goals of yew_styles project is include css in the components without depending of any external css file. Candidate chosen stylist-rs
npm install yew-styles
yew_styles = { version="0.11", features=["button", "text", "navbar"] }
import 'node_modules/yew-styles/main.css';
git clone https://github.com/spielrs/yew_styles.git
cd yew_styles
npm start
In the left side there is a list of links where each one access to a correspondent component documentation, there, shows how to use it.
You can also see all the Yew Style documentation in rust docs here. It includes description and examples for each component
Inside of the project run:
cargo test --target wasm32-unknown-unknown --manifest-path=crate/yew_styles/Cargo.toml
Yew Styles cover all the common cases used in a web application however there are still a lot of work to do and components to implement. All contributions are appreciated.
First, open an issue describing about the fix, improvement or implementation and as suggestion, don't start to work in it until that is discussed. If the contribution is a fix or small improvement in a component, only a pull request to master explaining what resolve or improve that, is required. If it is an implementation, please follow the next requirements:
/crate/src/page
with the same structure than the rest of the componentsIf you like Yew Styles, help me supporting the project:
If you need a feature that is not cover yet, as soon as possible, you can also fund the issue here.