yarn add @patternfly/react-tokens
or
npm install --save @patternfly/react-tokens
All Tokens and their corresponding values can be viewed on the PatternFly React Tokens page.
import global_BackgroundColor_100 from '@patternfly/react-tokens/dist/js/global_-background-color_100';
name
: The CSS custom property name.value
: The default value for the custom property.var
: The property name wrapped invar()
.
import global_BackgroundColor_100 from '@patternfly/react-tokens/dist/js/global_-background-color_100';
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