@gravity-ui/illustrations
v1.0.0
Published
Pack of Gravity UI illustrations
Downloads
143
Readme
@gravity-ui/illustrations ·
Install
npm install --save-dev @gravity-ui/illustrations
Usage
React
Preparation
Define --gil-color-underlay
css-token in your app:
--gil-color-underlay: rgba(240, 243, 245, 1);
or use mixins in scss:
@import '@gravity-ui/illustrations/styles/theme.scss';
.g-root {
&_theme_light {
@include g-illustrations-colors-light;
}
&_theme_dark {
@include g-illustrations-colors-dark;
}
}
Usage
import NotFound from '@gravity-ui/illustrations/NotFound';
or
import {NotFound} from '@gravity-ui/illustrations';
SVG
You might need an appropriate loader for this
import notFound from '@gravity-ui/illustrations/svgs/not-found-light.svg';