@designtools/tokens 0.14.0 → 0.16.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/CHANGELOG.md +41 -0
- package/README.md +76 -12
- package/dist/{chunk-7PQDEFU6.js → chunk-PG4SXPRL.js} +327 -20
- package/dist/cli.js +266 -37
- package/dist/index.d.ts +98 -1
- package/dist/index.js +23 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,16 +7,22 @@ import {
|
|
|
7
7
|
GROUND_BASE_TOKENS,
|
|
8
8
|
GROUND_COLOR_PARTS,
|
|
9
9
|
GROUND_SELECTOR,
|
|
10
|
+
LOCAL_TEMPLATE,
|
|
11
|
+
OFF_SCALE_ADVICE,
|
|
12
|
+
OWNED_SCALE_MARK,
|
|
13
|
+
RESERVED_COLOR_NAMES,
|
|
10
14
|
SECTIONED_FORMATS,
|
|
11
15
|
SHADE_PRESETS,
|
|
12
16
|
TAILWIND_SHADES,
|
|
13
17
|
TOKEN_SECTIONS,
|
|
18
|
+
TYPE_STEPS,
|
|
14
19
|
VALID_SHADES,
|
|
15
20
|
WIDE_GAMUT_QUERY,
|
|
16
21
|
adjustChroma,
|
|
17
22
|
adjustLightness,
|
|
18
23
|
aliasOf,
|
|
19
24
|
applyScaleOverrides,
|
|
25
|
+
checkLocalOverrides,
|
|
20
26
|
checkRampChroma,
|
|
21
27
|
checkSemanticContrast,
|
|
22
28
|
checkSemanticContrastAPCA,
|
|
@@ -56,17 +62,21 @@ import {
|
|
|
56
62
|
groundTokenNames,
|
|
57
63
|
isAPCAAvailable,
|
|
58
64
|
isInGamut,
|
|
65
|
+
isOwnedScale,
|
|
59
66
|
meetsWCAG_AA,
|
|
60
67
|
meetsWCAG_AAA,
|
|
61
68
|
mergeSlice,
|
|
62
69
|
modeSelectors,
|
|
70
|
+
offScaleReason,
|
|
63
71
|
oklchToHex,
|
|
72
|
+
ownedScaleHeader,
|
|
64
73
|
parseProvenance,
|
|
65
74
|
parseToOklch,
|
|
66
75
|
provenanceComment,
|
|
67
76
|
rangeOf,
|
|
68
77
|
readDeclarations,
|
|
69
78
|
reanchorFactors,
|
|
79
|
+
reservedColorReason,
|
|
70
80
|
reservedSurfaceNames,
|
|
71
81
|
resolveShades,
|
|
72
82
|
seedFingerprint,
|
|
@@ -79,8 +89,9 @@ import {
|
|
|
79
89
|
suggestStep,
|
|
80
90
|
tokenFamilies,
|
|
81
91
|
usageReport,
|
|
92
|
+
verifyScale,
|
|
82
93
|
withJsonProvenance
|
|
83
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-PG4SXPRL.js";
|
|
84
95
|
export {
|
|
85
96
|
ALIAS_PAIRS,
|
|
86
97
|
APCAUnavailableError,
|
|
@@ -90,16 +101,22 @@ export {
|
|
|
90
101
|
GROUND_BASE_TOKENS,
|
|
91
102
|
GROUND_COLOR_PARTS,
|
|
92
103
|
GROUND_SELECTOR,
|
|
104
|
+
LOCAL_TEMPLATE,
|
|
105
|
+
OFF_SCALE_ADVICE,
|
|
106
|
+
OWNED_SCALE_MARK,
|
|
107
|
+
RESERVED_COLOR_NAMES,
|
|
93
108
|
SECTIONED_FORMATS,
|
|
94
109
|
SHADE_PRESETS,
|
|
95
110
|
TAILWIND_SHADES,
|
|
96
111
|
TOKEN_SECTIONS,
|
|
112
|
+
TYPE_STEPS,
|
|
97
113
|
VALID_SHADES,
|
|
98
114
|
WIDE_GAMUT_QUERY,
|
|
99
115
|
adjustChroma,
|
|
100
116
|
adjustLightness,
|
|
101
117
|
aliasOf,
|
|
102
118
|
applyScaleOverrides,
|
|
119
|
+
checkLocalOverrides,
|
|
103
120
|
checkRampChroma,
|
|
104
121
|
checkSemanticContrast,
|
|
105
122
|
checkSemanticContrastAPCA,
|
|
@@ -139,17 +156,21 @@ export {
|
|
|
139
156
|
groundTokenNames,
|
|
140
157
|
isAPCAAvailable,
|
|
141
158
|
isInGamut,
|
|
159
|
+
isOwnedScale,
|
|
142
160
|
meetsWCAG_AA,
|
|
143
161
|
meetsWCAG_AAA,
|
|
144
162
|
mergeSlice,
|
|
145
163
|
modeSelectors,
|
|
164
|
+
offScaleReason,
|
|
146
165
|
oklchToHex,
|
|
166
|
+
ownedScaleHeader,
|
|
147
167
|
parseProvenance,
|
|
148
168
|
parseToOklch,
|
|
149
169
|
provenanceComment,
|
|
150
170
|
rangeOf,
|
|
151
171
|
readDeclarations,
|
|
152
172
|
reanchorFactors,
|
|
173
|
+
reservedColorReason,
|
|
153
174
|
reservedSurfaceNames,
|
|
154
175
|
resolveShades,
|
|
155
176
|
seedFingerprint,
|
|
@@ -162,5 +183,6 @@ export {
|
|
|
162
183
|
suggestStep,
|
|
163
184
|
tokenFamilies,
|
|
164
185
|
usageReport,
|
|
186
|
+
verifyScale,
|
|
165
187
|
withJsonProvenance
|
|
166
188
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designtools/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Turn one brand colour into a complete design-token system: perceptual OKLCH ramps, contrast-checked semantic tokens (WCAG or APCA), light and dark, as CSS custom properties, Tailwind v4/v3 or DTCG. Deterministic CLI, safe for agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|