npm.io
1.0.19 • Published 3 years ago

syrup-ui

Licence
MIT
Version
1.0.19
Deps
0
Size
456 kB
Vulns
0
Weekly
0

SweetScript/Syrup-UI

A pleasant React UI library based on TailwindCSS

[ Early phase, still UNDER DEVELOPMENT]


Dependencies


Installation

  1. Install library
npm i syrup-ui
  1. Add tailwind preset: in your tailwind.config.js file add the following preset:
presets: [
    require('./node_modules/syrup-ui/tailwind-preset.js') //Add this line to the presets property
]
  1. Import CSS styles: in your main css file add the following import line:
@import "~syrup-ui/styles/styles.css";
  1. Wrap your app with the ThemeProvider
import {ThemeProvider} from 'syrup-ui';

<ThemeProvider>
    <Component {...pageProps} />
</ThemeProvider>

Customization

Documentation Soon

Contact

majid@sweetscript.com