@phcdevworks/spectre-tokens 4.2.0 → 4.4.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/README.md +2 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +8 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +34 -0
- package/package.json +8 -8
- package/tokens/primitives.json +11 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ contracts for specific frameworks and runtimes.
|
|
|
17
17
|
| Project team | `project-design` |
|
|
18
18
|
| Repository role | Spectre L1 design-token contract |
|
|
19
19
|
| Package/artifact | `@phcdevworks/spectre-tokens` |
|
|
20
|
-
| Current version/status | 4.
|
|
20
|
+
| Current version/status | 4.4.0 |
|
|
21
21
|
|
|
22
22
|
## Standard Workflow
|
|
23
23
|
|
|
@@ -301,6 +301,7 @@ The generated token object includes these namespaces:
|
|
|
301
301
|
- `text`
|
|
302
302
|
- `component`
|
|
303
303
|
- `modes`
|
|
304
|
+
- `tracking`
|
|
304
305
|
|
|
305
306
|
The exported runtime token object is a flattened string-based tree generated
|
|
306
307
|
from `tokens/`. Source-only wrapper fields such as `value` and `metadata` are
|
package/dist/index.cjs
CHANGED
|
@@ -1189,7 +1189,8 @@ var coreTokens = {
|
|
|
1189
1189
|
"64": "4rem",
|
|
1190
1190
|
"72": "4.5rem",
|
|
1191
1191
|
"80": "5rem",
|
|
1192
|
-
"96": "6rem"
|
|
1192
|
+
"96": "6rem",
|
|
1193
|
+
"240": "15rem"
|
|
1193
1194
|
},
|
|
1194
1195
|
"radii": {
|
|
1195
1196
|
"none": "0",
|
|
@@ -1385,6 +1386,15 @@ var coreTokens = {
|
|
|
1385
1386
|
"dotted": "dotted"
|
|
1386
1387
|
}
|
|
1387
1388
|
},
|
|
1389
|
+
"tracking": {
|
|
1390
|
+
"tightest": "-0.075em",
|
|
1391
|
+
"tighter": "-0.05em",
|
|
1392
|
+
"tight": "-0.025em",
|
|
1393
|
+
"normal": "0em",
|
|
1394
|
+
"wide": "0.025em",
|
|
1395
|
+
"wider": "0.05em",
|
|
1396
|
+
"widest": "0.1em"
|
|
1397
|
+
},
|
|
1388
1398
|
"surface": {
|
|
1389
1399
|
"page": "{colors.neutral.50}",
|
|
1390
1400
|
"card": "{colors.white}",
|
|
@@ -1783,6 +1793,12 @@ var createCssVariableMap = (tokens2, options = {}) => {
|
|
|
1783
1793
|
Object.entries(baseTokens.radii).forEach(([key, value]) => {
|
|
1784
1794
|
assign(toVariableName(prefix, "radius", key), value);
|
|
1785
1795
|
});
|
|
1796
|
+
const tracking = baseTokens.tracking;
|
|
1797
|
+
if (tracking) {
|
|
1798
|
+
Object.entries(tracking).forEach(([key, value]) => {
|
|
1799
|
+
assign(toVariableName(prefix, "tracking", key), value);
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1786
1802
|
const icons = baseTokens.icons;
|
|
1787
1803
|
if (icons) {
|
|
1788
1804
|
Object.entries(icons).forEach(([key, value]) => {
|