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

@osojicode/brand

v0.1.0

Published

Ōsōji design tokens, CSS custom properties, and brand assets

Readme

@osojicode/brand

Design tokens, CSS custom properties, and brand assets for the Ōsōji design system.

Install

npm install @osojicode/brand

CSS Custom Properties

import '@osojicode/brand/dist/tokens.css';

Then reference tokens as CSS variables:

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-surface-primary);
}

h1 {
  font-family: var(--type-display-xl-family);
  font-size: var(--type-display-xl-size);
  font-weight: var(--type-display-xl-weight);
}

The CSS file contains three blocks:

  • :root — all light-mode tokens (colors, typography, spacing, components, etc.)
  • [data-theme="dark"] — dark-mode color and shadow overrides
  • @media (prefers-color-scheme: dark) — system-preference dark mode

Set data-theme="dark" on <html> to force dark mode. Without it, the system preference applies automatically.

JavaScript / TypeScript

import tokens from '@osojicode/brand';

// Every leaf is a var() reference for use in CSS-in-JS
tokens.color.surface.primary  // "var(--color-surface-primary)"
tokens.type.displayXl.size    // "var(--type-display-xl-size)"
tokens.spacing[4]             // "var(--spacing-4)"

Full TypeScript types are included via dist/tokens.d.ts.

Assets

Brand assets are available at their package paths:

@osojicode/brand/assets/logomark-dark.svg
@osojicode/brand/assets/logomark-light.svg
@osojicode/brand/assets/logomark-full.svg
@osojicode/brand/assets/wordmark.svg
@osojicode/brand/assets/lockup-horizontal.svg
@osojicode/brand/assets/lockup-vertical.svg
@osojicode/brand/assets/favicon.ico
@osojicode/brand/assets/apple-touch-icon.png

Token Categories

| Category | CSS prefix | Count | |---|---|---| | Colors (light + dark) | --color-* | 32 per mode | | Font families | --font-* | 3 | | Typography scale | --type-* | ~80 | | Spacing | --spacing-* | 15 | | Page layout | --page-* | 5 | | Radii | --radius-* | 5 | | Shadows (light + dark) | --shadow-* | 4 per mode | | Motion | --duration-*, --easing-*, --motion-* | 9 | | Breakpoints | --bp-* | 3 | | Components | --nav-*, --button-*, --card-*, etc. | ~20 |

Build

npm run build

Runs Style Dictionary v4 to generate dist/tokens.css, dist/tokens.js, and dist/tokens.d.ts from tokens/osoji-design-tokens.json.

Design Principles

The token file encodes these principles (see tokens/meta.json):

  1. Warm neutrals over cool grays — the palette is earth, not steel
  2. Restraint over saturation — accents whisper, they don't shout
  3. Typography carries the hierarchy — not color, not size alone
  4. Generous whitespace is structural, not decorative
  5. Dark mode is warm charcoal with pale ink, not inverted white