Repolode
mizorewww

mizorewww/gpui-material-symbols

Rust crate giving Longbridge GPUI Kit apps access to all 4,359 Google Material Symbols with adjustable fill, weight, grade and optical size.

Stars
18
Forks
0
Open issues
0
Last commit
8 hours ago

What is it?

gpui-material-symbols is a Rust crate that brings the complete set of Google Material Symbols to applications built with Longbridge GPUI Kit. It covers 4,359 icon names in the Outlined, Rounded and Sharp styles, and fill, weight, grade and optical size can be set continuously within the ranges Google defines. The Symbol type implements Kit's IconNamed trait, so icons can be used directly in buttons, menus and other standard icon slots.

By default the official fonts and SVGs are embedded in the binary, so builds and apps need no network access and do not register system fonts. Out-of-range axis values and unsupported variants return errors instead of being silently replaced with a different icon. Icons can also be exported as SVG without Kit, and fonts can be supplied at runtime for builds such as WebAssembly that skip embedding.

The project includes an icon browser for searching the catalog and exporting SVG or PNG, plus a Kit showcase example. The icon data is pinned to a specific upstream commit of google/material-design-icons with recorded checksums.

Key features

  • 01Covers 4,359 Material Symbol names in Outlined, Rounded and Sharp styles.
  • 02Adjusts fill, weight, grade and optical size within Google's defined ranges.
  • 03Implements Kit's IconNamed so icons work in buttons, menus and other icon slots.
  • 04Embeds official fonts and SVGs by default, so builds need no downloads.
  • 05Returns errors for out-of-range or unsupported variants rather than substituting icons.
  • 06Exports individual icons as SVG without depending on Kit.

Use cases

  • Adding Material icons to a desktop app built with Longbridge GPUI Kit.
  • Exporting Material Symbols as SVG from a Rust build or command-line tool.
  • Browsing and picking icons with specific fill, weight or optical size settings.
  • Shipping a WebAssembly build that loads only the icon fonts it needs.

Quick start

  1. 1

    Clone the repository

    git clone https://github.com/mizorewww/gpui-material-symbols
  2. 2

    Add the crate as a dependency in Cargo.toml

  3. 3

    Run the showcase example

    cargo run --features showcase --example showcase

Things to know

  • Depends on the main branch of longbridge/gpui-kit, so builds may change without notice.
  • Embedded assets add about 50 MB of fonts and SVGs to the binary by default.
  • Some symbols (55 SVG-only) support only Google's discrete axis values.

Topics

FAQ

What is gpui-material-symbols?
Rust crate giving Longbridge GPUI Kit apps access to all 4,359 Google Material Symbols with adjustable fill, weight, grade and optical size. gpui-material-symbols is a Rust crate that brings the complete set of Google Material Symbols to applications built with Longbridge GPUI Kit. It covers 4,359 icon names in the Outlined, Rounded and Sharp styles, and fill, weight, grade and optical size can be set continuously within the ranges Google defines. The Symbol type implements Kit's IconNamed trait, so icons can be used directly in buttons, menus and other standard icon slots.
Is gpui-material-symbols free to use? What license does it have?
gpui-material-symbols is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is gpui-material-symbols still maintained?
Actively maintained. The last commit to gpui-material-symbols was on Nov 7, 2026.
What can I use gpui-material-symbols for?
Adding Material icons to a desktop app built with Longbridge GPUI Kit. Exporting Material Symbols as SVG from a Rust build or command-line tool. Browsing and picking icons with specific fill, weight or optical size settings. Shipping a WebAssembly build that loads only the icon fonts it needs.
How do I install gpui-material-symbols?
Clone the repository: git clone https://github.com/mizorewww/gpui-material-symbols Add the crate as a dependency in Cargo.toml Run the showcase example: cargo run --features showcase --example showcase
Where can I get gpui-material-symbols?
The source code and installation instructions are on GitHub: https://github.com/mizorewww/gpui-material-symbols

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects