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

@shopify/shop-minis-react

v0.28.1

Published

React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)

Readme

@shopify/shop-minis-react

React component library for Shopify Shop Minis with Tailwind CSS v4 support. This library provides a comprehensive set of components with minimal setup required for consumers.

Features

  • 🎨 Tailwind CSS v4 with CSS-first design tokens
  • 📦 Source-only distribution for optimal tree-shaking
  • 🎯 TypeScript first with full type safety
  • 🔧 Minimal setup for consumers
  • 🎭 Dark mode support out of the box
  • ♿ Accessible components built with Radix UI

Installation

pnpm add @shopify/shop-minis-react
# or
npm install @shopify/shop-minis-react
# or
yarn add @shopify/shop-minis-react

Peer Dependencies

pnpm add react react-dom tailwindcss typescript

Quick Setup

1. Import Styles

Add the library's CSS to your main CSS file or app entry point:

/* src/index.css or src/app.css */
@import "@shopify/shop-minis-react/styles";

/* Your custom styles */
@layer base {
  :root {
    /* Override CSS variables if needed */
    --radius: 0.5rem;
  }
}

2. Use Components

import { Button, Card, CardContent, CardHeader, CardTitle } from '@shopify/shop-minis-react'

function App() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Hello Shop Minis</CardTitle>
      </CardHeader>
      <CardContent>
        <Button>Click me</Button>
      </CardContent>
    </Card>
  )
}

Advanced Configuration

Custom Theme

You can customize the design system by overriding theme variables:

:root {
  /* Customize primary brand color */
  --theme-primary: #00843d;
  --theme-primary-foreground: #ffffff;

  /* Customize other semantic colors */
  --theme-secondary: #f0f0f0;
  --theme-destructive: #cc0000;

  /* Customize border radius */
  --radius: 0.75rem;
}

.dark {
  --theme-primary: #10b554;
  --theme-background: #1a1a1a;
}

See THEME-CUSTOMIZATION.md for detailed customization options.

Vite Configuration

For optimal development experience with Vite:

// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'

export default defineConfig({
  plugins: [react(), tailwindcss()],
  optimizeDeps: {
    include: ['@shopify/shop-minis-react']
  }
})

Component Philosophy

This library follows a source-only distribution model, meaning:

  • ✅ Tree-shaking friendly - Only import what you use
  • ✅ TypeScript native - Full type safety without compilation artifacts
  • ✅ CSS-first theming - Customize appearance via CSS variables
  • ✅ Build-time optimization - Components are optimized with your build

Available Components

  • Layout: Card, Container, Grid
  • Forms: Button, Input, Label, Textarea
  • Feedback: Alert, Toast, Loading
  • Navigation: Tabs, Breadcrumb
  • Overlays: Dialog, Popover, Tooltip
  • Data Display: Badge, Avatar, Separator

Troubleshooting

Styles Missing or Components Look Unstyled

If your components appear unstyled, it's likely a Tailwind content scanning issue:

  1. Ensure CSS is imported:

    @import "@shopify/shop-minis-react/styles";
  2. Check Tailwind content scanning: Your tailwind.config.js must include our library files:

    content: [
      './src/**/*.{js,ts,jsx,tsx}',
      // This line is CRITICAL:
      './node_modules/@shopify/shop-minis-react/src/**/*.{js,ts,jsx,tsx}',
    ]
  3. Use our preset (easiest):

    const shopMinisConfig = require('@shopify/shop-minis-react/tailwind')
    module.exports = { ...shopMinisConfig, /* your config */ }
  4. Verify build process: Ensure your build tool processes the imported CSS file.

Contributing

This package is part of the Shopify Shop Client monorepo. Please refer to the main repository for contribution guidelines.

License

See LICENSE.txt for details.