@speakapbv/dough-component-library-tokens
v1.9.0
Published
Dough Component Library Design Token Variables
Downloads
2,777
Keywords
Readme
Dough Component Library Design Tokens
Dough component library shared design tokens
Install
$ npm install @speakapbv/dough-component-library-tokens
$ yarn add @speakapbv/dough-component-library-tokens
Usage (SCSS)
@import (~@speakapbv/dough-component-library-tokens/dough-tokens.scss)
Development
- Based on entity that you want to add
- For icons that should always look the same independent of the context
- add corresponding
svg
to theassets/icon/file
directory with-icon
suffix - extend
design-tokens/icons.json
with new definition
- add corresponding
- For icons that are context dependant (for example can change size and/or color)
- add corresponding
svg
toassets/icon/icon-svgs
with-icons
suffix
- add corresponding
- Design tokens
- find relevant
.json
indesign-tokens
directory - extend it with new definition
- find relevant
- For icons that should always look the same independent of the context
- Run
yarn generate
command. Command creates all of the assets which are not stored in the repository and it will also updateindex.ts
andicons.ts
with extended definitions. - Create PR with those changes.
Release
- Create new branch with changes that you want to see in release
- Create commit message following semantic release (the easiest is to use
yarn cm
) - Merge PR. The release will happen automatically, if the commit name falls into new release category.