Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@breakaway/react-tokens

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breakaway/react-tokens

This library provides access to the design tokens of PatternFly 4 from JavaScript

latest
Source
npmnpm
Version
10.0.1
Version published
Weekly downloads
2
-81.82%
Maintainers
2
Weekly downloads
 
Created
Source

@breakaway/react-tokens

Installation

yarn add @breakaway/react-tokens

or

npm install --save @breakaway/react-tokens

Usage

All Tokens and their corresponding values can be viewed on the PatternFly React Tokens page.

Import tokens

import { global_BackgroundColor_100 } from '@breakaway/react-tokens';

Each token as three properties

  • name: The CSS custom property name.
  • value: The default value for the custom property.
  • var: The property name wrapped in var().
import { global_BackgroundColor_100 } from '@breakaway/react-tokens';

global_BackgroundColor_100.name === '--pf-global--BackgroundColor--100'; //true
global_BackgroundColor_100.value === '#fff'; // true
global_BackgroundColor_100.var === 'var(--pf-global--BackgroundColor--100)'; //true

Keywords

react

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