@udixio/theme 2.1.13 → 2.1.14

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 CHANGED
@@ -1,3 +1,13 @@
1
+ ## 2.1.14 (2026-02-08)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - improve color theme ([e247e14](https://github.com/Udixio/UI/commit/e247e14))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
1
11
  ## 2.1.13 (2026-02-02)
2
12
 
3
13
  ### 🩹 Fixes
package/dist/bin.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const commander = require("commander");
3
3
  const chokidar = require("chokidar");
4
4
  const chalk = require("chalk");
5
- const loadFromPath = require("./load-from-path-DDQroKk-.cjs");
5
+ const loadFromPath = require("./load-from-path-CewyV1N6.cjs");
6
6
  const program = new commander.Command();
7
7
  async function runOnce(configPath) {
8
8
  try {
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command } from "commander";
2
2
  import chokidar from "chokidar";
3
3
  import chalk from "chalk";
4
- import { l as loadFromPath } from "./load-from-path-B7BI6LZa.js";
4
+ import { l as loadFromPath } from "./load-from-path-Cctfzaw6.js";
5
5
  const program = new Command();
6
6
  async function runOnce(configPath) {
7
7
  try {
package/dist/browser.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const loader = require("./loader-CgJ2JY88.cjs");
4
- const font_plugin = require("./font.plugin-B9NdGRxC.cjs");
3
+ const loader = require("./loader-DKt7MGAX.cjs");
4
+ const font_plugin = require("./font.plugin-CCt54Tnx.cjs");
5
5
  exports.API = loader.API;
6
6
  exports.AppContainer = loader.AppContainer;
7
7
  exports.AppModule = loader.AppModule;
package/dist/browser.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-Cy_VzOHt.js";
2
- import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-b3GDzC1A.js";
1
+ import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-DnW57GzE.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-BXjaZrFM.js";
3
3
  export {
4
4
  A as API,
5
5
  a as AppContainer,
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import "./loader-Cy_VzOHt.js";
4
+ import "./loader-DnW57GzE.js";
5
5
  class PluginAbstract {
6
6
  constructor(options) {
7
7
  __publicField(this, "options");
@@ -2,7 +2,7 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- require("./loader-CgJ2JY88.cjs");
5
+ require("./loader-DKt7MGAX.cjs");
6
6
  class PluginAbstract {
7
7
  constructor(options) {
8
8
  __publicField(this, "options");
@@ -1,4 +1,4 @@
1
- import { y as loader } from "./loader-Cy_VzOHt.js";
1
+ import { y as loader } from "./loader-DnW57GzE.js";
2
2
  import * as fs from "node:fs";
3
3
  async function resolveConfig(configPath = "./theme.config") {
4
4
  const { createJiti } = await import("jiti");
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
22
  mod
23
23
  ));
24
- const loader = require("./loader-CgJ2JY88.cjs");
24
+ const loader = require("./loader-DKt7MGAX.cjs");
25
25
  const fs = require("node:fs");
26
26
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
27
27
  function _interopNamespaceDefault(e) {
@@ -44,7 +44,7 @@ const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
44
44
  async function resolveConfig(configPath = "./theme.config") {
45
45
  const { createJiti } = await import("jiti");
46
46
  const { resolve } = await import("pathe");
47
- const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-DDQroKk-.cjs", document.baseURI).href, {
47
+ const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-CewyV1N6.cjs", document.baseURI).href, {
48
48
  debug: process.env.NODE_ENV === "development",
49
49
  fsCache: true,
50
50
  interopDefault: true
@@ -3120,7 +3120,7 @@ const udixioVariant = variant({
3120
3120
  }),
3121
3121
  secondary: ({ sourceColor }) => ({
3122
3122
  hue: sourceColor.hue,
3123
- chroma: sourceColor.chroma / 1.4
3123
+ chroma: sourceColor.chroma * 0.5
3124
3124
  }),
3125
3125
  tertiary: ({ sourceColor }) => ({
3126
3126
  hue: getRotatedHue(
@@ -3214,13 +3214,7 @@ const udixioVariant = variant({
3214
3214
  [colorContainerKey]: {
3215
3215
  palette: () => palettes.get(colorKey),
3216
3216
  tone: () => {
3217
- if (ctx.variant.name === "vibrant") {
3218
- return ctx.isDark ? tMinC(palettes.get(colorKey), 30, 40) : tMaxC(palettes.get(colorKey), 84, 90);
3219
- } else if (ctx.variant.name === "expressive") {
3220
- return ctx.isDark ? 15 : tMaxC(palettes.get(colorKey), 90, 95);
3221
- } else {
3222
- return ctx.isDark ? 25 : 90;
3223
- }
3217
+ return ctx.isDark ? tMinC(palettes.get(colorKey), 35, 93) : tMaxC(palettes.get(colorKey), 0, 90);
3224
3218
  },
3225
3219
  isBackground: true,
3226
3220
  background: () => highestSurface(ctx, colors2),
@@ -3582,7 +3576,7 @@ const udixioVariant = variant({
3582
3576
  secondaryContainer: {
3583
3577
  palette: () => palettes.get("secondary"),
3584
3578
  tone: () => {
3585
- return ctx.isDark ? 25 : 90;
3579
+ return ctx.isDark ? tMinC(palettes.get("secondary"), 35, 93) : tMaxC(palettes.get("secondary"), 0, 90);
3586
3580
  },
3587
3581
  isBackground: true,
3588
3582
  background: () => highestSurface(ctx, colors),
@@ -3119,7 +3119,7 @@ const udixioVariant = variant({
3119
3119
  }),
3120
3120
  secondary: ({ sourceColor }) => ({
3121
3121
  hue: sourceColor.hue,
3122
- chroma: sourceColor.chroma / 1.4
3122
+ chroma: sourceColor.chroma * 0.5
3123
3123
  }),
3124
3124
  tertiary: ({ sourceColor }) => ({
3125
3125
  hue: getRotatedHue(
@@ -3213,13 +3213,7 @@ const udixioVariant = variant({
3213
3213
  [colorContainerKey]: {
3214
3214
  palette: () => palettes.get(colorKey),
3215
3215
  tone: () => {
3216
- if (ctx.variant.name === "vibrant") {
3217
- return ctx.isDark ? tMinC(palettes.get(colorKey), 30, 40) : tMaxC(palettes.get(colorKey), 84, 90);
3218
- } else if (ctx.variant.name === "expressive") {
3219
- return ctx.isDark ? 15 : tMaxC(palettes.get(colorKey), 90, 95);
3220
- } else {
3221
- return ctx.isDark ? 25 : 90;
3222
- }
3216
+ return ctx.isDark ? tMinC(palettes.get(colorKey), 35, 93) : tMaxC(palettes.get(colorKey), 0, 90);
3223
3217
  },
3224
3218
  isBackground: true,
3225
3219
  background: () => highestSurface(ctx, colors2),
@@ -3581,7 +3575,7 @@ const udixioVariant = variant({
3581
3575
  secondaryContainer: {
3582
3576
  palette: () => palettes.get("secondary"),
3583
3577
  tone: () => {
3584
- return ctx.isDark ? 25 : 90;
3578
+ return ctx.isDark ? tMinC(palettes.get("secondary"), 35, 93) : tMaxC(palettes.get("secondary"), 0, 90);
3585
3579
  },
3586
3580
  isBackground: true,
3587
3581
  background: () => highestSurface(ctx, colors),
package/dist/node.cjs CHANGED
@@ -22,9 +22,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- const loader = require("./loader-CgJ2JY88.cjs");
26
- const font_plugin = require("./font.plugin-B9NdGRxC.cjs");
27
- const loadFromPath = require("./load-from-path-DDQroKk-.cjs");
25
+ const loader = require("./loader-DKt7MGAX.cjs");
26
+ const font_plugin = require("./font.plugin-CCt54Tnx.cjs");
27
+ const loadFromPath = require("./load-from-path-CewyV1N6.cjs");
28
28
  let unpluginInstance = null;
29
29
  const createUnpluginTheme = async () => {
30
30
  if (unpluginInstance) {
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-Cy_VzOHt.js";
2
- import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-b3GDzC1A.js";
3
- import { l as loadFromPath } from "./load-from-path-B7BI6LZa.js";
4
- import { r as r2 } from "./load-from-path-B7BI6LZa.js";
1
+ import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-DnW57GzE.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-BXjaZrFM.js";
3
+ import { l as loadFromPath } from "./load-from-path-Cctfzaw6.js";
4
+ import { r as r2 } from "./load-from-path-Cctfzaw6.js";
5
5
  let unpluginInstance = null;
6
6
  const createUnpluginTheme = async () => {
7
7
  if (unpluginInstance) {
@@ -1 +1 @@
1
- {"version":3,"file":"udixio.variant.d.ts","sourceRoot":"","sources":["../../../src/variant/variants/udixio.variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAEL,eAAe,EAIhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAIL,QAAQ,EAER,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAyCxC,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EACZ,QAAQ,YAAY,GAAG,QAAQ,EAC/B,SAAS;IACP,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAuBF,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAiwB1B,CAAC"}
1
+ {"version":3,"file":"udixio.variant.d.ts","sourceRoot":"","sources":["../../../src/variant/variants/udixio.variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAEL,eAAe,EAIhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAIL,QAAQ,EAER,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAyCxC,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EACZ,QAAQ,YAAY,GAAG,QAAQ,EAC/B,SAAS;IACP,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAuBF,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OA6vB1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -100,7 +100,7 @@ export const udixioVariant: Variant = variant({
100
100
  }),
101
101
  secondary: ({ sourceColor }) => ({
102
102
  hue: sourceColor.hue,
103
- chroma: sourceColor.chroma / 1.4,
103
+ chroma: sourceColor.chroma * 0.5,
104
104
  }),
105
105
  tertiary: ({ sourceColor }) => ({
106
106
  hue: getRotatedHue(
@@ -208,15 +208,9 @@ export const udixioVariant: Variant = variant({
208
208
  [colorContainerKey]: {
209
209
  palette: () => palettes.get(colorKey),
210
210
  tone: () => {
211
- if (ctx.variant.name === 'vibrant') {
212
- return ctx.isDark
213
- ? tMinC(palettes.get(colorKey), 30, 40)
214
- : tMaxC(palettes.get(colorKey), 84, 90);
215
- } else if (ctx.variant.name === 'expressive') {
216
- return ctx.isDark ? 15 : tMaxC(palettes.get(colorKey), 90, 95);
217
- } else {
218
- return ctx.isDark ? 25 : 90;
219
- }
211
+ return ctx.isDark
212
+ ? tMinC(palettes.get(colorKey), 35, 93)
213
+ : tMaxC(palettes.get(colorKey), 0, 90);
220
214
  },
221
215
  isBackground: true,
222
216
  background: () => highestSurface(ctx, colors),
@@ -591,7 +585,9 @@ export const udixioVariant: Variant = variant({
591
585
  secondaryContainer: {
592
586
  palette: () => palettes.get('secondary'),
593
587
  tone: () => {
594
- return ctx.isDark ? 25 : 90;
588
+ return ctx.isDark
589
+ ? tMinC(palettes.get('secondary'), 35, 93)
590
+ : tMaxC(palettes.get('secondary'), 0, 90);
595
591
  },
596
592
  isBackground: true,
597
593
  background: () => highestSurface(ctx, colors),