moonwalkerswap-uikit
v1.1.3
Published
Set of UI components for MoonWalkerSwap project
Downloads
7
Readme
🚀 MoonWalkerSwap UIkit
MoonWalkerSwap UIkit is a set of React components and hooks used to build pages on MoonWalkerSwap's apps. It also contains a theme file for dark and light mode.
Install
npm i moonwalkerswap-uikit
Setup
Theme
Before using MoonWalkerSwap UIkit, you need to provide the theme file to styled-component.
import { ThemeProvider } from 'styled-components'
import { light, dark } from 'moonwalkerswap-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
Reset
A reset CSS is available as a global styled component.
import { ResetCSS } from 'jetswap-uikit'
...
<ResetCSS />
Types
This project is built with Typescript and export all the relevant types.
How to use the UIkit
If you want to use components from the UIkit, check the Storybook documentation
How to Customize UIkit
First clone this repo to local and then start editing the components, theme, etc.
When is finished the Customization of the UIkit build it using:
npm run build
Commit everything to the git repo and if you are using a different repo just change it in package.json.
If you have a commit error due to husky you can try:
git commit -am 'commit' --no-verify
That should solve the problem, then push to remote repo.
After this you need to publish the npm package
Be aware of the versions, If you make an update change the version in package.json so when you publish this's not gonna throw you an error.
Go to the npm package you created and you are ready to use it.