steid

@jamesgill /

steid/src/components.rs
710 BCode·Blame·Raw
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 button;
15pub mod card;
16pub mod flash;
17pub mod input;
18pub mod label;
19pub mod textarea;