@pantheon-systems/pds-design-tokens 2.0.0-alpha.0 → 2.0.0-alpha.10
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/README.md +114 -12
- package/build/css/breakpoints.css +13 -0
- package/build/css/fonts.css +1 -0
- package/build/css/variables.compact.css +14 -14
- package/build/css/variables.expanded.css +7 -7
- package/build/css/variables.global.css +39 -12
- package/build/figma/tokens.json +1062 -105
- package/build/js/variables.compact.d.ts +34 -0
- package/build/js/variables.compact.js +34 -0
- package/build/js/variables.expanded.d.ts +34 -0
- package/build/js/variables.expanded.js +34 -0
- package/build/js/variables.global.d.ts +138 -0
- package/build/js/{variables.js → variables.global.js} +60 -31
- package/build/json/tokens.json +684 -144
- package/package.json +22 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-design-tokens",
|
|
3
3
|
"description": "Design Tokens for the Pantheon Design System",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.10",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -15,11 +15,31 @@
|
|
|
15
15
|
"Design Tokens"
|
|
16
16
|
],
|
|
17
17
|
"main": "index.js",
|
|
18
|
+
"types": "build/js/variables.global.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./build/js/variables.global.d.ts",
|
|
22
|
+
"default": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"./build/js/variables.global.js": {
|
|
25
|
+
"types": "./build/js/variables.global.d.ts",
|
|
26
|
+
"default": "./build/js/variables.global.js"
|
|
27
|
+
},
|
|
28
|
+
"./build/js/variables.compact.js": {
|
|
29
|
+
"types": "./build/js/variables.compact.d.ts",
|
|
30
|
+
"default": "./build/js/variables.compact.js"
|
|
31
|
+
},
|
|
32
|
+
"./build/js/variables.expanded.js": {
|
|
33
|
+
"types": "./build/js/variables.expanded.d.ts",
|
|
34
|
+
"default": "./build/js/variables.expanded.js"
|
|
35
|
+
},
|
|
36
|
+
"./build/*": "./build/*"
|
|
37
|
+
},
|
|
18
38
|
"files": [
|
|
19
39
|
"build"
|
|
20
40
|
],
|
|
21
41
|
"scripts": {
|
|
22
|
-
"build:tokens": "style-dictionary build
|
|
42
|
+
"build:tokens": "style-dictionary build && node scripts/prepare-for-figma.js && node scripts/add-convenience-objects.js",
|
|
23
43
|
"build:tokens:watch": "nodemon --watch tokens --exec 'npm run build:tokens'",
|
|
24
44
|
"clean": "rm -rf build/",
|
|
25
45
|
"prebuild:tokens": "npm run clean",
|