syrup-ui
v1.0.19
Published
React tailwind UI library
Downloads
9
Maintainers
Readme
SweetScript/Syrup-UI
A pleasant React UI library based on TailwindCSS
[🚧 Early phase, still UNDER DEVELOPMENT]
Dependencies
- React ^18.2.0
- TailwindCSS: ^3.1.6
- dayjs: ^1.11.7
- @react-spring/web: ^9.5.4
- react-use-measure: ^2.1.1
- cleave.js: ^1.6.0
- @use-gesture/react: ^10.2.20
Installation
- Install library
npm i syrup-ui
- 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
]
- Import CSS styles: in your main css file add the following import line:
@import "~syrup-ui/styles/styles.css";
- Wrap your app with the ThemeProvider
import {ThemeProvider} from 'syrup-ui';
<ThemeProvider>
<Component {...pageProps} />
</ThemeProvider>
Customization
Documentation Soon