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 🙏

© 2024 – Pkg Stats / Ryan Hefner

most-design-system

v0.2.1

Published

A design system crafted for more retail's digital products

Downloads

7

Readme

most design system

most-design-system-logo

The most design system is a meticulously crafted experience which delivers a user-centric, approachable and modernistic user experience across more retail's digital platforms.

Installation

You can install the most design system as a regular dev dependency.

npm install --save-dev most-design-system

Or with yarn

yarn add most-design-system --dev

Usage

Most Design Tokens

The most design tokens express micro design decisions that frames the most design system's visual style.

JavaScript

To use most design tokens in JavaScript frameworks, import most's design tokens as JavaScript objects.

import tokens from "most-design-system/tokens/js";

And use the tokens according to your framework's styling syntax.

// src/App.jsx
<h1
  style={{
    color: tokens.colors.orange[60],
    fontSize: tokens.typography.head[10].fontSize,
  }}
>
  Most Design System
</h1>

You can also use the tokens to style in vanilla JavaScript if required.

React Native

Import most design tokens as JavaScript objects formatted for React Native.

import tokens from "most-design-system/tokens/react-native";

And use the tokens as you want.

// src/App.jsx
<Text
  style={{
    color: tokens.colors.orange[60],
    fontSize: tokens.typography.head[10].fontSize,
  }}
>
  Most Design System
</Text>

CSS

Import most design tokens as CSS variables

/* src/App.css */
@import "most-design-system/tokens/css";

And start using them anywhere where you can use CSS variables

/* src/App.css */
h1 {
  color: var(--colors-orange-60);
  font: var(--typography-para-30);
}

Tailwind

In your tailwind.config.js, import and set up all the regular and composite tokens.

// tailwind.config.js

// Import JS tokens for regular tokens
import jsTokens from "most-design-system/tokens/js";
// Import CSS-in-JS tokens for composite tokens
import cssInJsTokens from "most-design-system/tokens/css-in-js";
// Import the plugin function to be able to add your composite tokens
import plugin from "tailwindcss/plugin";

export default {
  content: ["./src/**/*.{html,js,jsx,ts,tsx}"],
  // To completely replace the default values, for example, color, add the
  // tokens directly under the theme property. Here, for colors, we are also
  // adding two defaults back - "transparent" and "currentColor"
  theme: {
    colors: {
      transparent: "transparent",
      current: "currentColor",
      ...jsTokens.colors,
    },
  },
  // To add and use composite tokens, register them as new styles in
  // Tailwind's "utility" layer
  plugins: [
    plugin(({ addUtilities }) => {
      addUtilities(cssInJsTokens);
    }),
  ],
};

And start using most design tokens as Tailwind utility classes.

// src/App.jsx

function App() {
  return {
    <>
      <h1 className="text-orange-60 typography-label-10">Most Design System</h1>
    </>
  }
}

Components

Coming soon!

License

MIT