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

swish-design

v0.2.15

Published

An enterprise-ready and accessible UI design library of React components

Downloads

7

Readme

Build Status Coverage Status

📦 Install

npm i swish-design

or if you're using yarn

yarn add swish-design

🔨 Usage

Below demonstrates a simple example of using Swish in your application:

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'swish-design';

ReactDOM.render(
  <Button type="primary">Sick!</Button>
  document.getElementById('root');
)

Content-Security-Policy

Some may be using this package with a strict Content-Security-Policy. Meaning, they cannot allow inline style tags to be injected into their document at runtime. If your Content-Security-Policy does not allow 'unsafe-inline', one possible solution is to use Swish like so

/* create a swishd.css file */
/* within the swishd.css file */
@import "swish-design";
// in the entry point of your project
import "swishd.css";

// or if you're using a single instance of a Swish component, import swishd.css within that file

🗺 Roadmap

v1.0

✅: Completed 🛠️: Building 📘: Todo

| Component | Status | | -------------- | ------ | | Button | ✅ | | Input | 🛠️ | | Tags | 🛠️ | | Avatar | 🛠️ | | Card | 📘 | | Pagination | 📘 | | Dropdown | 📘 | | Checkbox Group | 📘 |

Our first major release will contain the components listed above. We make minor releases in two week sprints. Components whose status is marked 🛠️ fall under the minor release.

Contributing to Swish

To the reader, we feel you're more than welcome to contribute to this project. We'd be thankful for you. Please recognize that Swish is in its baby stages and does not have prototyped assets to aid development; therefore, your implementation of expressing user interaction (styling) will be a truly collaborative process with our team.

🍴 Step 1. Fork

In order to contribute to Swish Design, you need to fork this repo and develop on your local machine.

git clone https://github.com/krfong916/swish-design.git

If you aren't familiar with how to fork and clone repos, follow this guide

📚 Step 2. Run Storybook

To run storybook, run

npm run storybook

or if you're using yarn

yarn storybook

And open your browser to localhost:6006

💻 Step 3. Make Your Changes

You can find specifications of features to implement and changes to make here. Create a new branch from main and implement your changes on that branch: git checkout -b _branch__name__here_. In addition to the tasks listed for the issue, here are some guidelines to consider when developing

  • Provide full test coverage
  • Meet accessibility guidelines
  • Prioritize readability and careful comments, rather than clever code and optimizations

After you've completed every task, and are satisfied with your changes, submit a pull request!

📄 Step 4. Submit a Pull Request

Last 400m until the finish! At this step, please submit a pull request describing the changes you implemented, and any code that you'd like for us to pay special attention to. After reviewing together, even if your changes need further development, it's important to acknowledge that you're taking a step in the right direction. Once your pull request has been approved... merge that thang to the main branch!!

😸🍾 Step 5. Celebrate!

You are now a contributor to Swish and the open source community! We sincerely appreciate your efforts to make Swish a great project to use. We're one small project, and with your help, we're able to make the web a better place together.

🎉👏 Contributors

Once your changes are accepted we will add your name to the list of contributors!