@phcdevworks/spectre-tokens 4.3.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 +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +30 -0
- package/package.json +5 -5
- package/tokens/primitives.json +9 -0
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
|
@@ -1386,6 +1386,15 @@ var coreTokens = {
|
|
|
1386
1386
|
"dotted": "dotted"
|
|
1387
1387
|
}
|
|
1388
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
|
+
},
|
|
1389
1398
|
"surface": {
|
|
1390
1399
|
"page": "{colors.neutral.50}",
|
|
1391
1400
|
"card": "{colors.white}",
|
|
@@ -1784,6 +1793,12 @@ var createCssVariableMap = (tokens2, options = {}) => {
|
|
|
1784
1793
|
Object.entries(baseTokens.radii).forEach(([key, value]) => {
|
|
1785
1794
|
assign(toVariableName(prefix, "radius", key), value);
|
|
1786
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
|
+
}
|
|
1787
1802
|
const icons = baseTokens.icons;
|
|
1788
1803
|
if (icons) {
|
|
1789
1804
|
Object.entries(icons).forEach(([key, value]) => {
|