In your main React file, you could do :
import "iota-css-theme";
You have to manually copy the icon font in to your project to use it.
The css for this package will automatically load the font from /assets/iota-icons.ttf
at runtime, there is no need to link to the font file manually in your source.
If for example, you are using create-react-app, you should copy /assets/iota-icons.ttf
into the /public/assets
folder of you react app. When the app builds it will copy the file into the /assets
folder.
View the Styleguide at https://iota-css-theme.dag.sh
To build the package run:
npm run build
or to build and then serve the style guide locally:
npm run build-serve
or to watch the sass files and automatically rebuild once they have been served you can use:
npm run build-serve-watch