# v9helper-babel-plugin-tokens

> Babel plugin to identify @fluentui/react-northstar tokens in makeStyles call and transform it

Latest version **0.0.7** (published 2023-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install v9helper-babel-plugin-tokens
pnpm add v9helper-babel-plugin-tokens
yarn add v9helper-babel-plugin-tokens
bun add v9helper-babel-plugin-tokens
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2023-06-28 |
| First published | 2022-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 52.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yuanboxue-amber |

## Links

- npm: https://www.npmjs.com/package/v9helper-babel-plugin-tokens
- Repository: https://github.com/YuanboXue-Amber/style-transform-tool
- Homepage: https://github.com/YuanboXue-Amber/style-transform-tool#readme
- Issues: https://github.com/YuanboXue-Amber/style-transform-tool/issues
- npm.io page: https://npm.io/package/v9helper-babel-plugin-tokens

## Dependencies (1)

- [@fluentui/react-northstar](https://npm.io/package/@fluentui/react-northstar.md) ^0.66.5

## Recent versions

- 0.0.7 (latest) — 2023-06-28
- 0.0.2 (testing-new-feature) — 2022-09-25
- 0.0.6 — 2023-05-03
- 0.0.4 — 2022-11-08
- 0.0.3 — 2022-09-25
- 0.0.1 — 2022-09-22

## README

Babel plugin to identify @fluentui/react-northstar tokens in makeStyles call and transform it into @fluentui/react-components tokens.

```ts
import { transformTokensPlugin } from "v9helper-babel-plugin-tokens";

const result = Babel.transform(
  `
export const useStyles = makeStyles({
  root: {
    color: colorSchemeDefault.foreground,
    fontWeight: fontWeightRegular
  }
});
`,
  {
    filename: "styles.ts",
    plugins: [[transformTokensPlugin]],
  }
).code;
```

result will be:

```ts
export const useStyles = makeStyles({
  root: {
    color: tokens.colorNeutralForeground1,
    fontWeight: tokens.fontWeightRegular,
  },
});
```

---
_Source: https://npm.io/package/v9helper-babel-plugin-tokens · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
