Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternfly/design-tokens

Package Overview
Dependencies
Maintainers
15
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternfly/design-tokens

Define the design tokens for patternfly design system and component library

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by115.38%
Maintainers
15
Weekly downloads
 
Created
Source

Export Patternfly Tokens Plugin

This plugin exports Patternfly tokens out of Figma and creates JSON files that can be added to the design tokens repo and processed by style dictionary.

Setup

  1. Clone the design-tokens repository.
  2. Open the Figma app.
  3. In Figma, select Plugins > Development > Import plugin from manifest.
  4. Browse to design-tokens\packages\module\plugins\export-patternfly-tokens and select the manifest.json file from your cloned design-tokens repository and click Open.

The Export Patternfly Tokens plugin should now be available to use as a development plugin in your Figma environment.

Usage

Once the plugin has been added to Figma via the manifest file:

  1. In Figma, select Plugins > Development > Export Patternfly Tokens > Export Tokens.
  2. Click Export Tokens. The text area will display a concatenated list of all tokens exported from the Figma library. Links to each exported JSON file are displayed at the bottom of the dialog.
  3. Click each JSON file link to save them locally (do not rename the JSON files!).
  4. Copy the local JSON files to your cloned design-tokens repo:
    1. Copy base.dimension.json, base.json, semantic.dimension.json, semantic.json, and palette.color.json to \packages\module\tokens\default.
    2. Copy base.dark.json, semantic.dark.json, and palette.color.json to \packages\module\tokens\dark to \packages\module\tokens\dark.
    Note that palette.color.json is saved to both the default and dark directories.

FAQs

Package last updated on 14 Feb 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