npm i @gryt/ui @tailwindcss/typography tailwind daisyuior
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 devyarnor
npm iyarn devor
npm run devUse np
yarn global add np
npMIT © Gryt-chat