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

@papillonbits/css

v1.13.1

Published

Papillon Bits CSS

Downloads

508

Readme

@papillonbits/css

Comprehensive CSS architecture built on SCSS with design primitives, component styles, and utility classes.

npm version

Overview

A modular CSS library providing a complete styling foundation for modern web applications. Built with SCSS and following BEM-inspired naming conventions.

Installation

npm install @papillonbits/css

Usage

// Import all styles
@import '@papillonbits/css';

// Or import specific modules
@import '@papillonbits/css/src/primer/base/index.scss';
@import '@papillonbits/css/src/primer/buttons/index.scss';
@import '@papillonbits/css/src/primer/utilities/index.scss';

CSS Modules

Core & Foundation

  • base - CSS resets and base styles
  • core - Core CSS primitives and foundations
  • primitives - Design tokens (colors, spacing, typography)
  • support - Support utilities and mixins

Components

  • autocomplete - Autocomplete input styling
  • avatars - Avatar and profile image styles
  • box - Box component styles
  • branch-name - Git branch display styling
  • buttons - Button styles with variants and states
  • forms - Form element styling (inputs, checkboxes, radios)
  • header - Header component styles
  • labels - Label and tag styles
  • loaders - Loading spinner and indicator styles
  • navigation - Navigation menu and nav bar styles
  • pagination - Pagination control styles
  • select-menu - Advanced select menu styling
  • toasts - Toast notification styles
  • tooltips - Tooltip and popover styles

Layout

  • layout - Layout utilities and grid systems
  • truncate - Text truncation utilities
  • table-object - Table styling and data display

Theme & Modes

  • color-modes - Dark mode and theme switching support

Content

  • markdown - Styled markdown content
  • marketing - Marketing page styles
  • product - Product-specific styles

Utilities

  • utilities - CSS utility classes for common patterns

Features

  • Modular Architecture - Import only what you need
  • Design Tokens - Consistent spacing, colors, and typography from @primer/primitives
  • Dark Mode Support - Built-in color mode switching
  • Responsive - Mobile-first responsive design
  • Browser Compatibility - Autoprefixer for vendor prefixes
  • SCSS Powered - Variables, mixins, and nesting

CSS Architecture Principles

The CSS follows a structured architecture:

  1. Primitives - Design tokens and variables
  2. Base - Reset and foundational styles
  3. Components - Component-specific styles
  4. Utilities - Single-purpose utility classes
  5. Layouts - Page and section layouts

Build Process

# Build the CSS package
npm run build

# Build for different environments
npm run build-test
npm run build-acceptance
npm run build-release

The build process:

  1. Copies SCSS files from src/ to build/
  2. Preserves directory structure
  3. Transpiles with Babel for consistent module resolution

Scripts

  • clean-up - Remove build artifacts and dependencies
  • install-packages - Install dependencies
  • build - Build the package

Entry Point

The main entry point is build/index.scss which imports all CSS modules.

Dependencies

This package depends on:

  • @primer/primitives - Design tokens and primitives
  • SCSS/Sass - For processing SCSS files

Browser Support

Supports modern browsers with autoprefixer:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Customization

Override SCSS variables to customize the design:

// Override primitives before import
$color-primary: #0366d6;
$spacing-base: 8px;

@import '@papillonbits/css';

PostCSS Configuration

The project uses PostCSS with:

  • postcss-preset-env - Modern CSS features
  • postcss-nested - Nested rule support
  • autoprefixer - Vendor prefixes

Linting

SCSS files are linted with Stylelint:

  • stylelint-config-standard - Standard rules
  • stylelint-scss - SCSS-specific rules
  • stylelint-prettier - Prettier integration
  • stylelint-order - Property ordering

Documentation

For visual examples and component styles, see the Storybook documentation.

Links

Related Packages

License

See root LICENSE file for details.