0.4.9 • Published 3 years ago

ui-puppy v0.4.9

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

UI Puppy 🐶

A ReactJS UI library inspired by Eva Design

View stories: https://plantjammerdk.github.io/ui-puppy

Contribute

Continuous integration (Github Actions)

Whenever you push, Github Actions will run. We have one called chromatic, that checks for visual regressions using the Storybook stories. So stories === tests. And one called release that make a release on npm. Only pushes to master, i.e., pull requests, will create "real" npm releases. So when you simply push your branch, it will create a so-called canary release, that can still be installed, but it will be clear that it's not an official release.

If you want to skip these actions, add skip ci to your commit message.

Styling

The project uses TailwindCSS. In order to get the most out of this library, please follow these guidelines:

  1. Strive to only use the utility classes in Tailwind - no custom classes or css files. Using the style prop is fine.
  2. Try to limit colors to built-in colors such as bg-gray-100 and the extended colors in tailwind.config.js. This allows consumers to overwrite the colors to use for their theme. If we use hex codes or add more custom colors, they won't be customizable and custom colors won't even work, because they are local to this project.

Creating a component

  1. Create your component in the src/MyComponent.tsx folder.
  2. Create a MyComponent.stories.tsx file in the stories folder.
  3. Develop and test it using yarn storybook.

Playing around

If you want just want to locally test your work, you can yarn add from a local repo, e.g.: yarn add /Users/andersravn/plantjammer/ui-puppy.

Submitting/deploying

  1. When you are ready submit a pull request.
  2. Add labels to the pull request, particularly patch/minor/major. These are used by the Auto package to bump the version automatically.

If you want to test if it will build the package, run yarn build.

TODO

  • Automatic deployment when merging pull requests
  • Chromatic tests
  • CI

Library setup

The library is set up as a combination of these two guides:

https://www.pluralsight.com/guides/react-typescript-module-create

https://www.learnstorybook.com/design-systems-for-developers/react/en/distribute/

0.4.9

3 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.1.50

4 years ago

0.1.49

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.3.1

4 years ago

0.1.42

4 years ago

0.1.45

4 years ago

0.1.41

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.16

4 years ago

0.1.10

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago