Illustrations for use with the Event Store design system
yarn add @eventstore-ui/illustrations
In your globalScript
file, add an import:
import '@eventstore-ui/illustrations';
Then you can use the element anywhere in your JSX, html, templates etc.
Add your light and dark illustrations to the raw
directory, with the naming scheme:
IllustrationName-Dark.svg
IllustrationName-Light.svg
Then run the import script:
yarn import
Check inside src/components/[illustration-name]
to ensure that the import worked as expected.
Finally, build the package to generate the types.
yarn build