swatch-token 0.0.0-stage → 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +169 -2
- package/dist/cli.js +660 -0
- package/dist/client.js +81 -0
- package/dist/server/files.d.ts +16 -0
- package/dist/server/guard.d.ts +13 -0
- package/dist/server/project.d.ts +71 -0
- package/dist/server/requests.d.ts +42 -0
- package/dist/server/stylesheet.d.ts +51 -0
- package/dist/vite.d.ts +4 -0
- package/dist/vite.js +629 -0
- package/package.json +63 -4
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swatch-token",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Edit your CSS colour tokens live, on the page. A dev-only panel for Vite that finds the custom properties in your stylesheets, previews edits on the real app, and writes them back to the file.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-tokens",
|
|
7
|
+
"css-custom-properties",
|
|
8
|
+
"css-variables",
|
|
9
|
+
"colour",
|
|
10
|
+
"color",
|
|
11
|
+
"vite-plugin",
|
|
12
|
+
"dark-mode",
|
|
13
|
+
"wcag",
|
|
14
|
+
"devtools"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "tyfoster",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/tyfoster/swatch.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/tyfoster/swatch#readme",
|
|
23
|
+
"bugs": "https://github.com/tyfoster/swatch/issues",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
"./vite": {
|
|
30
|
+
"types": "./dist/vite.d.ts",
|
|
31
|
+
"default": "./dist/vite.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "node build.mjs && tsc -p tsconfig.build.json && node build.mjs --types",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "node --test test/*.test.ts",
|
|
38
|
+
"example": "npm run build && vite example",
|
|
39
|
+
"site": "vite site",
|
|
40
|
+
"site:build": "vite build site",
|
|
41
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"postcss": "^8.5.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"vite": ">=5"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^24.0.0",
|
|
51
|
+
"@types/react": "^19.0.0",
|
|
52
|
+
"@types/react-dom": "^19.0.0",
|
|
53
|
+
"esbuild": "^0.25.0",
|
|
54
|
+
"react": "^19.0.0",
|
|
55
|
+
"react-dom": "^19.0.0",
|
|
56
|
+
"typescript": "^5.8.0",
|
|
57
|
+
"vite": "^7.0.0"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=20"
|
|
61
|
+
},
|
|
62
|
+
"bin": {
|
|
63
|
+
"swatch-token": "dist/cli.js"
|
|
64
|
+
}
|
|
65
|
+
}
|