This repo generates assets for use in both the @echo-health/illustrations-web
and @echo-health/illustrations-react-native
NPM packages.
- Prepare a PNG. You'll want your source file to be at least 4x larger than the intended display size on desktop.
- Pop your illustration in
source-illustrations/
- Run
npm run build
to generate sized and sharpened images - Push to master to publish to NPM and store assets in Google Cloud
- Add
npm install @echo-health/illustrations-web
to your app or update it to the latest version (usenpm view @echo-health/illustrations-web versions --json
to view available version) - Use illustrations in your app with
<Illustration src="name-of-illustration" />