0.0.1 • Published 1 year ago

@troychaplin79/idc-ui v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Design UI

npm

Personal design system and react component library of Troy Chaplin

The library is built with:

Get Started

Install dependencies

yarn install

Start up Storybook

yarn storybook

Build

yarn build

Deployment

This project uses GitHub Actions to deploy the NPM Package and to build the Storybook docs.

How to use in a project

Install the package:

yarn add @troychaplin79/idc-ui

Import the css file:

/* yourmaincssfile.css */
@import '../node_modules/@troychaplin79/idc-ui/dist/index.css';

TailwindCSS

The CSS for this library is built with Tailwind. If the project you are building also uses Tailwind you can include this library as follows:

/* yourmaincssfile.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

@import '../node_modules/@troychaplin79/idc-ui/dist/index.css';

Update your Tailwind config file:

// tailwind.config.js
module.exports = {
  content: ['./node_modules/@troychaplin79/idc-ui/**/*.{js,ts,jsx,tsx}'],
}

References

0.0.1

1 year ago