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

@prioticket/design-tokens-material-web

v1.0.1

Published

Prioticket Design Tokens for Material Web Components - CSS custom properties with state layers and comprehensive token coverage

Readme

@prioticket/design-tokens-material-web

Prioticket Design Tokens for Material Web Components - CSS custom properties with state layers and comprehensive token coverage.

Installation

npm install @prioticket/design-tokens-material-web

Public CDN access:

  • https://cdn.jsdelivr.net/npm/@prioticket/design-tokens-material-web@latest/theme.css
  • https://unpkg.com/@prioticket/design-tokens-material-web@latest/theme.css

Usage

Method 1: CSS Import (Recommended)

/* In your main CSS file */
@import '@prioticket/design-tokens-material-web/theme.css';

Method 2: JavaScript/TypeScript Import

// Automatically imports CSS in bundlers like Webpack/Vite
import '@prioticket/design-tokens-material-web';

// Or access theme metadata
import { theme, applyTheme } from '@prioticket/design-tokens-material-web';

console.log(theme.tokenCount); // 305
applyTheme(); // Manually applies theme

Method 3: HTML Link

<!-- Manual link in HTML -->
<link rel="stylesheet" href="node_modules/@prioticket/design-tokens-material-web/theme.css">

Available Tokens

This package provides 305 CSS custom properties for Material Web Components:

Core Colors (42 tokens)

  • --md-sys-color-primary, --md-sys-color-on-primary
  • --md-sys-color-secondary, --md-sys-color-on-secondary
  • --md-sys-color-surface, --md-sys-color-background
  • All Material Design 3 color roles

State Layers (111 tokens)

Interactive state tokens for hover, focus, and pressed states:

  • --md-sys-color-primary-hover
  • --md-sys-color-primary-focus
  • --md-sys-color-primary-pressed
  • Available for all color roles

Typography (60 tokens)

  • --md-sys-typescale-display-large-*
  • --md-sys-typescale-headline-*-*
  • --md-sys-typescale-title-*-*
  • --md-sys-typescale-body-*-*
  • --md-sys-typescale-label-*-*

Layout & Shape (92 tokens)

  • Spacing: --md-sys-spacing-*
  • Padding: --md-sys-padding-*
  • Border radius: --md-sys-shape-corner-*
  • Border width: --md-sys-outline-width-*
  • Elevation: --md-sys-elevation-level*
  • Scale values: --md-sys-scale-*

Example Usage

.my-component {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: var(--md-sys-padding-400);
  font-family: var(--md-sys-typescale-body-large-font);
  font-size: var(--md-sys-typescale-body-large-size);
  box-shadow: var(--md-sys-elevation-level2);
}

.my-component:hover {
  background-color: var(--md-sys-color-primary-hover);
}

Material Web Components Integration

These tokens are designed to work with Material Web Components:

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="node_modules/@prioticket/design-tokens-material-web/theme.css">
</head>
<body>
  <script type="module">
    import '@material/web/button/filled-button.js';
  </script>
  
  <md-filled-button>Prioticket Button</md-filled-button>
</body>
</html>

Framework Integration

React

import '@prioticket/design-tokens-material-web';
import '@material/web/button/filled-button.js';

function App() {
  return (
    <div className="app" style={{
      backgroundColor: 'var(--md-sys-color-background)',
      color: 'var(--md-sys-color-on-background)'
    }}>
      <md-filled-button>Click me</md-filled-button>
    </div>
  );
}

Vue

<template>
  <div class="app">
    <md-filled-button>Click me</md-filled-button>
  </div>
</template>

<script>
import '@prioticket/design-tokens-material-web';
import '@material/web/button/filled-button.js';
</script>

<style>
.app {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
}
</style>

Version

Current version: 1.0.0

Repository

GitLab Repository