Socket
Book a DemoInstallSign in
Socket

bw-axiom

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bw-axiom

Axiom - Brandwatch Pattern Library

latest
Source
npmnpm
Version
33.8.0
Version published
Maintainers
1
Created
Source

Axiom - Pattern Library

Build Status npm version

A consumable library of Brandwatch UI & UX patterns.

Installation

yarn add bw-axiom

Features

  • Materials (colors, sizing) to create custom components while following patterns.
  • Components to encapsulate templates, styles and behaviour.
  • Composites for larger reusable multi component solutions.
  • Utilities to apply UX patterns (like date and number formatting).
  • Light and Dark themes

Supported Browsers

Need IE support? See the the setup guide here

Getting Started

The following styles should be added to the body - or root element to which Axiom styles are being applied - if you wish to make use of the default background and colour styles. These are also needed if you wish to make use of the light/dark theme switching.

body {
  background-color: var(--color-context-background);
  color: var(--color-context-text);
}

Using just the CSS

The React components provide an abstraction of the templates and CSS, which greatly reduces any needed maintenance when CSS classes or the HTML structure to a component changes. They also encapsulate the behaviour of more interactive components, so components that do require Javascript will not work and will require you to plumb it all together.

The compiled CSS file is stored on the Brandwatch Google Cloud Platform CDN or target individual CSS files from the node_module.

http://axiom.bwcom.io/axiom.{VERSION}.min.css

Template and CSS changes are not classed as breaking changes and are not specified in the release notes

Developing in the Style Guide

git clone git@github.com:BrandwatchLtd/axiom.git
cd axiom
yarn install
yarn start

Testing within an application

Npm/yarn link won't work out of the box as the main directory specified in package.json is lib. To populate this directory with your local changes, run yarn build:local. You can then run npm link as normal, and then npm link bw-axiom from your application directory.

FAQs

Package last updated on 22 Feb 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