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_background_color_primary_default from '@patternfly/react-tokens/dist/esm/global_background_color_primary_default';
name
: The CSS custom property name.value
: The default value for the custom property.var
: The property name wrapped invar()
.
import global_background_color_primary_default from '@patternfly/react-tokens/dist/esm/global_background_color_primary_default';
global_background_color_primary_default.name === '--pf-t--global--background--color--primary--default'; // true
global_background_color_primary_default.value === '#fff'; // true
global_background_color_primary_default.var === 'var(--pf-t--global--background--color--primary--default)'; // true