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

@midas-ds/theme

v3.9.1

Published

Midas Theme

Readme

@midas-ds/theme

This package contains the design tokens for the Midas Design System, managed by Style Dictionary. It automatically generates theme assets, such as CSS variables and JavaScript modules, from a common set of token definitions.

Installation

To install the theme package, run the following command in your project root:

npm install @midas-ds/theme

Usage

The theme provides assets for both CSS and JavaScript environments.

CSS

Import the variables.css file into your project's main entry point or global stylesheet. This will make all the design tokens available as CSS Custom Properties.

The CSS variables are prefixed with midas.

/* Example: In your main stylesheet */
@import '@midas-ds/theme/variables.css';

body {
  background-color: var(--midas-color-background-default);
  font-family: var(--midas-typography-font-family);
  font-size: var(--midas-font-size-base);
}

JavaScript / TypeScript

You can import the tokens directly into your JavaScript or TypeScript files to use them in your component logic or styled-components.

// Example: Using tokens in a JavaScript file
import { variables } from '@midas-ds/theme';

const customStyle = {
  backgroundColor: variables.color.background.default,
  padding: variables.spacing.base,
};

Contributing

The source of truth for all design tokens is located in the tokens/ directory, organized into JSON files by category (e.g., colors.json, spacing.json).

To make changes to the theme:

  1. Modify the desired token values in the JSON files under the tokens/ directory.
  2. Run the build script sd.build.mjs to regenerate the theme assets. This will update the files in the src/lib/style-dictionary-dist/ directory.

This process ensures that all theme assets are kept in sync with the master token definitions.