Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berkcebi/zeplin-json-extension
Generates design tokens in JSON, for Zeplin colors and text styles. π
https://github.com/berkcebi/zeplin-json-extension
zeplin zeplin-extension
Last synced: 11 days ago
JSON representation
Generates design tokens in JSON, for Zeplin colors and text styles. π
- Host: GitHub
- URL: https://github.com/berkcebi/zeplin-json-extension
- Owner: berkcebi
- License: mit
- Created: 2018-02-23T00:51:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T02:24:26.000Z (10 months ago)
- Last Synced: 2024-07-30T21:08:29.993Z (3 months ago)
- Topics: zeplin, zeplin-extension
- Language: JavaScript
- Homepage: https://extensions.zeplin.io/berk/zeplin-json-extension
- Size: 769 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
β οΈ **Zeplin now has a built-in feature to export design tokens** (colors, text styles and spacing values) **in JSON**βeither using the Zeplin API or as a .zip package. [Learn more.](https://support.zeplin.io/en/articles/5160298-export-design-tokens)
# JSON Design Tokens Zeplin Extension
Generates design tokens in JSON, for colors and text styles. π
Regardless of which tool the designs are exported from, this extension lets you export JSON files from colors and text styles defined in Zeplin projects and styleguides. Based on internal needs, developers can transform these JSON files and generate code snippets or resources for various platforms.
Sample colors output:
```json
[
{
"name": "yellow",
"red": 254,
"green": 207,
"blue": 51,
"alpha": 1
},
{
"name": "lightOrange",
"red": 253,
"green": 189,
"blue": 57,
"alpha": 1
}
]
```Sample text style output:
```json
[
{
"name": "Normal",
"color": {
"red": 87,
"green": 71,
"blue": 81,
"alpha": 1
},
"letterSpacing": 1,
"lineHeight": 32,
"alignment": "left",
"font": {
"postscriptName": "SFProDisplay-Regular",
"family": "SFProDisplay",
"size": 26,
"weight": "regular",
"stretch": "normal"
}
}
]
```### Options
#### Color representation
Supports RGB, HSLA and Hex. Sample colors output, as Hex:
```json
[
{
"name": "yellow",
"hex": "fecf33",
"alpha": 1
},
{
"name": "lightOrange",
"hex": "fdbd39",
"alpha": 1
}
]
```#### Include referenced styleguides
Whether to include colors and text styles from referenced styleguides. For a project, referenced styleguides include the project's linked styleguide and its parent styleguides. For a styleguide, referenced styleguides include the styleguide's parent styleguides.
## Development
Zeplin JSON extension is developed using [zem](https://github.com/zeplin/zem), Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.