0.2.1 • Published 1 year 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
→GitHub
and push the latest changes to GitHub by clicking the library icon.
For importing the theme
- Download the
tokens.json
file 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.json
where:THEME_NAME
is a name of a theme that you want to updateEXPORT_FILE.json
is a converting output file- Example:
npx @sinchsmb/mktheme@latest -f tokens.json -t SinchSMB sinchSMB.json
.
Configure the
HiveUI
component using new themeExample:
import { HiveUI } from '@sinchsmb/ui-kit'; import theme from './sinchSMB.json'; <HiveUI theme={theme} {...otherProps}>{/* UI code */}</Hive>
0.2.1
1 year ago
0.2.0
1 year ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago