# gu-ds-base

> 1. Export json from Figma 2. Replace json in `tokens-from-figma.json` 3. Run `yarn build` 4. Commit changes

Latest version **0.0.9** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install gu-ds-base
pnpm add gu-ds-base
yarn add gu-ds-base
bun add gu-ds-base
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2023-11-07 |
| First published | 2023-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 218.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | dsreitan |

## Links

- npm: https://www.npmjs.com/package/gu-ds-base
- Repository: https://github.com/GyldendalDigital/gu-ds
- Homepage: https://github.com/GyldendalDigital/gu-ds#readme
- Issues: https://github.com/GyldendalDigital/gu-ds/issues
- npm.io page: https://npm.io/package/gu-ds-base

## Recent versions

- 0.0.9 (latest) — 2023-11-07
- 0.0.8 — 2023-11-02
- 0.0.7 — 2023-10-18
- 0.0.5 — 2023-10-09

## README

# Base

## Design tokens

### ⚡ Quick how to: update tokens

1. Export json from Figma
2. Replace json in `tokens-from-figma.json`
3. Run `yarn build`
4. Commit changes

### 🧱 Token folder structure

```
/
├── output/
│   ├── tokens.css
│   ├── tokens.scss
│   └── token.json
├── build-tokens.ts
├── config.ts
└── tokens-from-figma.json
```

We use [style-dictionary](https://github.com/amzn/style-dictionary) to transform and format the tokens in `./tokens-from-figma.json`.

In `./config.ts` we decide which formats we want (css, scss, js and more), and in `./build-tokens.ts` we can create formatters and use other utilities to change the output how we want.

The files in `./output` are auto generated and should never be edited manually.

---
_Source: https://npm.io/package/gu-ds-base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
