# Mottes floem components
Some components I designed for the [floem](https://lap.dev/floem/) UI crate.

## Usage
This crate contains three important modules: `theme`, `views` and `classes`.
In `theme` you'll find the `Theme` struct which you will need to easily style the colors
of the components in this crate. This `Theme` is basically just a wrapper around the [base 16 color scheme standard](https://github.com/chriskempson/base16).
If you want to create your own theme, feel free to do so, you just need to put your hex colors into
your own struct and you're good to go. If you just wanna get started, use `Theme::default()`.
In `views` you find components that were implemented as standard floem views. You can just add these
like any floem component and pass the theme you are using to them (e.g. `avatar(|| fs::read("image.png").unwrap(), theme)`).
In `classes` you find style classes that you can apply to existing floem components using `.class()`.
Use the `construct_theme` method of the module to make all classes available.
For an example of every component and class, look into the [gallery example](./examples/gallery.rs).