1.5.0 ā€¢ Published 4 years ago

@d4l/design-tokens v1.5.0

Weekly downloads
15
License
BSD-3-Clause
Repository
github
Last release
4 years ago

D4L Design Tokens

šŸ’„ Design tokens of the D4L design system

Technologies

Strucutre

ā”œā”€ā”€ config.json
ā”œā”€ā”€ app
ā”‚  ā”œā”€ā”€ tokens/
ā”‚     ā”œā”€ā”€ color/
ā”‚        ā”œā”€ā”€ base.json
ā”œā”€ā”€ build/
ā”‚  ā”œā”€ā”€ web/
ā”‚     ā”œā”€ā”€ \_variables.scss
  1. config.json is the place where we can configure style-dictionary and tell it how to build.
  2. app contains the source code for the web app and serverless function for publishing changes.
  3. app/tokens stores the design tokens definitions e.g. colors, fonts, sizes.
  4. build contains the generated design tokens based on the provided configuration.

Usage

# Generate the variable files bsaed on the config.json
npm run build

# Start the design token generator app dev server on port 3333
npm run dev:app

# Start the netlify dev server via Netlify CLI (design token app + serverless function)
npm run dev:netlify

# Build the design token generator app (including the serverless function)
npm run build:app

Additional arguments:

FlagShort FlagDescription
--config [path]-cSet the config file to use. Must be a .json file
--platform [platform]-pOnly build a specific platform defined in the config file.
--help-hDisplay help content
--version-vDisplay the version

Info on the design token generator app

Please check the web app readme for the web app configuration and usage.

1.5.0

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.2.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago