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

@oriui/css

v1.0.0-alpha.16

Published

Standalone CSS design tokens + .ori-* utility classes for oriUI — no framework, no build step

Readme

@oriui/css

npm license

Standalone CSS design tokens + .ori-* utility classes for oriUI (織り). No framework, no build step — just classes and zero-runtime theming through CSS custom properties. Works with plain HTML, htmx, Astro, Svelte, or any framework. This is the style layer.

Install

npm install @oriui/css

…or drop the stylesheet in directly, no bundler:

<link rel="stylesheet" href="https://unpkg.com/@oriui/css/dist/styles.css" />

Use

Import once (bundler), then use the classes anywhere:

import '@oriui/css';
<button class="ori-button ori-variant_tonal ori-color_primary ori-button_lg">Save</button>

À-la-carte imports

Don't need every component? Import a foundation once, then only the component blocks you use — foundation first (base.css or tokens.css), it declares the cascade-layer order the component files rely on. What each entry contains:

| Entry | Layer order | Reset | Tokens + skins | Utilities | Component styles | | ------------------------------- | :---------: | :---: | :------------: | :-------: | ------------------ | | @oriui/css (= styles.css) | yes | yes | yes | yes | all | | @oriui/css/base.css | yes | yes | yes | yes | — | | @oriui/css/tokens.css | yes | — | yes | yes | — | | @oriui/css/reset.css | — | yes | — | — | — | | @oriui/css/components/<n>.css | — | — | — | — | one (deps inlined) |

reset.css is border-box + Meyer-style margin/padding/border zeroing for your page, nothing more (it no longer pins html { font-size } — the rem base follows the user's browser setting). The components don't need it: each block declares its own box-sizing / UA neutralization.

import '@oriui/css/base.css';
import '@oriui/css/components/button.css';
import '@oriui/css/components/card.css';

Per-component files are self-contained: the blocks a component renders are inlined (button.css carries the icon + spinner styles, combobox.css the input field + the anchored placement primitive), so no component ships half-styled. Importing files with overlapping dependencies duplicates those rules — harmlessly: identical rules in the same @layer resolve identically, and gzip eats most of the byte cost.

import '@oriui/css' (the full bundle, also @oriui/css/styles.css) is unchanged and includes everything.

The components are reset-independent: they render identically with base.css or with tokens.css alone (bring-your-own-reset), guarded by a computed-style diff over every component in real Chromium (e2e/reset-independence.spec.ts).

TypeScript note: under TypeScript 6's noUncheckedSideEffectImports, bare CSS subpath imports (import '@oriui/css/base.css') are errors unless the compiler can type them. Either set noUncheckedSideEffectImports: false, or add an ambient declaration: declare module '@oriui/css/*.css'; (most bundler-first setups ship one already).

The class model

A block class plus single-class token utilities — one class repoints one token, no paired base class. A bare block is valid; add a class only to override an axis. Dynamic state is real attributes (disabled, aria-busy), never classes.

| Axis | Class | Values | | ------- | ------------------- | -------------------------------------------------------------------- | | Color | ori-color_* | primary · secondary · success · warn · danger · info · … | | Variant | ori-variant_* | fill · tonal · outline · text · plain | | Size | ori-<name>_<size> | xs · sm · md · lg · xl · xxl |

Theme + skin are attributes on <html> (class="dark", data-ori-skin="…"), reskinning everything through CSS variables with zero runtime.

Make it yours — rebrand by repointing a few tokens in your own :root (unlayered, so it wins with no !important); reach for a token or class rather than overriding .ori-* rules, which keeps you upgrade-safe. Recipes: Customization · Theming & skins · Design tokens.

Layers

Full docs → oriui.vercel.app

Alpha (1.0.0-alpha.*, alpha dist-tag). APIs may shift before 1.0.0.

License

MIT © Leonid