0.5.2 • Published 23 hours ago
@ilo-org/brand-assets v0.5.2
ILO Design System - Brand Assets
Status: Proof of Concept
Static brand assets (pngs, favicons, jpgs, etc.) for use in digital and software products using the ILO Design System.
Getting started
To install @ilo-org/brand-assets
in your project, you will need to run the
following command using npm:
npm install -S @ilo-org/brand-assets
If you prefer Yarn, use the following command instead:
yarn add @ilo-org/brand-assets
Using the package
Direct Reference
Consume the assets by directly referencing the file from the public assets directory created on build (@ilo-org/brand-assets/dist/public/
).
React
To consume the package in a react app, simply import the image of interest, e.g.:
import { logo } from "@ilo-org/brand-assets";
The logo represents the src string of the image. You can pass directly into an img tag to render the brand asset in your app.
<img src={logo} />