Huge News!Announcing our $40M Series B led by Abstract Ventures.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

@maltjoy/tokens

Malt design system tokens ecosystem

  • 0.6.0
  • unpublished
  • npm
  • Socket score

Version published
Maintainers
1
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

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