New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@brancol/core

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brancol/core

Brancol - React Core

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

@brancol/core

Core Provider for the StyledComponents Theme and functionalities of the @brancol design guide. You may need this core package in order to access the functions of the @brancol/components developed in separated packages.

Table of Contents

  • Installation
  • Usage
  • Props
  • Tests
  • ChangeLog

Installation

To install, you can use npm or yarn:

$ npm install @brancol/core
$ yarn add @brancol/core

Usage

To start using the other components and set your StyleGuide Theme, import the BrancolProvider and set the new theme properties or override the current ones.

import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

import BrancolProvider from "@brancol/core";

const theme = {
  colors: {
    myColor: "#abc",
  },
};

ReactDOM.render(
  <BrancolProvider theme={theme}>
    <App />
  </BrancolProvider>,
  document.getElementById("root")
);

Examples

Want to know more about the packages available for using along with this core?

Checkout the full under development project at React Alleria.

Props

Here is a full detailed list of the props you can send to use the BrancolProvider.

NameTypeDefaultDescriptionValues
themeStyledComponentsnullStyled theme object for overriding the theme properties for the components.Theme Object

Tests

This core component is already tested using Jest and Enzyme. The tests covers if the default properties are applied, and if the new ones, both added and override, are also applied. You may create your own tests using this modules as well.

More about me

You can find more about myself and the projects I develop at the following channels.

Github Profile
Personal Website
Instagram Profile

ChangeLog

0.1.0
  • Added core theme properties about fontFamily and colors to the theme.
  • Added tests on the base of the ThemeProvider and it's override.
  • Added dependencies and peerDependencies to the project.

Keywords

FAQs

Package last updated on 06 Aug 2020

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