npm i @gryt/ui @tailwindcss/typography tailwind daisyui
or
yarn add @gryt/ui @tailwindcss/typography tailwind daisyui
// tailwind.config.js
module.exports = {
content: [
// ...
"./node_modules/@gryt/**/*.{js,ts}",
],
presets: [
// ...
require('@gryt/ui/tailwind')
]
// ...
}
// _app.tsx
import { AppProps } from 'next/app';
import "@gryt/ui/style.scss";
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
// somepage.tsx
import React, { Component } from 'react'
import { Button } from '@gryt/ui'
export default function SomePage() {
return (
<div>
<h1 className="text-2xl font-bold text-primary">Welcome!</h1>
<Button>Click me!</Button>
</div>
);
}
Clone this repository and follow the steps below.
Use the dev
folder.
cd dev
yarn
or
npm i
yarn dev
or
npm run dev
Use np
yarn global add np
np
MIT © Gryt-chat