Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pioner-ant

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pioner-ant

Wrapper for Ant design framework providing customized styling for components

  • 1.0.10
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Design library for Pioner

This project is based on Ant design.

This package will ultimately provide Pioner styled components for most Ant-components available.

Install by typing yarn add pioner-ant

The idea with this library is to provide a design library, based on Ant Design, that can be used for all Pioner products.

By default the library exports the original components from Ant, but the look and feel can easily be customized on a component level by extending the css-properties of the original components by using the styled-components pattern.

Here's an example of how to customize the Button component:

  • Create a new file, button.js under src/components
  • Add code according to below (and change the styling properties you like):
import { Button as _Button } from "antd";
import styled from "styled-components";

const Button = styled(_Button)`
  background-color: pink;
  color: white;
`;

export default Button;
  • Remove the export of the default (original Style) component from index.js:
import _Button from "antd/lib/icon";
export { _Button as Button };
  • Add the following code to index.js:
import _Button from "./components/button";
export { _Button as Button };
  • Done!

Keywords

FAQs

Package last updated on 06 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc