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

@equinor/eds-tokens

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/eds-tokens

Design tokens for the Equinor Design System

  • 0.0.1-alpha.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-1.52%
Maintainers
2
Weekly downloads
 
Created
Source

@equinor/eds-tokens

Alpha release, so breaking changes may occur

Design tokens used in Equinor Design System (EDS).

Documentation

Base

Generic tokens used across EDS, such as colours, typography, spacings etc…

Tokens
  • Clickbounds
  • Colors
  • Elevation
  • Shape
  • Spacing
  • States
  • Typography (ot, woff or woff2 font required)

Components

Component specific tokens, such as button, input, table etc. These tokens can be used to implement a component in your own technology if needed whilst upholding consistency with design.

Update december 2019

The component tokens already made are still part of this package, but we encourage users to use base tokens for now – it proved to be too time consuming at this stage to create every token first in json and then in React. We might revisit the initial strategy at a later point.

Tokens
  • Button
  • Table

Usage

Use as ESM Module

Add "type":"module" to your apps package.json

import { tokens } from "@equinor/eds-tokens"
Use as CommonJS Module

CommonJS will have a separate package path

import { tokens } from "@equinor/eds-tokens/commonjs"
React storybook example
import React from 'react'
import { tokens } from '@equinor/eds-tokens'
import styled from 'styled-components'

const { h1: h1Tokens } = tokens.typography.heading

const H1 = styled.h1(h1Tokens)

export default {
  title: 'Tokens|Example',
  component: H1,
}

export const TokensExample = () => (
  <div>
    <H1>Some header</H1>
  </div>
)

Keywords

FAQs

Package last updated on 22 Jan 2020

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