Skip to content

SteveSuv/tailwindUI

Repository files navigation

tailwindUI

react ui library with tailwindcss

install

pnpm i @onekstar/tailwind-ui

install tailwindcss https://tailwindcss.com/docs/installation/framework-guides

config

// tailwind.config.js

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    //...
    "./node_modules/@onekstar/tailwind-ui/index.js", // add this line
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

usage

import { Button } from "@onekstar/tailwind-ui";

export default () => <Button>hello</Button>;