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

@byteion/tokens

v0.1.0-beta.1

Published

Design token primitives (colors, spacing, radius, shadows, typography, motion, z-index, border, breakpoints) consumed by the Byteion Tailwind preset.

Readme

@byteion/tokens

Raw design token primitives — the single source of truth for every visual decision in the Byteion design system. Pure JavaScript objects, zero dependencies, zero build step required to consume.

Every other Byteion package (@byteion/core, @byteion/js, @byteion/react, @byteion/vue) reads from this package. Change a value here and it propagates through the Tailwind preset, the CSS variables, and every framework wrapper.

Install

npm install @byteion/tokens

You usually don't install this directly — it comes as a dependency of @byteion/core. Install it explicitly only when you want to read tokens from your own build script, generate a custom Tailwind preset, or emit tokens to another platform (Figma, iOS, Android).

What's inside

| Module | Exports | | --- | --- | | colors | Primitive scales (primary.50–950, secondary, success, warning, danger, info, neutral) + semantic aliases. | | spacing | Numeric scale plus semantic axes (inset, stack, surface). | | radius | none, sm, md, lg, xl, 2xl, full. | | shadows | Elevation ramp + component-specific shadows (button, button-hover, popover). | | typography | fontFamily, fontSize, fontWeight, letterSpacing, lineHeight. | | motion | duration, easing, keyframes, animation. | | z-index | Named layers (dropdown, modal, popover, toast, ...). | | border | width, ring.width, ring.offset. | | breakpoints | Responsive screens (sm, md, lg, xl, 2xl). |

Usage

Read everything

const tokens = require('@byteion/tokens');

console.log(tokens.colors.primary[600]); // '#2563eb'
console.log(tokens.spacing.inset.md);    // '1rem'

Read a single module

const colors = require('@byteion/tokens/colors');
const radius = require('@byteion/tokens/radius');

From an ES module

import tokens from '@byteion/tokens';
import colors from '@byteion/tokens/colors';

Since package.json declares "type": "commonjs", ES module consumers go through Node's interop — both styles work in any modern bundler (Vite, webpack, esbuild, Rollup) and in Node ≥18.

Generating CSS variables

The companion script build.mjs emits all primitive scales into packages/core/theme/generated/tokens.css as HSL triplets. The Tailwind preset wires those triplets into utilities so brand themes can override --palette-primary-600 and have bg-primary-600 re-skin everywhere without re-bundling.

npm run build --workspace @byteion/tokens

You don't need to run this as a consumer — the generated file ships inside @byteion/core already.

Versioning

Follows Semantic Versioning. Any change to a token value that materially alters the visual output is treated as a minor bump (additive theme change). Removing a token or renaming an export is a major bump.

License

MIT © Byteion