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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nk_jtb

v0.21.0

Published

Yet another utility based framework.

Downloads

37

Readme

JTB – Just the Basics

Sensible defaults without over-styling.

JTB is a Sass framework that gives you structure without dictating style. Build with composable classes, override anything, and keep your markup readable.


Why build another CSS framework?

"Because without reinventing the wheel we wouldn't have fast cars."
-- Nathan Watts


Key Features

  • Context-aware modifiers.primary works on buttons, boxes, badges. No .btn-primary bloat.
  • Predictable namingm-1 = 1rem, p-2 = 2rem. Numbers mean what they say.
  • Minimal components – Structure without decoration. Customize with utilities.
  • Build-time focused – No JavaScript. No runtime magic. Just Sass.

Directory Structure

src/
    ├──color-and-themes/
    │  ├── _buildtime-theme.scss  # SASS variables from theme maps
    │  ├── _colors.scss           # Color palette
    │  ├── _runtime-themes.scss   # CSS custom properties from theme maps
    │  └── _themes.scss           # Theme maps (source of truth)

Theming Pattern

// Step 1: Define SASS variable (your existing system)
$primary: #2563eb;

// Step 2: Convert to CSS custom property (in theme file)
:root {
    --color-primary: #{$primary};  // Note the #{}
}

// Step 3: Use in component
.button {
    background: var(--color-primary);  // Can switch at runtime
}

FAQ's

How can I exclude axis indicators when creating position based classes?

For example, instead of generating a class like bdr-xy to represent both the x and y axes, I want to use just bdr. Similarly, I want to change m-xy to either m or mxy, removing the explicit axis notation.

CSS Positional Properties Patterns

Split pattern (<property-start>-<position>-<property-end>):

border-<top|right|bottom|left>-width
border-<top|right|bottom|left>-style
border-<top|right|bottom|left>-color
border-<top-left|top-right|bottom-right|bottom-left>-radius

Suffix pattern (<property>-<position>):

border-<top|right|bottom|left>
padding-<top|right|bottom|left>
margin-<top|right|bottom|left>

When to use each pattern:

  • Split pattern: When controlling a specific sub-property (like width, style, or color) for a particular side
    • Example: border-top-width: 2px sets only the width of the top border
  • Suffix pattern: When setting all aspects of a property for a particular side at once
    • Example: border-top: 2px solid red sets width, style, and color for the top border

Spacing Scale

| px | rem | tailwind | | --- | -------- | -------- | | 4 | 0.25rem | 1 | | 6 | 0.375rem | 1.5 | | 8 | 0.5rem | 2 | | 10 | 0.625rem | 2.5 | | 12 | 0.75rem | 3 | | 14 | 0.875rem | 3.5 | | 16 | 1rem | 4 | | 20 | 1.25rem | 5 | | 24 | 1.5rem | 6 |