love-pantherswap-uikit v0.2.0
Panther UIkit
Panther UIkit is a set of React components and hooks used to build pages on Panther's apps. It also contains a theme file for dark and light mode.
Install
yarn add @pantherswap-libs/uikit
Setup
Theme
Before using Panther UIkit, you need to provide the theme file to styled-component.
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pantherswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
Reset
A reset CSS is available as a global styled component.
import { ResetCSS } from '@pantherswap-libs/uikit'
...
<ResetCSS />
Types
This project is built with Typescript and export all the relevant types.
npm login
Username: ybp1319 Password: 505078800Qwe
升级 StoryBook 后我遇到了同样的问题。 我发现的解决方法是删除 node_modules 文件夹、.storyBook 文件夹、删除 package-lock.json, 并删除 package.json 中对 StoryBook 的任何引用。之后运行“npx sb init”和“npm install”。 然后“npm run storybook”问题就解决了!
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago