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

@tale-ui/react-styles

v1.3.27

Published

CSS styles for @tale-ui/react components, built on @tale-ui/core design tokens.

Readme

@tale-ui/react-styles

CSS rules for @tale-ui/react components. Built entirely on @tale-ui/core design tokens (--neutral-*, --color-*, --space-*, --text-*).

@tale-ui/react components apply BEM class names automatically (e.g. tale-button, tale-select__popup). This package provides the CSS rules for those classes.

Installation

pnpm add @tale-ui/react-styles

This automatically pulls in @tale-ui/core (the design-token layer).

Usage

All components (recommended)

import '@tale-ui/react-styles';          // tokens + every component stylesheet

Per-component (tree-shakeable CSS)

import '@tale-ui/core';                  // tokens — required when using per-component imports
import '@tale-ui/react-styles/button';
import '@tale-ui/react-styles/dialog';

Available per-component exports

accordion · alert-dialog · autocomplete · avatar · button · checkbox · combobox · dialog · disclosure · drawer · field · fieldset · form · input · menu · meter · navigation-menu · number-field · popover · preview-card · progress · radio · scroll-area · select · separator · slider · switch · tabs · toast · toggle · toolbar · tooltip

Architecture

@tale-ui/core          (tokens, foundations, layout, themes)
      ↓
_primitives.css        (shared declarations for field controls, popups, items, etc.)
      ↓
{component}.css        (only the differentiating styles for each component)

_primitives.css

Grouped selectors for declarations that are byte-for-byte identical across multiple components. Five groups:

  1. Field controls.tale-input, .tale-select__trigger, .tale-combobox__input, .tale-autocomplete__input (shared border, padding, font, focus ring)
  2. Dropdown popups.tale-select__popup, .tale-combobox__popup, .tale-menu__popup, etc. (shared background, border-radius, shadow, animation)
  3. Dropdown items.tale-select__item, .tale-menu__item, etc. (shared layout, hover, disabled states)
  4. Group labels.tale-select__group-label, .tale-menu__group-label, etc.
  5. Misc — separators, popup arrows, item indicators

Individual component files

Each file contains only the styles that differ from the shared primitives. For example, menu.css adds menu-specific padding and submenu trigger arrow, but inherits popup background, border-radius, and shadow from _primitives.css.

CSS Class Naming

.tale-{component}                     — root element
.tale-{component}--{variant}          — variant modifier
.tale-{component}__{element}          — child element (BEM)
.tale-{component}[data-disabled]      — state via data attribute

Examples:

.tale-button                          /* root */
.tale-button--primary                 /* variant */
.tale-button--sm                      /* size */
.tale-select__trigger                 /* child element */
.tale-select__item[data-highlighted]  /* state */

Contributing a New Component Style

  1. Create src/{component}.css with a header comment documenting the component's data attributes and usage
  2. Check _primitives.css — if your component shares declarations with existing groups (field controls, popups, items), add its selector to the relevant group instead of duplicating
  3. Add @import './{component}.css' to src/index.css in the appropriate category section
  4. Add "./{component}": "./src/{component}.css" to package.json exports

License

MIT