1.0.16 • Published 1 month ago

design-tokens-utils v1.0.16

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Design Tokens Utils

Design Tokens Utils aims to provide a series of common utilities at the start of any web project, which will make it easier and faster to start the architecture.

Installation

npm install design-tokens-utils -D

Example

design-tokens-utils --tokens=.frontech.json --path=assets --disableIconFont --disableIconSprites

Options flags command line:

FlagsDescription
tokensFile Configuration Tokens
themeSet of tokens specific to the configuration file. Otherwise, it will select all those defined in the metadata.
platformsStyle dictionary config to other plataforms.
pathPath to build architecture.
disableIconFontVariable to don´t create icon font. By Default it`s created.
disableIconSpritesVariable to don´t create icon sprites. By Default it`s created.
fontNameIconsVariable to define font family name icon.
disableIconsFigmaVariable to don´t import icons figma. By Default it`s created.
disableUtilsVariable to don´t create utils icon figma. By Default it`s created.

For the proper functioning of the library, it is necessary to create a configuration file in the project. This configuration must maintain Tokens Studio Figma structure:

{
  "_icons": {
      "ds": {
        "icon": {
          "close": {
            "value": "https://www.figma.com/file/OydaDnZc16mulAMyxZcsMJ/%5Bexample<%5D-_icons?node-id=47-2299&t=SwiaYNlv9zVpdq6i-4",
            "type": "asset"
          }
        }
      }
  },
  "_palette-brand-example": {
      "color": {
        "white": {
          "value": "#ffffff",
          "type": "color"
        },
              "black": {
        "value": "#0A0A0A",
        "type": "color"
      },
        "gray": {
          "50": {
            "value": "#f6f6f6",
            "type": "color"
          },
          "100": {
            "value": "#e8e8e8",
            "type": "color"
          },
          "200": {
            "value": "#d9d9d9",
            "type": "color"
          },
          "300": {
            "value": "#bfbfbf",
            "type": "color"
          },
          "400": {
            "value": "#a6a6a6",
            "type": "color"
          },
          "500": {
            "value": "#8c8c8c",
            "type": "color"
          },
          "600": {
            "value": "#737373",
            "type": "color"
          },
          "700": {
            "value": "#4D4D4D",
            "type": "color"
          },
          "800": {
            "value": "#373737",
            "type": "color"
          },
          "900": {
            "value": "#1C1C1C",
            "type": "color"
          }
        },
    }
  },
  "$themes": [],
  "$metadata": {
    "tokenSetOrder": [
      "_palette-brand-example",
      "_icons",
    ]
  }
}
1.0.16

1 month ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.11

2 months ago

1.0.13

2 months ago

1.0.12

2 months ago

1.0.10

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.0

4 months ago

0.3.9

8 months ago

0.3.6

8 months ago

0.3.8

8 months ago

0.3.7

8 months ago

0.3.5

10 months ago

0.3.4

10 months ago

0.3.3

10 months ago

0.3.1

11 months ago

0.0.22

12 months ago

0.0.23

11 months ago

0.0.24

11 months ago

0.0.25

11 months ago

0.1.0

11 months ago

0.3.0

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.1

11 months ago

0.0.26

11 months ago

0.0.20

12 months ago

0.0.21

12 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

12 months ago

0.0.8

1 year ago

0.0.17

12 months ago

0.0.18

12 months ago

0.0.19

12 months ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago