Socket
Socket
Sign inDemoInstall

@momentum-ui/abstract

Package Overview
Dependencies
0
Maintainers
15
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @momentum-ui/abstract

store momentum data


Version published
Weekly downloads
1
Maintainers
15
Created
Weekly downloads
 

Readme

Source

Get Started

We publish a package named @momentum-ui/abstract. It's a package contains the min unit of Momentum Design. This package is mainly used to generated theme files for all kinds of project.

Install

npm i @momentum-ui/abstract

Usage

const core = require('@momentum-ui/abstract/color/core.json');

Tokens

Color

core color tokens

@./color/core.json

theme color tokens

@./color/theme.json

addition color tokens

@./color/additional.json

Icon

@./icon

nameing rule

Icon name = $component-set-name_$component-name

All icons comes from Figma componentSet's components.

  1. use ‘_’ to connect componentSet name and component name.

  2. use ‘-’ to split the words inside componentSet or and component name.

  3. component name comes from its variants. We have a logic to generate the component name.

Version

The version number will be major.minor.patch.

patch

@momentum-ui/abstract will publish a new patch version(patch+1), if there ar.e some small updates. A script runs on 1:01 UTC and 17:01 UTC everyday.

minor

If there are some new feature (new token type), a new minor version will be published. The version number will be updated in a PR.

major

If Momentum published a new year version, a major minor version will be published. The version number will be updated in a PR.

FAQs

Last updated on 22 Jul 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc