Skip to main content

kitchen_ui/
lib.rs

1//! The neuro-kitchen apps' shared UI (GPUI through gpui-kit).
2//!
3//! - [`theme`]: design tokens (spacing, type, radii, pane gaps), the shared grey neutrals, the
4//!   app's accent [`theme::Palette`] or the user's own ([`theme::Rgb`]), light and dark;
5//!   [`theme::apply`] hands them to gpui-kit.
6//! - [`widgets`]: accent picker, section, labelled row, slider, dropdown, stepper, dragged
7//!   number, swatch, empty state, icon button.
8//! - [`param_editor`]: the parameters of any op that serializes to JSON, editable.
9//! - [`icons`]: what an app ships (its icon set and files) and the test that every icon its code
10//!   names is shipped.
11//!
12//! Start-up: `gpui_kit::init(cx)`, then `theme::use_look(Look::new(MY_PALETTE), cx)`; open
13//! windows with `gpui_kit::open_window`. `cargo run -p kitchen-ui --example gallery` shows every
14//! widget.
15
16#![warn(missing_docs)]
17
18pub mod icons;
19pub mod param_editor;
20pub mod theme;
21pub mod widgets;
22
23pub use param_editor::{Commit, ParamEditor, Params};
24pub use theme::{Look, Palette, Rgb};