This package has been deprecated

Author message:

this package has been deprecated. use @patternfly/react-tokens instead.

@redallen-patternfly/react-tokens
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

@patternfly/react-tokens

Installation

yarn add @patternfly/react-tokens

or

npm install --save @patternfly/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 '@patternfly/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 '@patternfly/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

Readme

Keywords

Package Sidebar

Install

npm i @redallen-patternfly/react-tokens

Weekly Downloads

2

Version

6.0.0

License

Apache-2.0

Unpacked Size

747 kB

Total Files

7

Last publish

Collaborators

  • redallen