1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 29, 2025 |
---|
#23 in #progress-bar
69 downloads per month
160KB
428 lines
Mottes floem components
Some components I designed for the 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.
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.
Dependencies
~28–66MB
~1M SLoC