@gravity-ui/illustrations

Pack of Gravity UI illustrations


License
MIT
Install
npm install @gravity-ui/illustrations@1.0.0

Documentation

@gravity-ui/illustrations · npm package CI storybook

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';