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

@emoteer/theme

v0.1.1

Published

Design tokens, base CSS and Tailwind v4 preset for emoteer.

Readme

@emoteer/theme

Design tokens, base CSS and Tailwind CSS v4 preset for emoteer.

CSS-only. This package ships no JavaScript — just two CSS entry points. It is normally consumed transitively via @emoteer/react; install it directly only if you want the raw tokens or the Tailwind preset without the components.

Install

npm install @emoteer/theme
# or
pnpm add @emoteer/theme

Entry points

Two CSS files, pick one based on your setup:

| Import | Format | Use when… | | ------------------------------- | --------------- | ---------------------------------------------------------- | | @emoteer/theme/css | Plain CSS | You're not on Tailwind. Ships CSS custom properties only. | | @emoteer/theme/tailwind | Tailwind v4 @theme | You use Tailwind v4 and want bg-em-* / text-em-* utilities. |

@emoteer/theme/css — CSS variables

// app entry
import "@emoteer/theme/css";

Defines the full --em-* token set on :root and a dark override on .dark. Each token falls back to a neutral default and can be overridden by user-level tokens (--background, --foreground, --primary, …) so the theme slots into existing design systems without collisions.

@emoteer/theme/tailwind — Tailwind v4 preset

/* your tailwind entry css */
@import "@emoteer/theme/tailwind";

Re-exports the base CSS and adds a @theme block that exposes each --em-* token as a Tailwind utility — color utilities (bg-em-bg, text-em-fg, border-em-border, …), radius utilities (rounded-em, rounded-em-search, …) and border-width utilities (border-em, border-em-reaction-sticker, …) — plus the animate-burst keyframe used by the reaction particle effects.

Peer dependency: tailwindcss@^4. Marked optional — npm won't warn if you don't install it.

Tokens

Base tokens

| Token | Default (light) | Purpose | | ---------------- | ------------------------------ | -------------------------------------------------------- | | --em-bg | hsl(0 0% 100%) | Background of pickers, popovers, reaction bars | | --em-fg | hsl(0 0% 9%) | Primary foreground text | | --em-border | hsl(0 0% 85%) | Borders on controls, scrollbars, separators | | --em-primary | hsl(0 0% 87%) | Focus rings, emphasized states | | --em-muted | hsl(215.4 16.3% 46.9%) | Secondary text, de-emphasized labels | | --em-hover | hsl(210 40% 96.1%) | Hover background for rows and buttons | | --em-active | hsl(210 40% 91%) | Pressed / active background | | --em-shadow | hsl(0 0% 0%) | Shadow color (consumed by components as needed) | | --em-radius | 0.5rem | Base border radius | | --em-border-width | 0.5px | Base border width for form controls |

Every token reads from a higher-level variable first — e.g. --em-bg: var(--background, hsl(0 0% 100%)) — so overriding --background in your own stylesheet cascades automatically.

Per-slot overrides

The base tokens above set the default look across the library. For finer control, every styled slot also exposes its own variable that defaults to the base token. Set just the slots you want to change and leave everything else untouched.

Four properties cascade this way: radius, background, border color and border width.

--em-<property>              ← global default for this property
--em-<property>-<slot>       ← per-slot override, defaults to the global

Slots:

| Slot | Used by | | ------------------------ | -------------------------------------------------- | | root | Outer container of EmoteList / picker. | | search | EmoteList.Search input. | | preview | EmoteList.Preview panel. | | input | EmoteInput. | | textarea | EmoteTextArea. | | autocomplete-input | EmoteAutocomplete.Input. | | autocomplete-list | EmoteAutocomplete.List. | | reaction-item | ReactionButton.Item. | | reaction-sticker | ReactionButton.Sticker. | | reaction-chip | ReactionCounter chip. |

Example — pill-shaped search and autocomplete, everything else unchanged:

:root {
  --em-radius-search: 9999px;
  --em-radius-autocomplete-input: 9999px;
}

Example — thicker border on the sticker button only:

:root {
  --em-border-width-reaction-sticker: 3px;
}

A couple of slots ship non-default values out of the box so the base look stays consistent:

  • --em-border-width-root: 1px — the outer picker frame uses a visible edge.
  • --em-border-width-reaction-sticker: 2px — stickers are heavier by design.
  • --em-border-width-autocomplete-list: 1px — popover listbox borders are full-pixel.

Dark mode

Apply the dark class to any ancestor (commonly <html>):

<html class="dark">
  …
</html>

The .dark selector overrides the token subset that changes between schemes. If you're using a theme-switcher library like next-themes with attribute="class", you're already set.

Customization

Override tokens anywhere in your own CSS — they cascade like any custom property:

:root {
  --em-primary: hsl(280 90% 60%);     /* brand accent */
  --em-radius: 0.25rem;                /* tighter corners everywhere */
  --em-radius-search: 9999px;          /* …except the search box */
}

.dark {
  --em-border: hsl(260 20% 30%);       /* dark border tint */
}

Because per-slot tokens default to their base token, a change to --em-radius propagates to every slot unless you've explicitly overridden one.

Or map them to an existing design system's own tokens:

:root {
  --em-bg: var(--surface-01);
  --em-fg: var(--text-primary);
  --em-border: var(--border-subtle);
  --em-primary: var(--accent-500);
}

Zag.js scroll-area CSS

base.css also includes a tiny block that hides native scrollbars on any element with data-part="viewport" (emitted by @zag-js/scroll-area). This is framework-agnostic and will remain compatible with future Svelte and Vue bindings that use the same Zag machines.

License

MIT © vyers