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

@shared-dashboard-solid/ui-standalone

v1.2.18

Published

SolidJS Component Library (Design System) - Modular and treeshakeable component library with TypeScript, Tailwind CSS, and Storybook

Readme

SolidJS Component Library (Design System)

A modular and treeshakeable SolidJS component library built with TypeScript, Tailwind CSS, SCSS Modules, and Storybook.

✨ Latest Version: 1.2.14

Version 1.2.14 includes critical fixes for:

  • ✅ Consistent export names (Button, Badge, Alert)
  • ✅ TypeScript declaration files
  • ✅ Bundle optimization with shared dependencies
  • ✅ Individual component publishing support

🚀 Quick Start

Option 1: UI-Standalone Package (Recommended)

npm install @shared-dashboard-solid/[email protected]
// Import styles (required)
import '@shared-dashboard-solid/ui-standalone/styles';

// Import components
import { Button, Badge, Alert } from '@shared-dashboard-solid/ui-standalone';

// OR import individual components for optimal tree-shaking
import { Button } from '@shared-dashboard-solid/ui-standalone/Button';
import { Badge } from '@shared-dashboard-solid/ui-standalone/Badge';

Option 2: Individual Component Packages

npm install @shared-dashboard-solid/[email protected]
npm install @shared-dashboard-solid/badge
npm install @shared-dashboard-solid/alert
import { Button } from '@shared-dashboard-solid/button';
import { Badge } from '@shared-dashboard-solid/badge';
import '@shared-dashboard-solid/button/ui-standalone.css'; // Required

📦 Bundle Sizes (v1.2.14+)

  • Button: ~13.5KB total (1KB + 12.5KB shared)
  • Badge: ~13.4KB total (0.9KB + 12.5KB shared)
  • Alert: ~13.6KB total (1.1KB + 12.5KB shared)
  • Full Bundle: ~15KB (optimal for multiple components)

🎯 Usage Examples

Button Component

import { Button } from '@shared-dashboard-solid/ui-standalone/Button';

<Button variant="primary" size="lg" onClick={() => console.log('Clicked!')}>
  Click me!
</Button>

Badge Component

import { Badge } from '@shared-dashboard-solid/ui-standalone/Badge';

<Badge color="success" size="sm">
  Success
</Badge>

Alert Component

import { Alert } from '@shared-dashboard-solid/ui-standalone/Alert';

<Alert variant="error" title="Error">
  Something went wrong. Please try again.
</Alert>

🔧 TypeScript Support

Full TypeScript support with proper component props:

import { Button, type ButtonProps } from '@shared-dashboard-solid/ui-standalone/Button';

// Full autocomplete and type checking
const CustomButton: Component<ButtonProps> = (props) => {
  return <Button {...props} />;
};

🐛 Troubleshooting

Common Issues & Solutions:

❌ "Cannot find declaration file"

Solution: Update to v1.2.14+:

npm install @shared-dashboard-solid/[email protected]

❌ "Does not provide an export named 'Badge'"

Solution: Use v1.2.14+ with consistent exports:

npm install @shared-dashboard-solid/[email protected]

❌ Bundle size too large

Solution: Version 1.2.14+ uses shared dependencies for optimal tree-shaking.

For complete troubleshooting guide, see docs/TROUBLESHOOTING.md

🛠️ Available Scripts

Building

npm run build:all          # Build all components
npm run build:individual    # Build individual components
npm run build:standalone    # Build standalone bundle
npm run build:component     # Build specific component

Publishing

npm run publish:standalone  # Publish full package
npm run publish:button      # Publish individual Button
npm run publish:badge       # Publish individual Badge
npm run publish:alert       # Publish individual Alert

Development

npm run dev                 # Start dev server
npm run storybook           # Start Storybook
npm run test                # Run tests
npm run test:coverage       # Run tests with coverage
npm run generate            # Generate new component (see below)

Component Generation

# Generate new components with full boilerplate
npm run generate <atomic-type> <component-name>

# Examples:
npm run generate atoms Input          # Generate Input atom
npm run generate molecules Card       # Generate Card molecule
npm run generate organisms Header     # Generate Header organism
npm run generate templates PageLayout # Generate PageLayout template
npm run generate pages HomePage      # Generate HomePage page

Atomic Types Available:

  • atoms - Basic UI elements (Button, Input, Icon)
  • molecules - Simple combinations (Card, FormField, SearchBox)
  • organisms - Complex components (Header, Sidebar, Table)
  • templates - Layout components (PageLayout, AuthLayout)
  • pages - Complete pages (HomePage, LoginPage)

Generated Files:

  • Component file (.tsx) with TypeScript interfaces
  • SCSS module (.module.scss) with design tokens
  • Index file (index.ts) for exports
  • Test file (.test.tsx) with Solid Testing Library
  • Storybook file (.stories.tsx) for documentation
  • Automatic updates to main index.ts, vite.config.ts, and package.json

📚 Available Components

Atoms

Button

  • Variants: primary, secondary, ghost
  • Sizes: sm, md, lg
  • Extends: JSX.ButtonHTMLAttributes<HTMLButtonElement>

Badge

  • Colors: default, success, warning, error
  • Sizes: sm, md
  • Extends: JSX.HTMLAttributes<HTMLSpanElement>

Alert

  • Variants: primary, secondary, success, warning, error, outline
  • Sizes: sm, md, lg
  • Props: title, children

🎨 Design System Features

  • SolidJS with TypeScript
  • Modular Builds - Individual components can be built separately
  • Treeshakeable - Side-effect free with proper exports
  • Design System - Comprehensive design tokens and consistent styling
  • Tailwind CSS + SCSS Modules with design tokens
  • Storybook for component documentation and development
  • Vite for fast building and development
  • Unit Testing with Vitest and Solid Testing Library

🎨 Design Tokens

All styling is based on design tokens defined in tailwind.config.js:

  • Colors: Primary, secondary, success, warning, error, and neutral palettes
  • Typography: Consistent font sizes, weights, and line heights
  • Spacing: 4px base unit with consistent scale
  • Shadows: Pre-defined shadow styles for different components
  • Border Radius: Consistent border radius scale
  • Animations: Standardized transitions and keyframes

🔒 Security

npm Audit Status: 1 low severity vulnerability in devDependencies

  • Impact: Development only, doesn't affect production runtime
  • Solution: Safe to use, or run npm audit fix --force if needed

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📞 Support

For issues not covered in docs/TROUBLESHOOTING.md:

  1. Check you're using version 1.2.14+
  2. Verify imports match documented patterns
  3. Ensure styles are imported correctly
  4. Review your TypeScript configuration

Version History:

  • 1.2.14 - Final stable version with all fixes
  • 1.2.13 - Fixed export name inconsistencies
  • 1.2.12 - Added proper TypeScript declarations
  • 1.2.11 - Improved bundle structure
  • 1.2.10 - Enhanced individual component support
  • 1.2.9 - Bundle optimization fixes
  • 1.2.8 - Security improvements
  • 1.2.7 - Initial stable release