Socket
Socket
Sign inDemoInstall

@patternfly/react-tokens

Package Overview
Dependencies
Maintainers
15
Versions
805
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternfly/react-tokens

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


Version published
Maintainers
15
Created
Source

@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

Examples

import global_BackgroundColor_100 from '@patternfly/react-tokens/dist/esm/global_-background-color_100';
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/dist/esm/global_-background-color_100';

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

Keywords

FAQs

Package last updated on 01 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc