herogpui_theme/lib.rs
1//! HeroUI design tokens and theming for GPUI.
2//!
3//! This crate is a faithful port of HeroUI v3's `packages/styles`: the semantic
4//! OKLCH color tokens for the light and dark appearances, the layout tokens
5//! (radius, border width, shadows), and a global [`ThemeProvider`] with an
6//! [`ActiveTheme`] accessor trait.
7
8mod components;
9mod layout;
10mod provider;
11mod semantic;
12mod theme;
13#[cfg(feature = "serde")]
14mod theme_document;
15
16pub use components::*;
17pub use layout::*;
18pub use provider::*;
19pub use semantic::*;
20pub use theme::*;
21#[cfg(feature = "serde")]
22pub use theme_document::{
23 ColorPair, RoleOverride, Roles, SurfaceLevels, ThemeDocument, ThemeDocumentError,
24};