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

@baystream/ui-theme

v1.0.5

Published

Design tokens used across Baystream UI components.

Downloads

677

Readme

@baystream/ui-theme

Design tokens used across Baystream UI components.

Install

npm install @baystream/ui-theme

Most apps that render @baystream/ui-core components also depend on this package for layout and spacing tokens. In this monorepo, the library-testing app uses @baystream/ui-theme from the workspace by default; see the repository root README to test published installs instead.

Exports

  • flexColors
  • flexLayout
  • flexSpacing
  • flexTypography

Why this package exists

This package centralizes visual tokens so apps and shared components use the same semantic color, spacing, layout, and typography values.

Token overview

flexColors

Semantic colors for:

  • background
  • border
  • text
  • action

Use these instead of raw hex values inside shared UI code.

flexLayout

Shared layout dimensions such as:

  • gridDefaultHeight
  • dataGridBorderRadius, dataGridResizeMinWidth, dataGridHeaderHeight (often passed into FlexDataGrid as borderRadius, merged resizeSettings, and headerHeight)
  • dataGridColumnId
  • dataGridColumnSku
  • dataGridColumnUnits
  • navbarHeight

flexSpacing

Spacing scale in pixels:

  • none
  • xs
  • sm
  • md
  • lg
  • xl
  • 2xl

flexTypography

Font families, font sizes, weights, and line heights.

Example: build a card with shared tokens

import {
  flexColors,
  flexSpacing,
  flexTypography,
} from '@baystream/ui-theme'

export function StatsCard() {
  return (
    <section
      style={{
        backgroundColor: flexColors.background.surface,
        color: flexColors.text.primary,
        border: `1px solid ${flexColors.border.subtle}`,
        borderRadius: 12,
        padding: flexSpacing.lg,
      }}
    >
      <h2
        style={{
          margin: 0,
          fontFamily: flexTypography.fontFamily.sans,
          fontSize: flexTypography.fontSize.lg,
          fontWeight: flexTypography.fontWeight.semibold,
          lineHeight: flexTypography.lineHeight.tight,
        }}
      >
        Active customers
      </h2>
      <p
        style={{
          marginTop: flexSpacing.sm,
          marginBottom: 0,
          color: flexColors.text.secondary,
          fontSize: flexTypography.fontSize.md,
          lineHeight: flexTypography.lineHeight.normal,
        }}
      >
        1,284 accounts are active this week.
      </p>
    </section>
  )
}

Example: reuse layout and spacing in app chrome

import { flexColors, flexLayout, flexSpacing } from '@baystream/ui-theme'

const headerStyle = {
  height: flexLayout.navbarHeight,
  backgroundColor: flexColors.background.navbar,
  color: flexColors.text.onInverse,
  paddingInline: flexSpacing.lg,
  display: 'flex',
  alignItems: 'center',
}

Notes

  • These are plain token objects, so they work in inline styles, CSS-in-JS, and custom style generators.