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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hydrogen-ui/ui

v0.2.2

Published

A complete UI library for Shopify Hydrogen storefronts

Readme

@hydrogen-ui/ui

The complete UI library for building Shopify Hydrogen storefronts. One package, everything included.

Installation

npm install @hydrogen-ui/ui
# or
yarn add @hydrogen-ui/ui  
# or
pnpm add @hydrogen-ui/ui

What's Included

  • 🎨 Design Tokens - Comprehensive token system with theme support
  • 🧩 Components - 40+ React components built for ecommerce
  • 🎭 Themes - Multiple theme presets (Dawn, Craft, Studio, B2B, Thnk)
  • 🪝 Hooks - Custom React hooks for Shopify functionality
  • 🛠️ Utilities - Helper functions for common tasks
  • 🎯 Icons - Optimized icon library
  • 🛍️ Shopify Integration - Deep integration with Shopify APIs

Quick Start

import { HydrogenUIProvider, ThemeProvider, Button, ProductCard } from '@hydrogen-ui/ui';

function App() {
  return (
    <HydrogenUIProvider>
      <ThemeProvider theme="dawn">
        <Button variant="primary">Shop Now</Button>
        <ProductCard product={product} />
      </ThemeProvider>
    </HydrogenUIProvider>
  );
}

Import Methods

Import everything (not recommended for bundle size):

import * as HydrogenUI from '@hydrogen-ui/ui';

Import specific components (recommended):

import { Button, Card, Input } from '@hydrogen-ui/ui';

Import from sub-paths for better tree-shaking:

import { Button } from '@hydrogen-ui/ui/components';
import { useCart } from '@hydrogen-ui/ui/hooks';
import { formatMoney } from '@hydrogen-ui/ui/utils';
import { CartIcon } from '@hydrogen-ui/ui/icons';
import { dawn } from '@hydrogen-ui/ui/themes';

Available Imports

Components

  • AddToCartButton
  • Analytics (Provider, Views)
  • Box, Flex, Grid, Stack
  • Button
  • CartForm, CartLineItem, CartSummary
  • Checkbox, Radio, Select, Input
  • CollectionGrid
  • Drawer, Modal
  • FilterDrawer
  • Footer, Header
  • Heading, Text, Code
  • Image, Video, ExternalVideo
  • Link
  • MediaFile, ModelViewer
  • Money
  • OptimisticInput
  • Pagination
  • ProductCard, ProductImage, ProductPrice
  • RichText
  • Script, Seo
  • ShopPayButton
  • VariantSelector
  • And more...

Hooks

  • useCart, useCartDrawer, useOptimisticCart
  • useCustomer, useAddresses
  • useProduct, useProductRecommendations, useProductSearch
  • useAnalytics
  • useTheme, useToken
  • useDebouncedValue, useMediaQuery, useLocalStorage
  • And more...

Themes

  • dawn - Clean, minimal theme
  • craft - Artisan-focused theme
  • studio - Modern, bold theme
  • b2b - Business-focused theme
  • thnk - Custom brand theme

Utilities

  • Formatters: formatMoney, formatDate, formatTax
  • Validators: validateEmail, validatePhone, validatePostalCode
  • Helpers: getImageUrl, getProductOptions, parseGid
  • API: createStorefrontClient, rateLimiter

Icons

  • 200+ optimized SVG icons
  • Tree-shakeable icon components
  • Customizable size and color

Theme Usage

import { ThemeProvider } from '@hydrogen-ui/ui';

// Use a preset theme
<ThemeProvider theme="dawn">
  {/* Your app */}
</ThemeProvider>

// Or use a custom theme
<ThemeProvider theme={{
  name: 'custom',
  tokens: {
    colors: {
      primary: '#007bff',
      // ... your tokens
    }
  }
}}>
  {/* Your app */}
</ThemeProvider>

TypeScript Support

Full TypeScript support with exported types:

import type { 
  Theme,
  Product,
  Cart,
  ButtonProps,
  ThemeTokens 
} from '@hydrogen-ui/ui';

Requirements

  • React 18.0.0 or higher
  • Shopify Hydrogen 2024.0.0 or higher (for Shopify integration features)
  • Node.js 18.0.0 or higher

License

MIT

Documentation

For detailed documentation, visit hydrogen-ui.dev