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

@yuva-devlab/ui

v0.2.0

Published

[![npm version](https://img.shields.io/npm/v/@yuva-devlab/ui.svg)](https://www.npmjs.com/package/@yuva-devlab/ui) [![npm downloads](https://img.shields.io/npm/dm/@yuva-devlab/ui.svg)](https://www.npmjs.com/package/@yuva-devlab/ui) [![License: MIT](https:/

Readme

📦 @yuva-devlab/ui

npm version npm downloads License: MIT

A production-ready, fully-typed React component library built with Vanilla Extract, featuring a natural design system and comprehensive accessibility support.

Features

  • 🎨 Natural Design System - Organic color palettes inspired by Material Design 3
  • 🔒 Type-Safe - Full TypeScript support with comprehensive type definitions
  • 🎭 Zero-Runtime CSS - Vanilla Extract compiles styles at build time
  • Accessible - Built on Radix UI primitives with ARIA compliance
  • 🧩 Polymorphic - Components support as prop for semantic flexibility
  • 🎯 Tree-Shakeable - Import only what you need
  • 📦 Monorepo Architecture - Clean separation of tokens, primitives, and components

Installation

# npm
npm install @yuva-devlab/ui

# yarn
yarn add @yuva-devlab/ui

# pnpm
pnpm add @yuva-devlab/ui

Peer Dependencies

# npm
npm install react@^19.2.0 react-dom@^19.2.0

# yarn
yarn add react@^19.2.0 react-dom@^19.2.0

# pnpm
pnpm add react@^19.2.0 react-dom@^19.2.0

Quick Start

import { Button, Input, Stack, Container } from "@yuva-devlab/ui";
import "@yuva-devlab/ui/styles.css";

function App() {
  return (
    <Container size="lg">
      <Stack gap="md">
        <Input
          label="Email"
          placeholder="[email protected]"
          type="email"
        />
        <Button
          variant="primary"
          size="md"
        >
          Sign In
        </Button>
      </Stack>
    </Container>
  );
}

Available Components

Form Components

  • Button - Primary, secondary, tertiary variants with loading states
  • Input - Text input with label, error states, and helper text

Typography

  • Typography - Polymorphic text component supporting h1-h6, p, span, etc.

Layout Components

  • Box - Polymorphic container with spacing utilities
  • Flex - Flexbox layout with alignment and gap props
  • Grid - CSS Grid layout with responsive columns
  • Stack - Vertical/horizontal stacking with consistent spacing
  • Container - Responsive max-width wrapper (sm, md, lg, xl, 2xl)

Coming Soon

  • Select (Radix UI based)
  • Switch (Radix UI based)
  • Checkbox (Radix UI based)
  • Radio (Radix UI based)
  • InputNumber

Component Examples

Button

import { Button } from "@yuva-devlab/ui";

// Variants
<Button variant="primary">Primary Action</Button>
<Button variant="secondary">Secondary Action</Button>
<Button variant="tertiary">Tertiary Action</Button>

// Sizes
<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>

// States
<Button loading>Loading...</Button>
<Button disabled>Disabled</Button>

// Polymorphic
<Button as="a" href="/home">Link Button</Button>

Layout System

import { Container, Stack, Flex, Box } from "@yuva-devlab/ui";

<Container size="xl">
  <Stack gap="lg">
    <Flex
      align="center"
      justify="between"
    >
      <Box p="md">Logo</Box>
      <Box>Navigation</Box>
    </Flex>

    <Grid
      cols={{ base: 1, md: 2, lg: 3 }}
      gap="md"
    >
      <Box p="lg">Card 1</Box>
      <Box p="lg">Card 2</Box>
      <Box p="lg">Card 3</Box>
    </Grid>
  </Stack>
</Container>;

Styling

This library uses Vanilla Extract for type-safe, zero-runtime CSS. All styles are compiled at build time.

Importing Styles

// Import global styles once in your app entry point
import "@yuva-devlab/ui/styles.css";

Theming

The library includes a natural theme by default. Custom theming support coming soon.

Development

# Install dependencies
pnpm install

# Build the library
pnpm --filter @yuva-devlab/ui build

# Run tests
pnpm --filter @yuva-devlab/ui test

# Type check
pnpm --filter @yuva-devlab/ui type-check

Documentation

  • Storybook: Run pnpm dev:docs to view interactive component documentation
  • Playground: Run pnpm dev:playground to test components in a live environment

Related Packages

License

MIT © Yuva Devlab