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

@nulogy/tokens

Package Overview
Dependencies
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nulogy/tokens

Design tokens for the Nulogy Design System - http://nulogy.design

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
355
increased by219.82%
Maintainers
7
Weekly downloads
 
Created
Source

npm (scoped)

@nulogy/tokens

This is where Nulogy's design tokens are stored and converted using Style Dictionary. Tokens are mostly used in our React components and CSS classes, but tokens can be imported directly into your application if needed.

What are tokens?

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.

Installation

yarn add @nulogy/tokens

Usage

In Sass

@import '/node_modules/@nulogy/tokens/dist/variables.scss';

.blue-thing {color: $color_base_blue}

With CSS Modules

In your component's jsx file, add import "@nulogy/tokens/dist/variables.css";

.blue-thing {color: var(--color-base-blue)}

In JS

If you're using javascript, you can access our theme instead of the tokens directly. For instructions on that, see "For custom components" at nulogy.design/theme

FAQs

Package last updated on 25 Mar 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