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

@rotamaster/design-system

v6.3.0

Published

Themed assets to style cross-platform Rotamaster products.

Downloads

227

Readme

dev.designsystem

TODO

  • Prevent .mjs/.js files generating for specific themes. \n
  • Prevent empty files being generated if source is empty (rotify-web-typography.css for example). \n

What is it?

dev.designsystem is library that generates and distributes files to allow for consistent, cross-platform styling with a single source of truth. It utilises a Zeplin webhook to trigger the automated generation of new files when changes are published in Figma.

Here's a brief diagram of how it works:

designsystem-diagram

Adding new themes

First, you'll need to fetch the styleguide ID from Zeplin. This is found in the URL of the styleguide you wish to add (the string between the arrows in the following link): https://app.zeplin.io/styleguide/--->601a924a5b25c52920c04s1f<---.

In the generate-themes.js file, you'll find a styleguides array containing a {name: styleguideName, id: styleguideId}. Add your own object following this convention to this array.

You'll also need to add the theme entry file into the vite.config.js file.

When the build command is next run, a mobile and web version of your stylings will be generated!

Setup

To install dependencies:

bun install

Bun is used as the package manager for this project. Most commands are like-for-like with npm so it should be intuitive to use.

Create a .env file in the root of the project, containing a the Zeplin personal access token:

# .env

ZEPLIN_ACCESS_TOKEN={ZEPLIN_ACCESS_TOKEN}

To generate files:

bun run generate

Caveats

Transforming a JSON object to stylings is a messy, imperfect process. Doing it for different stylesheet rules across different platforms even more so.

While future cases have been taken into consideration, the process of this conversion is relatively fragile. If you find mistakes in generated files, please feel free to update any transforms to accomodate your needs.