Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaelig/google-spreadsheets-theo-demo

Design tokens, managed via Google Spreadsheets, generated using Theo
https://github.com/kaelig/google-spreadsheets-theo-demo

design-systems design-tokens google-spreadsheets theo

Last synced: about 1 month ago
JSON representation

Design tokens, managed via Google Spreadsheets, generated using Theo

Awesome Lists containing this project

README

        

# Design tokens (demo project)

- Managed with Google Spreadsheets ([see source](https://docs.google.com/spreadsheets/d/1O0QOUUq8N-NfHmlGWa61TN6oOSdQMBaDq0lp6DsCReQ/edit#gid=0))
- Generated by [Theo](https://github.com/salesforce-ux/theo), using [`google-spreadsheets-theo`](https://www.npmjs.com/package/google-spreadsheets-theo)
- Published to npm as [`design-tokens-test`](https://www.npmjs.com/package/design-tokens-test)

## Quick start

1. [Create a new repository from `google-spreadsheets-theo-demo`](https://github.com/kaelig/google-spreadsheets-theo-demo/generate) (or click the “Use this template” button on GitHub)
2. Clone the repository and install the dependencies:

```
git clone https://github.com//google-spreadsheets-theo-demo.git
cd google-spreadsheets-theo-demo
yarn
```

3. Edit tokens in the spreadsheet
4. Run `yarn build-tokens`

This should appear:

```
yarn build-tokens
yarn run v1.12.3
$ yarn clean
$ rimraf tokens
$ node ./build-tokens.js
✔ Design tokens written to ./tokens/colors.scss
✔ Design tokens written to ./tokens/colors.common.js
✔ Design tokens written to ./tokens/colors.android.xml
✔ Design tokens written to ./tokens/colors.ios.json
✔ Design tokens written to ./tokens/spacing.scss
✔ Design tokens written to ./tokens/spacing.common.js
✔ Design tokens written to ./tokens/spacing.android.xml
✔ Design tokens written to ./tokens/spacing.ios.json
✨ Done in 2.29s.
```

The design tokens in `./tokens/` should be updated.