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

@bluecateng/pelagos

v12.28.2

Published

UI components

Downloads

3,614

Readme

@bluecateng/pelagos GitHub license npm version

UI components.

Installation

npm i -S @bluecateng/pelagos

Getting started

Add the shared component styles to your application's entry .less file. Choose one theme setup below; the core and spinner theme must use the same light or dark variant.

Fixed theme

For an application that always uses one theme, import the fixed core and spinner theme files:

@import '@bluecateng/pelagos/less/core';
@import '@bluecateng/pelagos/less/core-dark'; // or core-light
@import '@bluecateng/pelagos/less/inputs';
@import '@bluecateng/pelagos/less/scrollbar';
@import '@bluecateng/pelagos/less/spinner-dark'; // or spinner-light

User-selectable theme

For runtime theme selection, import the theme and spinner bases, then bind their mixins to a root attribute. This is the setup used by the example application.

@import '@bluecateng/pelagos/less/core';
@import '@bluecateng/pelagos/less/themes';
@import '@bluecateng/pelagos/less/inputs';
@import '@bluecateng/pelagos/less/scrollbar';
@import '@bluecateng/pelagos/less/spinner';

[data-theme='light'],
[data-theme='auto'] {
	.theme-light();
}

[data-theme='dark'] {
	.theme-dark();
}

[data-theme='auto'] {
	@media (prefers-color-scheme: dark) {
		.theme-dark();
	}
}

.CssSpinner {
	.css-spinner();

	[data-theme='light'] &,
	[data-theme='auto'] & {
		animation-name: spinner-light;
	}

	[data-theme='dark'] & {
		animation-name: spinner-dark;
	}

	[data-theme='auto'] & {
		@media (prefers-color-scheme: dark) {
			animation-name: spinner-dark;
		}
	}
}

Set the attribute on the root element (<html data-theme="auto">) and update document.documentElement.dataset.theme to switch at runtime. The auto binding above follows the OS preference. Components take their colors from CSS custom properties supplied by the theme; importing core without either theme setup leaves them colorless or unstyled.

Layout

The core styles apply an opinionated reset (inside @layer pelagos): div, form, main, header, and footer default to

display: flex;
flex-direction: column;
flex: none;

Every plain div is therefore already a column flex container — lay out rows with flex-direction: row rather than adding wrapper elements to fight the default. flex: none also means children do not grow; set flex: 1 explicitly where content should fill the available space.

Storybook

For examples and documentation, please see the Storybook site

Example application

pelagos-example is a small runnable application whose examples are indexed by what each one demonstrates — including the theme switching and layout patterns described above.

Notes for AI coding agents

AGENTS.md is a compact list of the non-obvious contracts — the layout reset, theme wiring, components that clone their children, labeling rules — that agents (and humans) otherwise rediscover from source. It ships with the npm package, so it is available in node_modules at the point of use.