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

@rokkit/themes

v1.2.0

Published

Theme styles for @rokkit/ui components

Downloads

3,385

Readme

@rokkit/themes

Pre-built CSS themes for @rokkit/ui components.

Install

npm install @rokkit/themes
# or
bun add @rokkit/themes

Overview

@rokkit/themes provides visual styles for @rokkit/ui components. Components in @rokkit/ui are unstyled by default — themes layer on top without requiring changes to component markup. Styles target semantic data-* attributes that components emit (e.g. [data-button], [data-list-item]).

Available themes:

| Theme | Description | | ---------- | -------------------------------------------------------------------- | | rokkit | Default — gradients and glowing borders | | minimal | Clean and subtle | | material | Elevation and shadows | | frosted | Frosted glass and blur | | zen-sumi | Ink on paper — no shadows, no gradients | | base | Structural styles only (layout and positioning, no visual treatment) |

Usage

Full bundle (base + all themes)

@import '@rokkit/themes';

Or in JavaScript/TypeScript:

import '@rokkit/themes'

Single theme

@import '@rokkit/themes/rokkit.css';
/* or */
@import '@rokkit/themes/minimal.css';
/* or */
@import '@rokkit/themes/material.css';
/* or */
@import '@rokkit/themes/frosted.css';
/* or */
@import '@rokkit/themes/zen-sumi.css';

Base structural styles only

@import '@rokkit/themes/base';

Useful when writing a fully custom theme — imports layout and positioning rules without any visual styling.

Individual component styles

@import '@rokkit/themes/base/button.css';
@import '@rokkit/themes/rokkit/button.css';

Theme scoping

The rokkit theme is the default and applies without any wrapper element.

Other themes are scoped using the data-style attribute:

<!-- Apply minimal theme to a section -->
<div data-style="minimal">
  <!-- @rokkit/ui components here use the minimal theme -->
</div>

<!-- Apply a theme globally -->
<html data-style="material"></html>

Switching themes at runtime is a matter of updating the data-style attribute.

Custom themes

To build your own theme:

  1. Import @rokkit/themes/base for structural styles.
  2. Write CSS targeting the same data-* attribute selectors used by the built-in themes.
  3. Scope your selectors with [data-style='my-theme'] to enable runtime switching.

Component attribute hooks follow the pattern [data-style='my-theme'] [data-button], [data-style='my-theme'] [data-list-item], etc.

Architecture

src/
  base/        -- Structural styles (layout, spacing, positioning)
  rokkit/      -- Default theme (gradients + borders)
  minimal/     -- Clean + subtle theme
  material/    -- Elevation + shadows theme
  frosted/     -- Frosted glass + blur theme
  zen-sumi/    -- Ink on paper theme (no shadows, no gradients)
  index.css    -- Full bundle entry point

Part of Rokkit — a Svelte 5 component library and design system.