Socket
Socket
Sign inDemoInstall

@patternfly/react-tokens

Package Overview
Dependencies
0
Maintainers
15
Versions
775
Alerts
File Explorer

Advanced tools

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
Weekly downloads
44K
decreased by-33.55%
Maintainers
15
Created
Weekly downloads
 

Readme

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

Last updated on 18 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc