Catalog npm
PACKAGE EXPLORERView in registry

@0x-huskydev/hakuswap-uikit

npm

Set of UI components for Hakuswap projects

Versions collected1
Direct dependencies43From release 0.0.16
Last observed20 Oct, 22:16 UTC

README

Current package documentation

Hakuswap UIkit

Hakuswap UIkit is a set of React components and hooks used to build pages on Hakuswap's apps. It also contains a theme file for dark and light mode.

Install

npm i hakuswap-uikit

Deployment Guide

1. Edit ONG token address

first go to src/widgets/Menu/components/CakePrice.tsx, find PriceLink tag and change the ONG token address to current mainnet address.

https://info.hakuswap.com/token/0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82 
--> https://info.hakuswap.com/token/[ONG-address]

then go to package.json and increase version.

then run

npm run build
npm login
npm publish

Setup

Theme

Before using Hakuswap UIkit, you need to provide the theme file to styled-component.

import { ThemeProvider } from 'styled-components'
import { light, dark } from 'hakuswap-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>

Reset

A reset CSS is available as a global styled component.

import { ResetCSS } from 'hakuswap-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 diferent 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 packege

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 create an you are ready to use it.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.16Registry latest7 Apr 202243

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
smart-cookie-group/hakuswap-uikit

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6cf2b564b86d6aebaa7a7d17e95f409c0400c747eec931a2f2b1767e89276639