Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@polymathnetwork/ui-blocks

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymathnetwork/ui-blocks

Demo: https://PolymathNetwork.github.io/ui-blocks

latest
Source
npmnpm
Version
1.28.0
Version published
Weekly downloads
118
118.52%
Maintainers
4
Weekly downloads
 
Created
Source

Welcome to Polyblocks!

Demo: https://PolymathNetwork.github.io/ui-blocks

This UI library is opinionated, components are styled according to our design system guidelines and specifications to make precise implementation the default. However, there are ways to override them.

We followed the component-driven UI process:

The development and design practice of building user interfaces with modular components. UIs are built from the “bottom up” starting with basic components then progressively combined to assemble screens.

Clone repo and run Storybook locally via npm start. Browse components (Polyblocks) by navigating to them in the sidebar. View their code and play around with controls to learn how they work.

NOTE:

  • Styles are passed to components from src/theme/definition.ts. You can also import PolyThemeProvider and pass your own theme to it.
  • To add a new theme, create a file definition in src/theme/definition and override on default theme then export it from src/theme/index.ts.
  • Styles set via props are wired inside the component and override the theme.
  • GAPs are used for margins and other spacings, and are incremented by 8px.
  • You can set a margin for some components via the margin prop:
    • <Box margin="s" />
    • <Button margin="m 0" />
    • <Flex margin="0 0 xl 0" />
  • You can create other components based on these inside your project if special treatment is required.
  • To add a new icon, create SVG file in src/theme/icons/svg, and it will automatically be available to components in development, and exported as a React component in production. Icons are exported as polyIcons.

FAQs

Package last updated on 27 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts