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
2
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

4.0.1
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
2
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
  • Border radius
  • Spacing
  • Transition (animation)
  • Layers (z-index)
  • Forms
  • Typography (font-family, font-size, font-weight, line-height)

Usage

This package is meant to be used with @maltjoy/themes.

But if you need to fully customize tokens, you can create you own theme:

@use '@maltjoy/tokens/src/tokens' with (
    $joy-color-neutral-6: #000,
    $joy-font-size-xs: 9px,
    $joy-core-spacing-base: 3px,
    // and so on...
);

:root {
  // Call all the mixin in order to generate all CSS custom properties
  @include tokens.getPaletteProperties();
  @include tokens.getContextualPaletteProperties();
  @include tokens.getTextPaletteProperties();
  @include tokens.getFunctionalPaletteProperties();
  @include tokens.getOverlayProperties();
  @include tokens.getElevationsProperties();
  @include tokens.getFontsProperties();
  @include tokens.getRadiusProperties();
  @include tokens.getSpacingProperties();
  @include tokens.getAnimationsProperties();
  @include tokens.getZindexProperties();
  @include tokens.getFormsProperties();
}

All original modules are accessible from SCSS source files.

FAQs

Package last updated on 24 Nov 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