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

@bestiary-ui/style

v0.1.1

Published

Core styles, variables, and CSS utilities for Bestiary UI

Downloads

250

Readme

@bestiary-ui/style

The core styling engine and design token system for the Bestiary UI ecosystem. A lightweight, framework-agnostic CSS library built with modern web standards.

npm v license

Features

  • Design Tokens First: Fully powered by CSS Variables and Houdini @property for type-safe animations and performance.
  • Zero Specificity: Most selectors use the :where() pseudo-class, allowing you to override any style with a single custom class without !important.
  • Cascade Layers: Organized into @layer (reset, tokens, components, utilities) to prevent style conflicts and ensure a predictable cascade.
  • Multi-Dimensional Theming: Independent control over Geometry (data-theme), Palette (data-essence), and Appearance (data-color-mode).
  • OKLCH Color Space: Perceptually uniform colors with native support for wide-gamut displays and dynamic transparency.
  • Modern Reset: Built-in "smart" reset with text-wrap: balance, logical properties, and field-sizing.

Installation

# Using pnpm
pnpm add @bestiary-ui/style

# Using npm
npm install @bestiary-ui/style

# Using yarn
yarn add @bestiary-ui/style

Usage

1. The Full Bundle (Recommended for simple projects)

Import everything (tokens, reset, all components, and utilities) in one go.

Via JavaScript/TypeScript:

import "@bestiary-ui/style/index.bundle.css";

Via CDN (Unpkg):

<link rel="stylesheet" href="https://unpkg.com/@bestiary-ui/style/index.bundle.css">

2. Granular Imports (Optimized)

Import only what you need to keep your CSS bundle small.

/* 1. Core Definitions (Required) */
@import "@bestiary-ui/style/tokens/primitives.css";
@import "@bestiary-ui/style/tokens/contract.css";

/* 2. Base Reset */
@import "@bestiary-ui/style/reset.css";

/* 3. Theming Configuration */
@import "@bestiary-ui/style/themes/forest.css";
@import "@bestiary-ui/style/essences/leaf.css";

/* 4. Individual Components */
@import "@bestiary-ui/style/components/button.css";
@import "@bestiary-ui/style/components/card.css";

/* 5. Utilities */
@import "@bestiary-ui/style/utilities.css";

Theming Architecture

Bestiary UI uses a 3-axis system applied via HTML data attributes:

<html
    data-theme="forest"
    data-essence="leaf"
    data-color-mode="dark"
>

| Attribute | Scope | Examples | |-----------|-------|----------| | data-theme | Geometry & Motion | forest, minimal, brutal | | data-essence | Color Palettes | leaf, ocean, magma | | data-color-mode | Light/Dark logic | light, dark |

Customization

Since all components rely on the Semantic Contract, you can override the entire design system by redefining variables in your local CSS. Thanks to :where() and @layer, your overrides will work without !important.

:root {
    /* Change brand color globally */
    --b-primary-500: oklch(0.6 0.2 250);

    /* Change global corner rounding */
    --b-radius-factor: 2;

    /* Override a specific component locally */
    --b-button-border-width: 2px;
}

License

MIT © Bestiary UI