@tenphi/glaze 0.16.0 → 0.16.1
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/docs/api.md +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2330,11 +2330,11 @@ function buildTokenMap(resolved, prefix, states, modes, format = "okhsl", pastel
|
|
|
2330
2330
|
const huePlans = channelCtx !== void 0 && format === "oklch" ? buildHuePlans(resolved, channelCtx) : void 0;
|
|
2331
2331
|
if (huePlans !== void 0 && channelCtx !== void 0) {
|
|
2332
2332
|
const emitDecls = channelCtx.emitDeclarations !== false;
|
|
2333
|
-
if (emitDecls && channelCtx.mode === "theme") tokens[
|
|
2333
|
+
if (emitDecls && channelCtx.mode === "theme") tokens[`$${channelCtx.baseName}-hue`] = { "": String(channelCtx.seedHue) };
|
|
2334
2334
|
for (const [name, color] of resolved) {
|
|
2335
2335
|
const plan = huePlans.get(name);
|
|
2336
2336
|
if (emitDecls) for (const decl of plan.declarations) {
|
|
2337
|
-
const key =
|
|
2337
|
+
const key = `$${decl.prop.slice(2)}`;
|
|
2338
2338
|
if (!(key in tokens)) tokens[key] = { "": decl.value };
|
|
2339
2339
|
}
|
|
2340
2340
|
const colorKey = `#${prefix}${name}`;
|