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

@streamiq/themes

v1.1.0

Published

Optional CSS theme tokens for Streamq UI integrations.

Readme

@streamiq/themes

Optional CSS design tokens and small JS helpers for theme switching in Streamq apps.

No CSS-in-JS runtime — primary consumption is plain .css files via subpath exports.

Stable 1.0.x. Standalone — no @streamiq/* dependencies.

Install

npm install @streamiq/themes

Architecture

@streamiq/themes
├── css/                          Final `.css` bundles
│   ├── base.css                  Dark palette on :root (default)
│   ├── light.css                 Light preset (data-streamq-theme="light")
│   ├── high-contrast.css         High-contrast preset
│   └── player.css                Player-specific overrides
│
├── default/src/                  Token primitives composed into base.css
│   ├── tokens.css                Color / spacing / radius tokens
│   ├── motion.css                Transition durations / easings
│   └── typography.css            Font scale tokens
│
└── src/                          Tiny JS surface
    ├── index.ts                  Public exports
    ├── applyTheme.ts             applyTheme / injectThemeStylesheet / removeTheme
    ├── createTheme.ts            createTheme / themeToCSS
    ├── presets.ts                darkTheme / lightTheme / highContrastTheme
    └── theme.types.ts            StreamqTheme / StreamqTokens / CreateThemeOptions

Theme switching is attribute-driven — no runtime CSS injection required for the built-in presets. JS helpers exist for apps that need to generate themes dynamically.


CSS usage

import '@streamiq/themes/css/base.css';   // default dark palette on :root
import '@streamiq/themes/css/light.css';   // light preset

Switch theme via root attribute:

import { STREAMQ_THEME_ATTR, DEFAULT_THEME_ID } from '@streamiq/themes';

document.documentElement.setAttribute(STREAMQ_THEME_ATTR, 'light');
// omit attribute or use 'dark' for base.css defaults

Style your app with var(--streamq-*) tokens defined in the CSS files.

Subpath exports

| Path | Contents | |------|----------| | @streamiq/themes | JS helpers + presets | | @streamiq/themes/css/base.css | Dark :root palette | | @streamiq/themes/css/light.css | Light preset | | @streamiq/themes/default/tokens.css | Token primitives | | @streamiq/themes/default/motion.css | Motion tokens | | @streamiq/themes/default/typography.css | Typography tokens |


JavaScript API

| Export | Purpose | |--------|---------| | STREAMQ_THEMES_PACKAGE | Package id | | STREAMQ_THEME_ATTR | 'data-streamq-theme' — DOM attribute name | | DEFAULT_THEME_ID | 'dark' | | createTheme | Build a theme object from options | | themeToCSS | Convert theme → CSS string | | applyTheme | Apply theme to DOM element | | injectThemeStylesheet | Inject generated CSS | | removeTheme | Remove applied theme | | darkTheme, lightTheme, highContrastTheme | Built-in presets |

Types

| Type | Purpose | |------|---------| | StreamqTheme | Theme object shape | | StreamqTokens | Token map | | StreamqThemeId | 'dark' \| 'light' \| 'high-contrast' \| (string & {}) | | CreateThemeOptions | Factory options |

Dynamic theme example

import {
  applyTheme,
  createTheme,
  injectThemeStylesheet,
} from '@streamiq/themes';

const brand = createTheme({
  id: 'brand',
  tokens: { color: { primary: '#FF6500' } },
});

injectThemeStylesheet(brand);
applyTheme(document.documentElement, 'brand');

Token categories (CSS)

Variables follow --streamq-* naming:

| Category | Examples | |----------|----------| | Colors | --streamq-color-primary, --streamq-color-surface, --streamq-color-text, --streamq-color-border | | Controls | button, slider, focus ring | | Progress | track, played, buffered | | Overlays | scrim, error, loading | | Subtitles | background, text shadow | | Spacing / radius / typography | --streamq-space-*, --streamq-radius-* |

See css/base.css for the full token list.


Bundle size

| Budget | Limit | |--------|-------| | Full JS bundle | 150 B gzipped | | Default theme id import | 80 B |

CSS is loaded statically; size is whatever your bundler picks up.


Scripts

pnpm run build
pnpm run typecheck
pnpm run test
pnpm run lint

License

MIT