@figma-vars/hooks 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # @figma-vars/hooks
2
2
 
3
+ <p align="left">
4
+ <img src="assets/figma-vars-tagline-light.png" alt="FigmaVars Logo" width="700px" />
5
+ </p>
6
+
3
7
  A fast, typed React 19 hooks library for the Figma Variables API: fetch, update, and manage design tokens via the official [Figma REST API](https://www.figma.com/developers/api#variables).
4
8
 
5
9
  Built for the modern web, this library provides a suite of hooks to fetch, manage, and mutate your design tokens, making it easy to sync them between Figma and your React applications, Storybooks, or design system dashboards.
6
10
 
7
11
  ![Status](https://img.shields.io/badge/status-stable-brightgreen)
8
12
  ![CI](https://github.com/marklearst/figma-vars-hooks/actions/workflows/publish.yml/badge.svg)
13
+ [![codecov](https://codecov.io/gh/marklearst/figma-vars-hooks/branch/main/graph/badge.svg)](https://codecov.io/gh/marklearst/figma-vars-hooks)
9
14
  ![License](https://img.shields.io/github/license/marklearst/figma-vars-hooks)
10
15
  ![GitHub last commit](https://img.shields.io/github/last-commit/marklearst/figma-vars-hooks)
11
16
  ![GitHub code size](https://img.shields.io/github/languages/code-size/marklearst/figma-vars-hooks)
@@ -196,5 +201,5 @@ PRs and issues are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for gu
196
201
 
197
202
  ## 📝 License
198
203
 
199
- This project is licensed under the [MIT License](LICENSE).
204
+ This project is licensed under the [MIT License](LICENSE).
200
205
  © 2024–2025 Mark Learst
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@figma-vars/hooks",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Typed React hooks for managing Figma Variables, modes, tokens, and bindings via API.",
5
5
  "author": "Mark Learst",
6
6
  "license": "MIT",
@@ -59,6 +59,7 @@
59
59
  "@types/react-dom": "^18.3.0",
60
60
  "@vitejs/plugin-react": "^4.5.2",
61
61
  "@vitest/coverage-v8": "^2.0.5",
62
+ "@vitest/ui": "2.1.9",
62
63
  "jsdom": "^26.1.0",
63
64
  "react": "^18.3.1",
64
65
  "react-dom": "^18.3.1",
@@ -77,9 +78,12 @@
77
78
  "scripts": {
78
79
  "dev": "vite",
79
80
  "build": "tsc && vite build",
80
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
81
+ "lint": "npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
81
82
  "preview": "vite preview",
82
83
  "test": "vitest",
84
+ "test:ui": "vitest --ui",
85
+ "test:coverage": "vitest run --coverage",
86
+ "test:watch": "vitest watch",
83
87
  "postversion": "git push && git push --tags"
84
88
  }
85
89
  }