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

@kindly-note/themes-default

v0.1.0

Published

First-party CSS theme set for kindly-note: dark, light, high-contrast — plus an opt-in compat layer that lets users keep their existing hljs-* themes. CSS-only.

Readme

@kindly-note/themes-default

First-party CSS theme set for kindly-note's default kn- class scheme: dark, light, high-contrast, plus an opt-in compat-hljs.css shim for users transitioning from third-party hljs-* themes. CSS-only — no JavaScript runtime, no DOM dependencies.

Install

npm install @kindly-note/themes-default
bun add @kindly-note/themes-default
pnpm add @kindly-note/themes-default

Usage

Pick a theme and import its CSS via the package's exports map. With a bundler (Vite, Webpack, Rolldown, Bun, etc.) or a runtime that resolves package subpaths:

import '@kindly-note/themes-default/dark.css';
// or
import '@kindly-note/themes-default/light.css';
// or
import '@kindly-note/themes-default/high-contrast.css';

The theme attaches to the .kn root that @kindly-note/emitters-html produces on <pre><code> (architect-spec §5.3, §7.4). No further configuration is required.

If your toolchain reaches files by URL (a static-site generator, plain HTML page, deno-style import map), use a <link> tag against the resolved subpath:

<link rel="stylesheet" href="@kindly-note/themes-default/light.css">

The CSS subpaths are listed in package.json#exports and package.json#sideEffects, so bundlers preserve them across tree-shaking.

Themes

| File | Inspired by | Use case | |---|---|---| | dark.css | github-dark colour family | Default dark palette — pairs cleanly with most app chrome and matches the GitHub aesthetic. | | light.css | atom-one-light colour family | Default light palette — soft greys and a cool blue-violet accent. | | high-contrast.css | Nord palette pulled to WCAG-AAA targets | Bold, saturated palette against pure-black background — for users who need stronger luminance separation than github-dark / atom-one-light provide. |

Each theme exposes its palette as CSS custom properties on :root (--kn-bg, --kn-fg, --kn-keyword, --kn-string, …), so apps can override individual values without forking the file:

:root {
  --kn-keyword: hotpink;
}

The tier-suffix scope-to-class mapping (architect-spec §5.3 — title.class.inheritedkn-title class_ inherited__) is preserved across all three themes.

hljs- compatibility layer

compat-hljs.css is a variable-mapping shim for users who want kindly-note's default kn-* rendering output (architect-spec §7.4) but already have a third-party theme written in the hljs-* convention they don't want to give up.

The shim defines rules of the form:

.kn-keyword { color: var(--hljs-keyword-color, inherit); }

You define --hljs-*-color custom properties on :root (typically extracted from your existing hljs theme), and the shim maps each variable onto the matching kn-* selector:

:root {
  --hljs-bg: #1e1e1e;
  --hljs-fg: #d4d4d4;
  --hljs-keyword-color: #569cd6;
  --hljs-string-color: #ce9178;
  --hljs-comment-color: #6a9955;
  /* … */
}
import '@kindly-note/themes-default/compat-hljs.css';

Each var(--hljs-*-color, inherit) falls back to inherit when undefined, so partial palettes degrade gracefully.

The inverse direction — apply a kindly-note theme to hljs-*-rendered output — is handled by passing classPrefix: 'hljs-' to createHighlighter (architect-spec §7.4) and importing one of the first-party themes; the kn-* themes do not double-emit .hljs-* selectors.

Tokens

tokens.json is the design-token source-of-truth: three palettes (dark, light, high-contrast), each keyed by semantic scope name (keyword, string, comment, title, …), plus the canonical fonts.mono stack. The CSS files in this package consume the same values via :root custom properties.

Importable two ways — as raw JSON via the package subpath:

import tokens from '@kindly-note/themes-default/tokens.json';

…or as a typed object via the package's main entry, suitable for design-system integration (Storybook colour panel, in-app theme switcher, design-token sync tool):

import { themes, fonts } from '@kindly-note/themes-default';

themes.dark.palette.keyword;  // '#ff7b72'
themes['high-contrast'].name; // 'kindly-note high contrast'
fonts.mono;                   // 'ui-monospace, SFMono-Regular, …'

Status

v0.0.1. Ships in cohort 5d of the kindly-note modernize track (build manifest). Surface is stable: three first-party themes, one compat shim, one token bundle. 118 smoke tests cover required-scope coverage, tier-suffix preservation, and palette validity across all four CSS files.

License

MIT.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]