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

@northslopetech/altitude-tokens

v2.0.0

Published

Design tokens for the Altitude design system

Downloads

37

Readme

@northslopetech/altitude-tokens

Design tokens for the Altitude design system, providing a consistent foundation for colors, typography, and spacing across all applications.

Structure

packages/altitude-tokens/
├── src/
│   ├── tokens/
│   │   ├── baseColors.ts          # Base color definitions
│   │   ├── semanticColors.ts      # Semantic color definitions
│   │   ├── typography.ts          # Typography definitions
│   │   └── tokens.ts              # Combined token definitions
│   └── index.ts                   # Package entry point
├── scripts/
│   └── build-tokens.js            # Build script
├── dist/                          # Generated token files
│   └── tokens.css                 # Base CSS custom properties
└── package.json                   # Package configuration

Installation

npm install @northslopetech/altitude-tokens
# or
pnpm add @northslopetech/altitude-tokens

Usage

CSS Custom Properties

Import the CSS file in your application:

@import "@northslopetech/altitude-tokens/css";

Or use the tokens stylesheet directly:

@import "@northslopetech/altitude-tokens/tokens.css";

JavaScript Constants

import {
  ColorPrimary500,
  TypographyBodyMd,
} from "@northslopetech/altitude-tokens";

Design Tokens

The TypeScript modules contain all design tokens organized by category:

Colors

  • Base: white, black - fundamental colors
  • Primary: 100-900 - brand green color scale
  • Neutral: 100-900 - gray color scale
  • Semantic: info, error - contextual colors

Typography

  • Display: xs, sm, md, lg, xl - large heading styles
  • Heading: sm, md, lg, xl - standard heading styles
  • Body: xs, sm, md, lg, xl - body text styles
  • Label: xs, sm, md, lg with regular/bold variants - UI label styles

Adding New Fonts

When adding new fonts to the design tokens:

  1. Install the font in your application - The design system does not bundle fonts. Applications must install and make fonts available themselves
  2. Add font definitions to typography tokens - Update the typography tokens to reference the new font family
  3. Ensure font availability - Make sure the font is loaded and accessible in your application before using the tokens

Example font installation approaches:

  • Package manager: Install font packages (e.g., pnpm install @fontsource/inter)
  • Self-hosted: Include font files in your application's assets

The generated CSS will reference the font family, but the actual font files must be provided by the consuming application.

Generated Outputs

CSS Custom Properties

The build process generates CSS custom properties for each token set:

:root {
  --color-primary-500: #3fc677;
  --typography-body-md: 400 16px/24px Inter;
  /* ... */
}

JavaScript Constants

TypeScript/JavaScript constants are also generated:

export const ColorPrimary500 = "#3fc677";
export const TypographyBodyMd = {
  fontFamily: "Inter",
  fontWeight: 400,
  fontSize: "16px",
  lineHeight: "24px",
  letterSpacing: "0px",
  paragraphSpacing: "16px",
};

Development

Build Commands

# Build tokens once
pnpm run build

# Watch for changes and rebuild
pnpm run dev

# Clean generated files
pnpm run clean

# Run tests
pnpm test

# Type checking
pnpm run check-types

Integration

The generated tokens are consumed by:

  • @northslopetech/altitude-ui - Uses tokens for component styling
  • Storybook - Displays token documentation
  • Applications - Can import CSS files or JavaScript constants directly