Lucide icons and brand marks, shared by every component, block and example.
Every icon hyuskui draws lives in one file, src/icons.rs: 120 icons from Lucide and 4 brand marks. Components that need icons install it for you, and so does:
$ cargo hyuskui add icons
Usage
Each icon is a constant of SVG bytes named after its Lucide name, like CHEVRON_DOWN for chevron-down. GPUI tints it with the element's text color.
use crate::icons::{icon, SEARCH};
// 16px, tinted with the text color.
icon(SEARCH).text_color(theme.muted_foreground)
// Or as raw SVG bytes, wherever an API takes them.
SidebarMenuButton::new("search", "Search").icon(SEARCH)Adding icons
The file is yours. Copy any icon from lucide.dev and add a line to the lucide! list: the name in SCREAMING_SNAKE_CASE, then everything between <svg ...> and </svg>.
lucide! {
// ...
ROCKET => r#"<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/>..."#,
}All icons
Click an icon to copy its name.