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

@apify/ui-library

v1.157.4

Published

React UI library used by apify.com

Downloads

16,503

Readme

@apify/ui-library

Browse components at the hosted Storybook.

Apify's React design-system library — primitives, theme tokens, and styled components shared across Apify Console and the marketing web.

Install

pnpm add @apify/ui-library

Peer dependencies (install in your project if not already there):

  • react 17.x · 18.x · 19.x
  • react-dom 17.x · 18.x · 19.x
  • styled-components ^6.1.19

Quick start

import { Box, Button, Text } from '@apify/ui-library';

export const SaveBar = ({ onSave }: { onSave: () => void }) => (
    <Box pt="space8" pb="space8">
        <Text size="regular">You have unsaved changes.</Text>
        <Button variant="primary" color="default" mt="space4" onClick={onSave}>
            Save
        </Button>
    </Box>
);

<Box> exposes spacing tokens as utility props (pt, mb, mx, p, …); <Text> and <Heading> apply typography tokens via size. All values come from the shared theme — never hardcode colors, spacing, or radii.

What's inside

  • LayoutBox (utility-prop wrapper around any element)
  • TypographyText, Heading, plus content / shared / marketing variants
  • FormsButton, IconButton, Checkbox, RadioButton, Switch, Select
  • DataTable + primitives (TableHead, TableRow, TableCell, …), Badge, Chip, Tag
  • FeedbackBanner, Message, Spinner
  • NavigationTabs, Breadcrumb, Pagination, Link
  • OverlayFloating (menus, tooltips), CollapsibleCard
  • Theme tokenstheme.color.*, theme.space.*, theme.text.*, theme.radius.*, theme.shadow.*, theme.transition.*

Using color tokens outside of styled-components

For external projects that don't use styled-components — such as Tailwind-based apps or plain CSS — the package ships pre-built CSS files that register all color tokens as CSS custom properties on :root:

  • @apify/ui-library/style/colors/tokens.light.css
  • @apify/ui-library/style/colors/tokens.dark.css

Import the file that matches your theme in your global stylesheet:

@import '@apify/ui-library/style/colors/tokens.light.css';

You can then reference any token via CSS custom properties:

.my-element {
    color: var(--color-neutral-text);
    background: var(--color-neutral-background);
    border-color: var(--color-neutral-border);
}

For Tailwind, map the variables in tailwind.config.js:

/** @type {import('tailwindcss').Config} */
export default {
    theme: {
        extend: {
            colors: {
                'neutral-text': 'var(--color-neutral-text)',
                'neutral-bg': 'var(--color-neutral-background)',
                'neutral-border': 'var(--color-neutral-border)',
            },
        },
    },
};

Storybook

From the repository root:

pnpm run storybook

This starts both Storybooks in parallel — Console-specific stories on http://localhost:6006 and shared design-system stories (this library) on http://localhost:6007.

Contributing

See CONTRIBUTING.md for the component lifecycle, design-token sync (Figma colors and Supernova typography), Storybook conventions, publishing, and the review checklist. New components are easiest to scaffold with the /create-ui-component Claude Code skill.