0.0.18 • Published 3 years ago
bambooswap-libs-uikit v0.0.18
BambooSwap UIkit
Install
yarn add bambooswap-libs-uikit
or
npm i bambooswap-libs-uikit
Setup
Theme
Before using BambooSwap UIkit, you need to provide the theme file to styled-component.
import { ThemeProvider } from 'styled-components'
import { light, dark } from 'bambooswap-libs-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
Reset
A reset CSS is available as a global styled component.
import { ResetCSS } from 'bambooswap-libs-uikit'
...
<ResetCSS />
Types
This project is built with Typescript and export all the relevant types.