Skip to main content

Crate armas_basic

Crate armas_basic 

Source
Expand description

§Armas Basic

Core component library for egui, inspired by shadcn/ui.

Provides 40+ styled components with a serializable theme system. Components get the theme internally — no &Theme parameter needed.

§Example

use armas_basic::prelude::*;

if Button::new("Click me")
    .variant(ButtonVariant::Default)
    .show(ui)
    .clicked()
{
    // Handle click
}

Re-exports§

pub use animation::Animation;
pub use animation::AnimationSequence;
pub use animation::AnimationState;
pub use animation::EasingFunction;
pub use animation::LoopMode;
pub use animation::LoopingAnimation;
pub use animation::SpringAnimation;
pub use animation::StaggeredAnimation;
pub use color::blend;
pub use color::lerp_color;
pub use color::saturate;
pub use color::with_alpha;
pub use color::BlendMode;
pub use color::ColorStop;
pub use color::Gradient;
pub use color::NeonPalette;
pub use ext::ArmasContextExt;
pub use ext::neon_circle;
pub use ext::neon_line;
pub use ext::PainterExt;
pub use fonts::FontFamilyBuilder;
pub use fonts::FontWeight;
pub use theme::Theme;
pub use components::*;
pub use layout::*;

Modules§

animation
Animation utilities and easing functions Animation utilities for smooth, physics-based motion.
color
Color manipulation utilities Color utilities for advanced effects
components
UI components UI components
ext
Extension traits for egui types Extension traits for egui types
fonts
Font utilities Font utilities for loading common fonts with multiple weights
icon
Icon rendering Icon system for Armas
layout
Layout components Layout helpers
prelude
Prelude module - commonly used types and traits
theme
Theme system ARMAS Theme System (shadcn/ui style)