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

@nick_tag_tech/themes

v0.1.2

Published

Shared theme catalog and adapters for Nick's apps (web, CLI, Electron). Strongly-typed semantic color tokens, CSS variable + xterm adapters, and first-paint bootstrap.

Readme

@nick_tag_tech/themes

Published on npm: https://www.npmjs.com/package/@nick_tag_tech/themes

One source of truth for Nick's color themes across every project — SPAs, web apps, Electron apps, and terminal/CLI experiences. Strongly-typed semantic color tokens, a framework-agnostic core, and optional Vue/Pinia/terminal adapters.

Ported verbatim from nicktagportal (packages/types/src/themes). 17 themes, 16 semantic color keys each, solarized-light as the default.

Install

bun add @nick_tag_tech/themes
# or consume by Git URL during early integration:
bun add github:notTag/DesignSystem

vue and pinia are optional peer dependencies (only needed for those adapters).

Core usage (framework-agnostic)

import {
  themes,
  themeList,
  DEFAULT_THEME_ID,
  applyThemeToElement,
  toCssVariables,
  type Theme,
  type ThemeColors,
  type ThemeId,
} from '@nick_tag_tech/themes'

// Apply to <html> (writes --color-* vars + data-theme-type)
applyThemeToElement(themes['solarized-dark'])

// Or get a plain record for your own rendering
const vars = toCssVariables(themes['gruvbox'].colors)
// { '--color-surface': '#...', ... }

First-paint bootstrap (no flash)

Inline this in <head> before your bundle to apply the saved theme synchronously:

import { createBootstrapScript } from '@nick_tag_tech/themes/bootstrap'

const inline = createBootstrapScript('nicksite-theme')
// <script>${inline}</script>

themeCssVariableMap and resolveThemeId are also exported for custom bootstrap logic.

Terminal / xterm

import { toTerminalTheme } from '@nick_tag_tech/themes/terminal'

terminal.options.theme = toTerminalTheme(themes['hermes'].colors)

The returned shape is structurally compatible with @xterm/xterm's ITheme (the core package carries no xterm dependency).

Vue + Pinia adapters

// Pinia store factory — preserves preview/confirm + localStorage persistence
import { createThemeStore } from '@nick_tag_tech/themes/pinia'
export const useThemeStore = createThemeStore({ storageKey: 'nicksite-theme' })

// Vue effect — applies the reactive theme to the DOM on change
import { useThemeEffect } from '@nick_tag_tech/themes/vue'
import { storeToRefs } from 'pinia'

const { currentTheme } = storeToRefs(useThemeStore())
useThemeEffect(currentTheme)

Persistence conventions

Storage keys are documented, not forced. Override via the adapter options.

| Consumer | Storage key | | ------------------- | -------------------- | | Shell / site theme | nicksite-theme | | CLI terminal theme | nicksite-cli-theme |

CSS variables

| Theme color key | CSS variable | | ---------------- | ------------------------ | | surface | --color-surface | | surfaceRaised | --color-surface-raised | | surfaceOverlay | --color-surface-overlay| | text | --color-text | | textMuted | --color-text-muted | | textOnAccent | --color-text-on-accent | | accent | --color-accent | | accentCyan | --color-accent-cyan | | accentYellow | --color-accent-yellow | | destructive | --color-destructive | | link | --color-link | | linkHover | --color-link-hover | | border | --color-border | | headerBg | --color-header-bg | | selection | --color-selection | | hover | --color-hover |

Scripts

bun install
bun test          # registry, css vars, terminal, bootstrap
bun run typecheck # tsc --noEmit (strict)
bun run build     # emit ESM + .d.ts to dist/

Migrating nicktagportal

  1. Add @nick_tag_tech/themes as a dependency.
  2. Replace imports from @/themes / @ntypes/themes with @nick_tag_tech/themes.
  3. Swap the local useTheme CSS-var application for applyThemeToElement / useThemeEffect, and the local stores for createThemeStore.
  4. Replace the CLI's toXtermTheme with toTerminalTheme from @nick_tag_tech/themes/terminal.
  5. Move first-paint bootstrap to createBootstrapScript.
  6. Keep temporary re-exports in packages/types/src/themes if needed, then delete the duplicated theme files once consumers are migrated.

Adding a theme

  1. Add src/themes/<id>.ts exporting a Theme with all 16 color keys.
  2. Register it in src/themes/index.ts (themes, themeList) and add the id to the ThemeId union in src/themes/types.ts.
  3. bun test — the registry test fails if a color key is missing or ordering drifts.