@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.mjs
CHANGED
|
@@ -2328,11 +2328,11 @@ function buildTokenMap(resolved, prefix, states, modes, format = "okhsl", pastel
|
|
|
2328
2328
|
const huePlans = channelCtx !== void 0 && format === "oklch" ? buildHuePlans(resolved, channelCtx) : void 0;
|
|
2329
2329
|
if (huePlans !== void 0 && channelCtx !== void 0) {
|
|
2330
2330
|
const emitDecls = channelCtx.emitDeclarations !== false;
|
|
2331
|
-
if (emitDecls && channelCtx.mode === "theme") tokens[
|
|
2331
|
+
if (emitDecls && channelCtx.mode === "theme") tokens[`$${channelCtx.baseName}-hue`] = { "": String(channelCtx.seedHue) };
|
|
2332
2332
|
for (const [name, color] of resolved) {
|
|
2333
2333
|
const plan = huePlans.get(name);
|
|
2334
2334
|
if (emitDecls) for (const decl of plan.declarations) {
|
|
2335
|
-
const key =
|
|
2335
|
+
const key = `$${decl.prop.slice(2)}`;
|
|
2336
2336
|
if (!(key in tokens)) tokens[key] = { "": decl.value };
|
|
2337
2337
|
}
|
|
2338
2338
|
const colorKey = `#${prefix}${name}`;
|