New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maltjoy/tokens

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@maltjoy/tokens

Malt design system tokens ecosystem

0.6.0
unpublished
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@maltjoy/tokens

This package includes all "Tokens" defined for Joy design system. You can find all of it on our Zeroheight documentation.

Tokens types

  • Colors
  • Functional colors
  • Elevations
  • Radius
  • Spacing
  • Transition (animation)
  • Typography (font-family, font-size, font-weight, line-height)

Installation

First, run this command :

npm i @maltjoy/tokens@latest

Replace @latest by the version you prefer.

SCSS

If you use SCSS preprocessor, you have two choices :

  • import the pre-bundle css version
  • import the source tokens by picking what you need
Already bundled CSS
// With or without the .css extension
@use '@maltjoy/tokens/dist/css/tokens.css';
Cherry-pick
// With or without the .css extension
@use '@maltjoy/tokens/src/colors';
@use '@maltjoy/tokens/src/elevations';

:root { // Or whatever selector you need, but this one will register all the properties at the document root
  @include colors.getPaletteProperties();
  @include elevations.getElevationsProperties();
}

Don't use @import synthax as it will be slowly deprecated and removed by SASS (https://sass-lang.com/documentation/at-rules/import)

FAQs

Package last updated on 15 Feb 2022

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