@jpgilldev / steid

steid/src/components.rs
741 BRaw
1//! UI components.
2//!
3//! Primitives from the `topcoat` registry are copied in by `topcoat ui add`, not
4//! depended on — once here they are ours to edit, and a framework release cannot change
5//! them underneath us. Steid-specific components are written by hand alongside them.
6//!
7//! **Components reference theme tokens, never raw colours.** A hardcoded colour will
8//! not follow a palette change and will not adapt to the colour scheme. See
9//! `styles.css`.
10//!
11//! `topcoat ui add` rewrites the module list below, so keep hand-written entries
12//! alphabetical among the rest and expect it to reorder them.
13
14pub mod badge;
15pub mod button;
16pub mod card;
17pub mod flash;
18pub mod input;
19pub mod label;
20pub mod select;
21pub mod textarea;