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

@rowinbot/kads-react

v0.0.7

Published

> Disclaimer: This project is not intended for real-life use cases, specially not production! I'm doing it as an assignment (#3 week) for Dribbble's amazing [Scaling Design Systems course](https://dribbble.com/courses/design-systems) by Dan Mall.

Downloads

3

Readme

Kads Design System - vReact

Disclaimer: This project is not intended for real-life use cases, specially not production! I'm doing it as an assignment (#3 week) for Dribbble's amazing Scaling Design Systems course by Dan Mall.

Getting started

The design system is developed under Kads' Stackblitz project as a test of Stackblitz power with Web Containers. If you open it, it should automatically fire up the design system components showcase.

The project is structure as shown below:

  • src
    • lib
      • components (where the components in the system lib)
    • index.js (entry point for showcase web view)
    • App.js (imports components from the lib to showcase them)
    • App.css (styles for the showcase)

Note: The components hold their own styles to not have to worry about CSS-in-js management nor bundling css in the release.

Installing

Install the system with your favorite node package manager, e.g with npm:

npm install @rowinbot/kads-react

And install importing components!

import { Button } from "@rowinbot/kads-react";

Using as a template

I setup this project so it could be used by my designer colleagues at my course cohort so it should be straightforward to clone and setup with automated publishing to NPM registry for distribution.

As a pre-requisite you'd need the following:

  • A Github account.
  • An NPM account.
  • A Stackblitz account (you can sign up with your Github account).

Follow the following steps:

  • Fork the Stackblitz project.
  • On the sidebar, click on the item package.json to update it (it's a file).
    • Update name to whatever you want to name your design system (e.g the-best-design-system) without spaces in the name.
    • Update version to whatever your initial version would be (e.g 0.0.1).
    • Update author to your name (e.g your fullname/nickname).
  • On the sidebar click on Connect with Github to setup a Github repository (you'll use this to publish your design system on NPM), this should ask for your permission to connect Stackblitz with your Github account, make sure to do this step correctly.
    • Enter a repository name and wait for it to finish.
  • Follow the guide on how to create an access token on your NPM account and don't forget to momentarily store the token in a secure place or not close the browser tab to copy it later.
  • Go to your Github account and find your newly created repository.

Making updates

When updating the design system, you'd want to publish an update to the NPM registry. After you're done with your changes (in this case, from Stackblitz):

  • Increase the version in the package.json file (e.g if you had 0.0.1 you can put 0.0.2, more info in ELI5: Semantic Versioning).
  • Click on Commit in the nav-bar to update the repository over in Github.
    • Input a message reflecting your changes (e.g Removed all components / Enhance button borders)

Github should take care from here and automatically publish the new version to NPM's registry if there were no issues.

Using your design system

In order to use your design system in another project, just make sure to follow the instructions above in Installing replacing the name of the NPM package with the one you used.