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

@davdevs/paper-styles

v1.0.0

Published

Pure CSS styles for DavDevs Paper Design System

Readme

@davdevs/paper-styles

🎨 Pure CSS Styles for DavDevs Paper Design System

Framework-agnostic CSS styles that can be used with any JavaScript framework or vanilla HTML. Perfect for projects that don't use React or prefer pure CSS solutions.

Features

  • Framework Agnostic: Works with any JS framework or vanilla HTML
  • Pure CSS: No JavaScript runtime required
  • PostCSS Processed: Optimized and autoprefixed
  • Modular: Import only the styles you need
  • Customizable: CSS custom properties for theming

Installation

npm install @davdevs/paper-styles
# or
yarn add @davdevs/paper-styles
# or
pnpm add @davdevs/paper-styles

Usage

Full Import

/* Import all styles */
@import '@davdevs/paper-styles';
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="node_modules/@davdevs/paper-styles/dist/index.css">
</head>
<body>
  <div class="paper-container">
    <div class="paper-card paper-elevation-2">
      <h1 class="paper-heading-1">Paper Design System</h1>
      <p class="paper-body-text">Beautiful paper-inspired styles.</p>
      <button class="paper-button paper-button--primary">Get Started</button>
    </div>
  </div>
</body>
</html>

Selective Imports

/* Import only specific modules */
@import '@davdevs/paper-styles/foundations';
@import '@davdevs/paper-styles/components/buttons';  
@import '@davdevs/paper-styles/components/cards';

Available CSS Classes

Layout

.paper-container        /* Responsive container */
.paper-grid            /* CSS Grid layout */
.paper-stack           /* Vertical spacing */
.paper-inline          /* Horizontal spacing */
.paper-surface         /* Basic surface styling */

Typography

.paper-heading-1       /* H1 styling */
.paper-heading-2       /* H2 styling */
.paper-heading-3       /* H3 styling */
.paper-body-text       /* Paragraph text */
.paper-body-small      /* Small text */
.paper-label           /* Form labels */

Components

.paper-button          /* Base button */
.paper-button--primary /* Primary button variant */
.paper-button--secondary /* Secondary button variant */
.paper-card            /* Card component */
.paper-input           /* Input styling */
.paper-badge           /* Badge component */

Utilities

.paper-elevation-1     /* Subtle shadow */
.paper-elevation-2     /* Medium shadow */
.paper-elevation-3     /* Strong shadow */
.paper-rounded         /* Border radius */
.paper-text-center     /* Center text */

Customization

Override CSS custom properties to customize the design:

:root {
  /* Colors */
  --paper-color-primary: #8b7355;
  --paper-color-secondary: #6b5b73;
  --paper-color-background: #fdfdf8;
  
  /* Typography */
  --paper-font-serif: 'Crimson Text', serif;
  --paper-font-sans: 'Inter', sans-serif;
  
  /* Spacing */
  --paper-space-xs: 0.25rem;
  --paper-space-sm: 0.5rem;
  --paper-space-md: 1rem;
  --paper-space-lg: 1.5rem;
  
  /* Borders */
  --paper-border-radius: 0.375rem;
  --paper-border-width: 1px;
}

Build Process

The CSS is processed with PostCSS including:

  • Autoprefixer: Automatic vendor prefixes
  • CSS Import: Resolve @import statements
  • Custom Properties: CSS variable support
  • Minification: Optimized file size

Browser Support

  • Modern evergreen browsers (Chrome, Firefox, Safari, Edge)
  • CSS Custom Properties support required
  • Fallbacks provided for older browsers where possible

Framework Integration

Vue.js

<template>
  <div class="paper-container">
    <div class="paper-card">
      <h1 class="paper-heading-1">{{ title }}</h1>
      <button class="paper-button paper-button--primary">
        Click me
      </button>
    </div>
  </div>
</template>

<style>
@import '@davdevs/paper-styles';
</style>

Angular

// styles.scss
@import '~@davdevs/paper-styles';
<!-- component.html -->
<div class="paper-container">
  <div class="paper-card">
    <h1 class="paper-heading-1">{{ title }}</h1>
    <button class="paper-button paper-button--primary">
      Click me  
    </button>
  </div>
</div>

Svelte

<style>
  @import '@davdevs/paper-styles';
</style>

<div class="paper-container">
  <div class="paper-card">
    <h1 class="paper-heading-1">{title}</h1>
    <button class="paper-button paper-button--primary">
      Click me
    </button>
  </div>
</div>

CDN Usage

For quick prototyping, use the CDN version:

<link rel="stylesheet" href="https://unpkg.com/@davdevs/paper-styles@latest/dist/index.css">

Development

To modify and build the styles:

git clone <repository>
cd packages/styles
npm install
npm run build

License

MIT License - see LICENSE for details.

Links