zoechi / yew_styles

Yew Styles is a style framework for yew

Home Page:https://docs.rs/crate/yew_styles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yew Styles

Crate Info API Docs Discord Chat

Yew Styles is a style framework for yew

Motivation

The purpose of developing this project is first, provide a style framework for yew because there isn't not many options currently, also to create a layout system which is not far of the flexbox concept, and, to take the rust benefits and implement a properties selected by enumeration in the most of the cases which makes fast for developing applications and avoids the practice try and error

How it works

Each component is splited 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

How install it

  1. Install the sass module: npm install yew-styles
  2. Add the yew_style crate in Cargo.toml file: yew_styles = "0.4.0"
  3. Import the main.css file in you main javascript/typescript file project:
    import 'node_modules/yew-styles/main.css';
  1. Ready to import and use in your project 🚀

Run the documentation page

  1. git clone https://github.com/spielrs/yew_styles.git
  2. cd yew_styles
  3. 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.

Rust Docs

You can also see all the yewstyle documentation in rust docs here. It include description and examples for each component

Run the tests

Inside of the project run:

cargo test --target wasm32-unknown-unknown --manifest-path=crate/yew_styles/Cargo.toml

Development phase

Yew style is in early phase, currently doesn't have enough components to cover all the requirements that could need a website/web application. All contributions are appreciated.

Roadmap

  • Button
  • Layout
  • Navbar
  • Form
  • Card
  • Message
  • Table
  • Pagination
  • Modal
  • Sidebar
  • Tab
  • Tooltips
  • Calendar
  • Assets

License

Yew Style is MIT licensed. See license

About

Yew Styles is a style framework for yew

https://docs.rs/crate/yew_styles

License:MIT License


Languages

Language:Rust 94.5%Language:CSS 3.9%Language:JavaScript 1.0%Language:HTML 0.3%Language:Shell 0.1%Language:TypeScript 0.1%