Skip to main content

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#[cfg(feature = "serde")]
16mod theme_registry;
17
18pub use components::*;
19pub use layout::*;
20pub use provider::*;
21pub use semantic::*;
22pub use theme::*;
23#[cfg(feature = "serde")]
24pub use theme_document::{
25    ColorPair, RoleOverride, Roles, SurfaceLevels, ThemeDocument, ThemeDocumentError,
26};
27#[cfg(feature = "serde")]
28pub use theme_registry::{
29    load_themes_dir, presets, register_theme_json, ThemeLoadError, THEME_SCHEMA,
30};