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-assetsWhat 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
- Welcome to Chassis Assets
What the build does, and what it leaves alone.
- Quick Start
Make a repository and run its first build.
- Build System
The commands, the options and the output.
Asset types
- Font Assets
Which font formats go to which platform.
- Image Assets
Names, resolution variants and formats.
- App Icons
The icons of the app itself, per platform.
Use in project
- Web Applications
Use the web output in a site or an app.
- iOS Applications
Use the iOS output in an Xcode project.
- Android Applications
Use the Android output in a Gradle project.