Skip to main content

Crate iced_plus_theme

Crate iced_plus_theme 

Source
Expand description

Theme bridge for iced-plus.

This crate adapts design tokens from iced_plus_tokens to iced’s styling system, providing type-safe theming with compile-time variant resolution.

§Key Types

  • AppTheme - The main theme type that wraps tokens and implements iced’s Catalog traits
  • ButtonClass - Button styling variants (Primary, Secondary, Ghost, etc.)
  • ContainerClass - Container styling variants (Card, Surface, Bordered)
  • TextInputClass - Text input styling variants (Default, Filled)

§Example

use iced_plus_theme::{AppTheme, ButtonClass};
use iced::widget::button;

let theme = AppTheme::light();

// Use in iced application
button("Click me")
    .class(ButtonClass::Primary)

Re-exports§

pub use size::ComponentSize;
pub use size::ExtraLarge;
pub use size::ExtraSmall;
pub use size::Large;
pub use size::Medium;
pub use size::Small;
pub use status::Status;
pub use theme::token_to_iced;
pub use theme::AppTheme;
pub use variant::ButtonVariant;
pub use variant::Destructive;
pub use variant::Ghost;
pub use variant::Outline;
pub use variant::Primary;
pub use variant::Secondary;

Modules§

size
Size phantom types for type-safe component sizing.
status
Widget status types for interaction states.
theme
Main theme type that wraps tokens and integrates with iced.
variant
Variant phantom types for type-safe styling.

Enums§

ButtonClass
Button style class for iced’s Catalog system.
ContainerClass
Container style class for iced’s Catalog system.
TextClass
Text style class for iced’s Catalog system.
TextInputClass
Text input style class for iced’s Catalog system.