npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gravity-ui/illustrations

v3.0.0

Published

Pack of Gravity UI illustrations

Readme

@gravity-ui/illustrations · npm package CI storybook

Installation

npm install --save-dev @gravity-ui/illustrations

Usage

React

Preparation

Setup illustrations theme. Execute any of the following steps:

Defining css-tokens with own colors pallete

Define following css-tokens in app:

--gil-color-object-base: rgb(255, 190, 92);
--gil-color-object-accent-heavy: rgb(211, 101, 7);
--gil-color-object-hightlight: rgb(255, 216, 157);
--gil-color-shadow-over-object: rgb(211, 158, 80);
--gil-color-background-lines: rgb(140, 140, 140);
--gil-color-background-shapes: rgb(242, 242, 242);
--gil-color-object-accent-light: rgb(255, 255, 255);
--gil-color-object-danger: rgb(255, 0, 61);
Using mixins with default gravity-theme in scss

Use the following mixins for styling illustrations in different themes

@import '@gravity-ui/illustrations/styles/theme.scss';

.g-root {
  &_theme_light {
    @include g-illustrations-colors-light;
  }

  &_theme_light-hc {
    @include g-illustrations-colors-light-hc;
  }

  &_theme_dark {
    @include g-illustrations-colors-dark;
  }

  &_theme_dark-hc {
    @include g-illustrations-colors-dark-hc;
  }
}
Alternative for projects with pre-installed gravity theme

Alternatively, if @gravity-ui/uikit is already installed in the project and default theme is used, you can just import styles.scss to the root file with styles in your project:

// existing gravity styles definition
import '@gravity-ui/uikit/styles/styles.css';
// just add one more import below
import '@gravity-ui/illustrations/styles/styles.scss';

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

Development

For updating illustrations according to new design, change the content of svg-s in light theme (<this-repository-root>/svgs/<illustration-name>-light.svg files) and then run command:

npm run generate

License

Distributed under the MIT License. See LICENSE for details.

For AI agents

A themed set of flat SVG illustrations (empty states, errors, not-found, etc.) for Gravity UI apps — reach for it when you need ready-made, theme-aware placeholder/empty-state artwork instead of drawing your own or using bare icons.

When to use

  • Empty states, 404/error pages, or onboarding placeholders that need a consistent illustration, not a functional UI control.
  • Themeable artwork — the SVGs respond to Gravity theme tokens (light/dark, high-contrast) via SCSS mixins or CSS variables.
  • Importing artwork as React components (default) or as raw .svg files.

When not to use

  • For functional UI iconography (chevrons, checks, buttons), use @gravity-ui/icons — illustrations are decorative artwork, not UI glyphs.
  • For a single one-off illustration you already have as an asset, import that asset directly rather than pulling in this package.

Common pitfalls

  • Rendering without a theme import — illustrations appear uncolored unless you import @gravity-ui/illustrations/styles/styles.scss (or define the --gil-color-* CSS tokens).
  • Hallucinated default export names — illustration components are PascalCase named exports (e.g. NotFound), imported from the package root or per-file (@gravity-ui/illustrations/NotFound).
  • Importing .svg directly in a non-configured bundler — raw SVG imports need an appropriate loader; prefer the React component export to avoid bundler setup.

Documentation for AI agents

Agent-readable documentation for the installed version is located in node_modules/@gravity-ui/illustrations/docs/INDEX.md.