2.5.0 • Published 6 months ago

@gryt/ui v2.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@gryt/ui

Preview here

NPM JavaScript Style Guide

Install

npm i @gryt/ui @tailwindcss/typography tailwind daisyui

or

yarn add @gryt/ui @tailwindcss/typography tailwind daisyui

Tailwind configuration

// tailwind.config.js

module.exports = {
    content: [
      // ...
      "./node_modules/@gryt/**/*.{js,ts}",
    ],
    presets: [
      // ...
      require('@gryt/ui/tailwind')
    ]
    // ...
  }

Styling

// _app.tsx

import { AppProps } from 'next/app';
import "@gryt/ui/style.scss";

export default function App({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />
}

Usage

Button

// 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>
  );
}

Developing new components

Clone this repository and follow the steps below.

Preparation

Use the dev folder.

cd dev

Install dependencies

yarn

or

npm i

Start development server

yarn dev

or

npm run dev

Publish changes

Use np

yarn global add np
np

License

MIT © Gryt-chat

2.5.0

6 months ago

2.4.1

6 months ago

2.4.0

10 months ago

2.3.0

11 months ago

2.2.0

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.4.0

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago