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

indium-ui

v0.1.0

Published

Semantic component library for Svelte 5 with accessible, themeable components and integrated CSS framework

Readme

indium-ui

Semantic component library for Svelte 5 with accessible, themeable components and integrated CSS framework

npm version License: MIT

🚧 Work in Progress

This library is currently in early development. The API may change frequently until v1.0.

Features

  • 🎨 Semantic CSS - Readable class names instead of utility classes
  • Accessibility First - WCAG 2.2 Level AA compliance (AAA target)
  • 🌓 Dark Mode - Built-in light/dark themes with auto-detection
  • 🎯 Type Safe - Full TypeScript support with comprehensive types
  • 🎨 Themeable - Customizable via CSS custom properties
  • 📦 Tree-shakeable - Import only what you need
  • 🚀 Svelte 5 - Built with the latest Svelte Runes API

Installation

# pnpm (recommended)
pnpm add indium-ui

# npm
npm install indium-ui

# yarn
yarn add indium-ui

Quick Start

<script>
  import { Button } from 'indium-ui';
  import 'indium-ui/styles';
</script>

<Button variant="primary" size="md">
  Click me
</Button>

Theme Setup

Initialize the theme in your root layout:

<!-- +layout.svelte -->
<script>
  import { initTheme } from 'indium-ui/theme';
  import 'indium-ui/styles';

  // Initialize theme on mount
  $effect(() => {
    initTheme();
  });
</script>

<slot />

Available Components

Atoms (1/15)

  • ✅ Button
  • ⏳ Input
  • ⏳ Checkbox
  • ⏳ Radio
  • ⏳ Select
  • ⏳ Textarea
  • ⏳ Link
  • ⏳ Badge
  • ⏳ Tag
  • ⏳ Icon
  • ⏳ Heading
  • ⏳ Text
  • ⏳ Image
  • ⏳ Video
  • ⏳ Divider

More components coming soon...

Theme Customization

import { applyTheme } from 'indium-ui/theme';

applyTheme({
  'color-action-primary': '#ff6b6b',
  'color-action-primary-hover': '#ff5252',
  'radius-md': '0.75rem',
});

Dark Mode

import { setThemeMode, getThemeMode, toggleTheme } from 'indium-ui/theme';

// Set theme mode
setThemeMode('dark');   // Force dark mode
setThemeMode('light');  // Force light mode
setThemeMode('auto');   // Follow system preference

// Toggle between light and dark
toggleTheme();

// Get current mode
const mode = getThemeMode(); // 'light' | 'dark' | 'auto'

Development

# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Run Storybook
pnpm storybook

# Run tests
pnpm test
pnpm test:unit
pnpm test:e2e

# Build library
pnpm build

# Check types
pnpm check

# Lint
pnpm lint

Releasing

This project uses a simple, CHANGELOG-driven release process:

  1. Update CHANGELOG.md with the new version and changes:

    ## [0.2.0] - 2025-01-16
    
    ### Added
    - New Input component
    
    ### Fixed
    - Button focus styles
  2. Run the release command:

    pnpm release

This will automatically:

  • Extract version and release notes from CHANGELOG.md
  • Update package.json version
  • Create git commit and tag
  • Push to GitHub
  • Create GitHub Release with changelog notes
  • Publish to npm

Prerequisites:

  • GitHub CLI (gh) must be installed
  • You must be logged in to npm (npm login)
  • No uncommitted changes in git

Project Structure

src/
├── lib/
│   ├── components/
│   │   ├── atoms/           # Basic components (Button, Input, etc.)
│   │   ├── molecules/       # Composite components (Card, Alert, etc.)
│   │   └── organisms/       # Complex components (Modal, Header, etc.)
│   ├── config/
│   │   ├── types.ts         # Type definitions
│   │   ├── defaults.ts      # Default configuration
│   │   ├── config-loader.ts # Configuration loading
│   │   ├── render-helpers.ts # CSS generation helpers
│   │   └── postcss-plugin.ts # PostCSS theme plugin
│   ├── styles/
│   │   ├── reset.css        # CSS reset
│   │   ├── components/      # Component styles
│   │   └── index.css        # Main bundle
│   └── utils/
│       ├── theme.ts         # Theme utilities
│       ├── a11y.ts          # Accessibility helpers
│       └── types.ts         # Shared TypeScript types

Documentation

Contributing

This project is currently in early development. Contributions will be welcome once we reach v1.0.

For more information, see our Contributing Guide.

License

MIT © Mirko Schubert

See LICENSE for details.

Acknowledgments

  • Built with Svelte 5
  • Icons by Lucide
  • Inspired by semantic design systems and accessibility-first development