Skip to main content

Chassis

Chassis Icons

Icons from a folder of SVGs. One build for the web, iOS and Android.

The chassis-icons command builds a repository of SVG files into an icon font, a sprite, optimized SVG files and the files of iOS and Android apps.

npx @chassis-ui/icons init acme-icons

Currently v0.5.0Releases

What you get

A repository of icons per team. Every format from one build.

The builder ships no icons. Everything that is particular to a set is in its own repository, and one build writes every output.

Source

Add an icon by saving a file.

  • The name of the file is the name of the icon. No list is kept beside it.
  • The font name, the class prefix and the frame are settings of your repository.
  • An icon keeps its code point for as long as it is in the set.

Output

Use an icon the way each project needs.

  • A font with CSS and Sass stylesheets, a sprite and single SVG files for the web.
  • An asset catalog and a Swift enum for iOS, a vector drawable per icon for Android.
  • A preview page of the set, with every icon, a search and the code that draws it.

Checks

Catch a broken icon before a release.

  • The source lint checks the name, the frame and the color of each file.
  • Verify fails when two builds of the source differ.
  • Both run in CI on a pull request and before a release.

How it works

From SVG files to a release.

The repository that init writes has a script for each step, a CI workflow and a release workflow.

Source to release

  • 01 · Save

    Save the icons.

    One SVG file per icon, drawn on the frame of the set in one color.

  • 02 · Build

    Build the set.

    The build writes the font, the sprite, the SVG files and the files of apps.

  • 03 · Release

    Release a version.

    The release workflow publishes to npm and attaches an archive per target.

Works with

Your set is its own package. The others can use it.

A set you build works alone, or as the icons of Chassis CSS and Chassis React. Assets builds the other files of a brand.

  • Chassis CSS

    Use the icon font or the sprite with the components of Chassis CSS.

  • Chassis React

    Use the icons of your set in Chassis React components.

  • Chassis Assets

    The other files of a brand: fonts, images and app icons, built for each platform.

SVGO
Optimizes the SVG files
svg-sprite
Writes the sprite
Fantasticon
Writes the icon font
svg2vectordrawable
Writes the vector drawables

Get started

Start with the guide that matches your task.

Set up a repository for your set, learn how to draw an icon for it, or use the output in a project.

Getting started

Icon design

Use in project