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

@snipshot/particles

v0.0.2

Published

Particles UI: CSS oriented React components library

Readme

Particles UI Logo

Particles UI

Note: Particles UI is currently in an experimental alpha version, and there may be critical changes in future releases. We appreciate contributions and invite developers to join us in developing and improving this library.

Particles UI is a modern and customizable React components library for building beautiful web applications.

Features

  • Easy-to-use UI components.
  • Customizable styles and theming.
  • Accessibility-friendly components.
  • Built with performance and scalability in mind.
  • Comprehensive documentation and examples.

Particles UI's styling is built using Sass modules. For customization, we recommend using CSS modules to maintain separation and prevent any unintended styling conflicts.

Installation

npm install @snipshot/particles

After installation, follow these steps to start using Particles UI components:

  1. Import the styles inside you application entry point. Depending on your framework, this could be main.js file for Vite, index.js for CRA, _app.js for Next.js page router, or root layout.js for Next.js app router.
import '@snipshot/particles/style.css';
  1. Set the data-pui-mode attribute on the <html> element. It will be the default color mode for your application, and it can have one of the following values: system, light, or dark.
<!DOCTYPE html>
<html lang="en" data-pui-mode="system">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Application powered by Particles UI</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="index.js"></script>
  </body>
</html>
  1. Import the <PuiTheme /> component that contains default theme and allows you to customise it with mainColors and theme props. Depending on your framework, you can place it inside the <head> element or at the top of the <body> element. It could be App.js file for Vite and CRA, _document.js for Next.js page router, or root layout.js for Next.js app router.

    Below is the example of _document.js file of Next.js pages router:

import { Html, Head, Main, NextScript } from 'next/document';

import { PuiTheme } from '@snipshot/particles';

export default function Document() {
  return (
    <Html lang="en">
      <Head>
        <PuiTheme />
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}
  1. Wrap the contents of your application with the <ThemeProvider> component, which preserves the color mode state and provides useful hooks.

    Here is the example of the root layout.js of Next.js app router:

import { ThemeProvider } from '@snipshot/particles';

export default function RootLayout({ children }) {
  return (
    <html lang="en" data-pui-mode="system">
      <body>
        <PuiTheme />
        <ThemeProvider>
          <main>{children}</main>
        </ThemeProvider>
      </body>
    </html>
  );
}

After completing these steps, you can start using the components within your application:

import { Button } from '@snipshot/particles';

function App() {
  return (
    <div>
      <Button color="secondary">Post</Button>
    </div>
  );
}

We hope you will use them with joy 😉

Documentation

Documentation website is currently under development. It will be released soon on particles.snipshot.dev.

Acknowledgments

  • React - The library for web and native user interfaces.
  • Vite - Frontend Tooling.
  • Next.js - The React Framework for the Web.
  • Nextra - Static site generation framework.
  • Storybook - Frontend workshop for UI development
  • SASS - CSS extension language.
  • Material Design - Google's open-source design system.
  • Fluent 2 - Microsoft's design system.
  • Open UI - The Open UI Community Group.

Contributions

Contributions are always welcome! If you have ideas for improvements or new features, please open an issue or submit a pull request on GitHub.

Contacts

If you have any questions or need assistance, feel free to contact us at [email protected].

License

Particles UI is licensed under the MIT License. See the LICENSE file for details.

Made with ♥️ by Linkerin.