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

@cosmoops/assets

v1.1.2

Published

Global CSS design tokens, HeroUI theme overrides, and official Logo assets for CosmoOps applications

Readme

@cosmoops/assets

Organization-wide global CSS design tokens, HeroUI theme overrides, and official Logo assets for CosmoOps applications.

This package provides:

  1. Pure CSS Design Tokens (global.css): Zero-dependency stylesheet containing all CosmoOps brand design tokens (Cosmic Green primary scale, Deep-Space Ink surface/background scale, semantic state colors, Google Fonts imports) formatted explicitly for the HeroUI Theme Customization specification.
  2. React Logo Components (@cosmoops/assets/react): Ready-to-use vector components (<CosmoLogo />, <CosmoWordmark />, <CosmoIcon />).
  3. Raw SVG Assets (@cosmoops/assets/svg/*): Vector .svg files for brand lockups and icons.

📦 Installation

npm install @cosmoops/assets

🚀 Usage

Option A: Standard Root CSS Import

Import CSS directly in your application entry point (_app.tsx, layout.tsx, main.tsx, or index.js):

import "@cosmoops/assets";

Option B: React Logo Components

Import official CosmoOps logo components in your React / Next.js app:

import { CosmoLogo, CosmoWordmark, CosmoIcon } from "@cosmoops/assets/react";

// Navbar Full Logo (Dark & Light Mode)
<CosmoLogo theme="dark" size={24} />
<CosmoLogo theme="light" size={24} />

// Text-Only Wordmark (Dark & Light Mode)
<CosmoWordmark theme="dark" size={32} />
<CosmoWordmark theme="light" size={32} />

// Standalone Brand Icon Mark
<CosmoIcon size={24} color="var(--accent)" />
<CosmoIcon size={16} color="var(--foreground)" />

Option C: Raw SVG Imports

import logoDarkSvg from "@cosmoops/assets/svg/logo-full-dark.svg";
import logoLightSvg from "@cosmoops/assets/svg/logo-full-light.svg";
import wordmarkDarkSvg from "@cosmoops/assets/svg/logo-wordmark-dark.svg";
import iconGreenSvg from "@cosmoops/assets/svg/logo-icon-green.svg";
import iconWhiteSvg from "@cosmoops/assets/svg/logo-icon-white.svg";

🧩 Component API Reference

<CosmoLogo />

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | theme | 'dark' \| 'light' | 'dark' | Switches logo text color for dark (#ffffff) or light (#08090a) backgrounds | | size | number | 22 | Logo height in pixels (width calculates automatically) |

<CosmoWordmark />

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | theme | 'dark' \| 'light' | 'dark' | Switches text color for dark (#ffffff) or light (#08090a) backgrounds | | size | number | 28 | Wordmark height in pixels (width calculates automatically) |

<CosmoIcon />

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | size | number | 24 | Icon width and height in pixels (1:1 square ratio) | | color | string | 'var(--accent)' | Stroke color (supports CSS variables like var(--foreground)) |


🎨 HeroUI Theme Integration

Theme modes are controlled natively via HTML data-theme attributes or .dark/.light classes:

Dark Theme (Space Dark Default - #08090a)

<html class="dark" data-theme="dark">
  <body>
    <!-- HeroUI components automatically use CosmoOps Dark Theme -->
  </body>
</html>

Light Theme (#f4f6f6)

<html class="light" data-theme="light">
  <body>
    <!-- HeroUI components automatically use CosmoOps Light Theme -->
  </body>
</html>

📄 License

MIT © CosmoOps