1.0.44 • Published 2 years ago

momentum-abstract v1.0.44

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Get Started

We publish a package named momentum-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-abstract

Usage

const core = require('momentum-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-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.

1.0.44

2 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.26

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago