mottes-floem-components

Crates.iomottes-floem-components
lib.rsmottes-floem-components
version0.1.0
created_at2025-04-29 13:47:26.387444+00
updated_at2025-04-29 13:47:26.387444+00
descriptionSome styled components for floem.
homepage
repositoryhttps://codeberg.org/motte/floem-components
max_upload_size
id1653554
size338,622
miampf (miampf)

documentation

README

Mottes floem components

Some components I designed for the floem UI crate.

a screenshot of the widget gallery

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. 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.

Commit count: 0

cargo fmt