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

gatsby-design-tokens

Package Overview
Dependencies
Maintainers
11
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-design-tokens

Gatsby Design Tokens

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

gatsby-design-tokens

Design tokens for Gatsby's design system.

Design tokens originated at Salesforce—quoting the Lightning Desing System Design Tokens documentation:

Design tokens are the visual design atoms of the design system — specifically, they are named entities that store visual design attributes. We use them in place of hard-coded values (such as hex values for color or pixel values for spacing) in order to maintain a scalable and consistent visual system for UI development.

Gatsby's design tokens are following the System UI Theme Specification.
They are not fully complying to the design token abstraction and are (initially) primarily focused on CSS/JS development – i.e. a potential output from design tokens.

They also are a work-in-progress but we do follow the Semantic Versioning specification. As such:

  • Minor fixes to tokens will be released as patch versions
  • Major design changes will be released as minor versions
  • Breaking public API changes will be released in a major versions only

So to prevent your site from breaking due to a breaking change or looking dramatically different due to a minor version bump, we recommend the ~ comparator when using this package

Installation

Using npm:

npm install gatsby-design-tokens --save

Using Yarn:

yarn add gatsby-design-tokens

Usage

Find a work-in-progress list of design tokens in the design tokens documentation at gatsbyjs.org/guidelines/design-tokens.

import {
  borders,
  breakpoints,
  colors,
  fonts,
  fontSizes,
  fontWeights,
  letterSpacings,
  lineHeights,
  mediaQueries,
  radii,
  shadows,
  sizes,
  space,
  transition,
  zIndices,
} from "gatsby-design-tokens"

FAQs

Package last updated on 09 Sep 2019

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