0.2.15 β€’ Published 3 years ago

swish-design v0.2.15

Weekly downloads
260
License
MIT
Repository
github
Last release
3 years ago

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

ComponentStatus
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!

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago