launchpad-ui
A component-library and white-label theming solution for launchpad frontend applications
Installation (pre-release)
npm i @polymathnetwork/launchpad-ui@develop
Maintainance and development guide
See directory-structure for reference
- Put component definitions in
src/components/SomeComponent/index.tsx
- Place sub-components in the parent component directory (e.g.
src/components/SomeComponent/PartialComponent.tsx
)
- Put any necessary static styles in
src/components/SomeComponent/style.ts
- If extending theme-ui components, define default styling and variants in
src/components/SomeComponent/themeUIVariants.ts
How to add svgs to use as React components
- Add the svg file in their respective directory under
svgs/
- Use
npm run transform-svgs -- --type <type>
command
npm run transform-svgs -- --type icons
npm run transform-svgs -- --type logos
npm run transform-svgs -- --type flags