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

@stareezy-ui/stylesheet

v1.1.2

Published

Stareezy UI stylesheet — atomic CSS sheet management and CSS variable injection

Readme

@stareezy-ui/stylesheet

Atomic CSS sheet management with responsive / media-query injection for Stareezy UI web builds.

npm

Install

pnpm add @stareezy-ui/stylesheet

Usage

Used internally by @stareezy-ui/runtime. You only need this directly for custom runtime adapters or for injecting styles outside of Box.

import { AtomicStyleSheet } from "@stareezy-ui/stylesheet";

const sheet = new AtomicStyleSheet();

// Inject a token-based atomic rule (deduplicates by token ID)
sheet.inject("primary-500", "background-color", "#024CCE");
// → .sz-primary-500 { background-color: var(--primary-500); }

// Write / replace the :root CSS variable block
sheet.injectRootVariables([
  { id: "primary-500", value: "#024CCE" },
  { id: "spacing-4", value: 4 },
]);
// → :root { --primary-500: #024CCE; --spacing-4: 4; }

Responsive injection

injectResponsive accepts the same responsive object syntax that Box props accept. Breakpoints are synced from createUi({ media }) via the shared global channel.

// Responsive object — emits base + @media rules
sheet.injectResponsive("szr-card", { base: "8px", md: "16px", lg: "24px" }, [
  "padding",
]);
// → .szr-card { padding: 8px }
// → @media(min-width:768px){ .szr-card { padding: 16px } }
// → @media(min-width:1024px){ .szr-card { padding: 24px } }

// Batch version for multiple props
sheet.injectComponentStyle("szr-hero", [
  { cssProperties: ["padding"], value: { base: "16px", md: "32px" } },
  { cssProperties: ["background-color"], value: "var(--surface)" },
]);

Standalone helpers

import {
  getBreakpoints,
  isResponsiveValue,
  buildBreakpointEntries,
  resolveResponsive,
  buildResponsiveCss,
  buildComponentCss,
  tokenIdToClassName,
  buildScopeClass,
} from "@stareezy-ui/stylesheet";

// Read the current breakpoint map (synced from createUi({ media }))
getBreakpoints(); // { sm: 480, md: 768, lg: 1024, xl: 1280, "2xl": 1536 }

// Type guard
isResponsiveValue({ base: "8px", md: "16px" }); // true
isResponsiveValue("8px"); // false

// Build CSS without touching the DOM
const css = buildResponsiveCss(".szr-hero", { base: "16px", md: "32px" }, [
  "padding",
]);

// React Native: resolve a responsive value for a given window width
resolveResponsive({ base: 8, md: 16 }, 800); // 16

// Class name helpers
tokenIdToClassName("primary-500"); // "sz-primary-500"
buildScopeClass("r1abc"); // "szr-r1abc"

License

MIT