Skip to main content

Crate kael_icons

Crate kael_icons 

Source
Expand description

Compact, typed SVG icons for Kael applications and component libraries.

The catalog contains the Lucide symbols used by Kael’s ready-made UI plus Kael’s small set of core controls. Applications can use the typed catalog directly or resolve the virtual ASSET_PREFIX paths emitted by kael_ui.

use kael_icons::{Icon, IconName, IconWeight, svg_for_path};

let icon = Icon::new(IconName::Search).weight(IconWeight::Medium);
assert_eq!(icon.name().slug(), "search");
assert_eq!(icon.stroke_width(), 1.75);
assert_eq!(svg_for_path("kael-icons/search.svg"), Some(icon.svg()));

Re-exports§

pub use catalog::IconMetadata;
pub use catalog::IconName;
pub use catalog::UnknownIconName;
pub use catalog::svg_by_name;
pub use weight::IconWeight;

Modules§

catalog
Build-generated icon catalog. Build-generated icon catalog.
weight
Icon weight definitions. Icon weight definitions.

Structs§

Icon
A typed icon value with the chosen weight.

Constants§

ASSET_PREFIX
Virtual asset path prefix used for SVGs bundled in this crate.

Functions§

generated_icon_names
Returns the generated icon names available in the bundled catalog.
generated_icons
Returns the generated icon metadata currently available in the bundled catalog.
svg_for_path
Resolves a virtual kael-icons/<name>.svg path to bundled SVG source.