Skip to main content

Chassis

Chassis Assets

Design assets, saved once. Every brand and platform gets its own files.

Chassis Assets keeps the images, icons and fonts of every brand and app in one source. The build gives each platform the names, formats and folders it expects.

npx @chassis-ui/assets init acme-assets

Currently v0.12.1Changes

What you get

One source tree for every brand. The right files per platform.

A brand keeps only the files that differ. The build gives each platform the names, formats and folders it expects.

Brands

Keep one file until a brand needs its own.

  • The default folder holds the files every brand gets.
  • A brand folder holds only the files that differ.
  • A brand file replaces the default file of the same path.

Platforms

Get the names and folders each platform expects.

  • Kebab-case names for the web, snake_case for iOS and Android.
  • The @2x and @3x variants go to density folders on Android.
  • Each platform gets the font and image formats it can use.

Build

Build one job, or all of them.

  • The --brand, --app and --platform options build a part of the output.
  • Options write iOS asset catalogs, Android vector drawables and WebP or AVIF images.
  • A validator and an analyzer check the output, its sizes and duplicate files.

How it works

From a design export to the folder an app reads.

One command builds the output of each platform. Options can also optimize the images, convert them to WebP and subset the fonts.

Source to app

  • 01 · Save

    Put the files in the source.

    Sort them by brand, app and type. Default files go to every brand.

  • 02 · Build

    Run the build.

    The build copies, renames and sorts the files for each platform.

  • 03 · Install

    Use the output.

    Each platform, app and brand has its own folder, to copy or to build in CI.

Works with

Assets carry what tokens cannot. Fonts, images and app icons.

Tokens hold the values and assets hold the files. Both are built once for every brand and every platform.

  • Chassis Tokens

    The colors, type and spacing of each brand, built from one repository in the same way.

  • Chassis Icons

    The builder of an icon set: a font, a sprite and platform files from SVG files.

  • Chassis Figma

    The library a designer exports these files from.

3 Platforms
Web, iOS and Android
Brand Overrides
One default, a folder per brand
Build Filters
By brand, app and platform
Checks
Validator, contract and source lint

Get started

Start with the guide that matches your task.

Set up an asset repository, read how each type of file is handled, or use the output in the project you already have.

Getting started

Asset types

Use in project