0.2.1 • Published 3 years ago
@sinchsmb/mktheme v0.2.1
MkTheme-Util is a CLI tool that allows converting Figma Tokens configuration file to Hive Design System theme.
Options
-f, --figma- Figma Tokens export file name-t, --theme- name of a theme that should be updated-b, --base-theme- name of theme that should be used as base one if its name is notbaseTheme-s, --silent- prevents printing any message to console-h, --help- shows the util's help--version- show the util's version
Usage
In Figma
- In the Hive Design System Figma file, run the Figma Tokens plugin:
⌘+/→Figma Tokens - Go to
Sync→GitHuband push the latest changes to GitHub by clicking the library icon.
For importing the theme
- Download the
tokens.jsonfile from the Hive Design Tokens repository to any folder. - In the folder run
npx @sinchsmb/mktheme@latest -f tokens.json -t THEME_NAME EXPORT_FILE.jsonwhere:THEME_NAMEis a name of a theme that you want to updateEXPORT_FILE.jsonis a converting output file- Example:
npx @sinchsmb/mktheme@latest -f tokens.json -t SinchSMB sinchSMB.json.
Configure the
HiveUIcomponent using new themeExample:
import { HiveUI } from '@sinchsmb/ui-kit'; import theme from './sinchSMB.json'; <HiveUI theme={theme} {...otherProps}>{/* UI code */}</Hive>
0.2.1
3 years ago
0.2.0
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.16
3 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago