@udixio/theme 2.1.12 → 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,23 @@
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
+
11
+ ## 2.1.13 (2026-02-02)
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **theme:** remove debug `console.log` from `udixio ([e02f6ce](https://github.com/Udixio/UI/commit/e02f6ce))
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Joël VIGREUX
20
+
1
21
  ## 2.1.12 (2026-01-30)
2
22
 
3
23
  ### 🚀 Features
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-DVvlFI1M.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-CHmj8u_v.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-BZta4ulw.cjs");
4
- const font_plugin = require("./font.plugin-B6HEs4Om.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,44 +1,44 @@
1
- import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-DVtdg4Xh.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BorVbapj.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,
6
6
  b as AppModule,
7
- h as Color,
8
- i as ColorAlias,
9
- C as ColorApi,
10
- j as ColorFromHex,
11
- k as ColorFromPalette,
12
- e as ColorManager,
13
- f as ColorModule,
14
- o as Context,
15
- n as ContextModule,
16
- q as ContrastCurve,
7
+ C as Color,
8
+ c as ColorAlias,
9
+ d as ColorApi,
10
+ e as ColorFromHex,
11
+ f as ColorFromPalette,
12
+ g as ColorManager,
13
+ h as ColorModule,
14
+ i as Context,
15
+ j as ContextModule,
16
+ k as ContrastCurve,
17
17
  D as DynamicColor,
18
18
  F2 as FontFamily,
19
- b2 as FontPlugin,
19
+ a2 as FontPlugin,
20
20
  P as Palette,
21
- r as PaletteApi,
22
- s as PaletteModule,
21
+ l as PaletteApi,
22
+ m as PaletteModule,
23
23
  P2 as PluginAbstract,
24
- v as PluginApi,
25
- a2 as PluginImplAbstract,
26
- u as PluginModule,
24
+ n as PluginApi,
25
+ b2 as PluginImplAbstract,
26
+ o as PluginModule,
27
27
  V as Variant,
28
- z as Variants,
29
- c as bootstrap,
30
- d as capitalizeFirstLetter,
31
- m as defaultColors,
28
+ p as Variants,
29
+ q as bootstrap,
30
+ r as capitalizeFirstLetter,
31
+ s as defaultColors,
32
32
  d2 as defineConfig,
33
- F as expressiveVariant,
34
- g as getInitialToneFromBackground,
35
- w as getPiecewiseHue,
36
- x as getRotatedHue,
37
- l as highestSurface,
38
- p as loader,
39
- G as neutralVariant,
33
+ t as expressiveVariant,
34
+ u as getInitialToneFromBackground,
35
+ v as getPiecewiseHue,
36
+ w as getRotatedHue,
37
+ x as highestSurface,
38
+ y as loader,
39
+ z as neutralVariant,
40
40
  B as tonalSpotVariant,
41
- t as toneDeltaPair,
42
- y as variant,
43
- E as vibrantVariant
41
+ E as toneDeltaPair,
42
+ F as variant,
43
+ G as vibrantVariant
44
44
  };
@@ -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-DVtdg4Xh.js";
4
+ import "./loader-DnW57GzE.js";
5
5
  class PluginAbstract {
6
6
  constructor(options) {
7
7
  __publicField(this, "options");
@@ -222,7 +222,7 @@ class FontPluginImpl extends PluginImplAbstract {
222
222
  export {
223
223
  FontFamily as F,
224
224
  PluginAbstract as P,
225
- PluginImplAbstract as a,
226
- FontPlugin as b,
225
+ FontPlugin as a,
226
+ PluginImplAbstract as b,
227
227
  defineConfig as d
228
228
  };
@@ -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-BZta4ulw.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 { p as loader } from "./loader-DVtdg4Xh.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-BZta4ulw.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-DVvlFI1M.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
@@ -3100,7 +3100,6 @@ const createMinContrastToneAdjuster = (ctx, colors, options) => {
3100
3100
  const referenceTone = referenceKey ? colors.get(referenceKey).getTone() : highestSurface(ctx, colors).getTone();
3101
3101
  const baseTone = colors.get(selfKey).options.tone;
3102
3102
  let selfTone = baseTone;
3103
- console.log("contrast ratio2", referenceTone, selfTone);
3104
3103
  if (materialColorUtilities.Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
3105
3104
  const ratio = calculateToneAdjustmentPercentage(
3106
3105
  referenceTone,
@@ -3121,7 +3120,7 @@ const udixioVariant = variant({
3121
3120
  }),
3122
3121
  secondary: ({ sourceColor }) => ({
3123
3122
  hue: sourceColor.hue,
3124
- chroma: sourceColor.chroma / 1.4
3123
+ chroma: sourceColor.chroma * 0.5
3125
3124
  }),
3126
3125
  tertiary: ({ sourceColor }) => ({
3127
3126
  hue: getRotatedHue(
@@ -3215,13 +3214,7 @@ const udixioVariant = variant({
3215
3214
  [colorContainerKey]: {
3216
3215
  palette: () => palettes.get(colorKey),
3217
3216
  tone: () => {
3218
- if (ctx.variant.name === "vibrant") {
3219
- return ctx.isDark ? tMinC(palettes.get(colorKey), 30, 40) : tMaxC(palettes.get(colorKey), 84, 90);
3220
- } else if (ctx.variant.name === "expressive") {
3221
- return ctx.isDark ? 15 : tMaxC(palettes.get(colorKey), 90, 95);
3222
- } else {
3223
- return ctx.isDark ? 25 : 90;
3224
- }
3217
+ return ctx.isDark ? tMinC(palettes.get(colorKey), 35, 93) : tMaxC(palettes.get(colorKey), 0, 90);
3225
3218
  },
3226
3219
  isBackground: true,
3227
3220
  background: () => highestSurface(ctx, colors2),
@@ -3583,7 +3576,7 @@ const udixioVariant = variant({
3583
3576
  secondaryContainer: {
3584
3577
  palette: () => palettes.get("secondary"),
3585
3578
  tone: () => {
3586
- return ctx.isDark ? 25 : 90;
3579
+ return ctx.isDark ? tMinC(palettes.get("secondary"), 35, 93) : tMaxC(palettes.get("secondary"), 0, 90);
3587
3580
  },
3588
3581
  isBackground: true,
3589
3582
  background: () => highestSurface(ctx, colors),
@@ -3099,7 +3099,6 @@ const createMinContrastToneAdjuster = (ctx, colors, options) => {
3099
3099
  const referenceTone = referenceKey ? colors.get(referenceKey).getTone() : highestSurface(ctx, colors).getTone();
3100
3100
  const baseTone = colors.get(selfKey).options.tone;
3101
3101
  let selfTone = baseTone;
3102
- console.log("contrast ratio2", referenceTone, selfTone);
3103
3102
  if (Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
3104
3103
  const ratio = calculateToneAdjustmentPercentage(
3105
3104
  referenceTone,
@@ -3120,7 +3119,7 @@ const udixioVariant = variant({
3120
3119
  }),
3121
3120
  secondary: ({ sourceColor }) => ({
3122
3121
  hue: sourceColor.hue,
3123
- chroma: sourceColor.chroma / 1.4
3122
+ chroma: sourceColor.chroma * 0.5
3124
3123
  }),
3125
3124
  tertiary: ({ sourceColor }) => ({
3126
3125
  hue: getRotatedHue(
@@ -3214,13 +3213,7 @@ const udixioVariant = variant({
3214
3213
  [colorContainerKey]: {
3215
3214
  palette: () => palettes.get(colorKey),
3216
3215
  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
- }
3216
+ return ctx.isDark ? tMinC(palettes.get(colorKey), 35, 93) : tMaxC(palettes.get(colorKey), 0, 90);
3224
3217
  },
3225
3218
  isBackground: true,
3226
3219
  background: () => highestSurface(ctx, colors2),
@@ -3582,7 +3575,7 @@ const udixioVariant = variant({
3582
3575
  secondaryContainer: {
3583
3576
  palette: () => palettes.get("secondary"),
3584
3577
  tone: () => {
3585
- return ctx.isDark ? 25 : 90;
3578
+ return ctx.isDark ? tMinC(palettes.get("secondary"), 35, 93) : tMaxC(palettes.get("secondary"), 0, 90);
3586
3579
  },
3587
3580
  isBackground: true,
3588
3581
  background: () => highestSurface(ctx, colors),
@@ -3877,37 +3870,37 @@ const loader = async (config, load = true) => {
3877
3870
  export {
3878
3871
  API as A,
3879
3872
  tonalSpotVariant as B,
3880
- ColorApi as C,
3873
+ Color as C,
3881
3874
  DynamicColor as D,
3882
- vibrantVariant as E,
3883
- expressiveVariant as F,
3884
- neutralVariant as G,
3875
+ toneDeltaPair as E,
3876
+ variant as F,
3877
+ vibrantVariant as G,
3885
3878
  Palette as P,
3886
3879
  Variant as V,
3887
3880
  AppContainer as a,
3888
3881
  AppModule as b,
3889
- bootstrap as c,
3890
- capitalizeFirstLetter as d,
3891
- ColorManager as e,
3892
- ColorModule as f,
3893
- getInitialToneFromBackground as g,
3894
- Color as h,
3895
- ColorAlias as i,
3896
- ColorFromHex as j,
3897
- ColorFromPalette as k,
3898
- highestSurface$1 as l,
3899
- defaultColors as m,
3900
- ContextModule as n,
3901
- Context as o,
3902
- loader as p,
3903
- ContrastCurve as q,
3904
- PaletteApi as r,
3905
- PaletteModule as s,
3906
- toneDeltaPair as t,
3907
- PluginModule as u,
3908
- PluginApi as v,
3909
- getPiecewiseHue as w,
3910
- getRotatedHue as x,
3911
- variant as y,
3912
- Variants as z
3882
+ ColorAlias as c,
3883
+ ColorApi as d,
3884
+ ColorFromHex as e,
3885
+ ColorFromPalette as f,
3886
+ ColorManager as g,
3887
+ ColorModule as h,
3888
+ Context as i,
3889
+ ContextModule as j,
3890
+ ContrastCurve as k,
3891
+ PaletteApi as l,
3892
+ PaletteModule as m,
3893
+ PluginApi as n,
3894
+ PluginModule as o,
3895
+ Variants as p,
3896
+ bootstrap as q,
3897
+ capitalizeFirstLetter as r,
3898
+ defaultColors as s,
3899
+ expressiveVariant as t,
3900
+ getInitialToneFromBackground as u,
3901
+ getPiecewiseHue as v,
3902
+ getRotatedHue as w,
3903
+ highestSurface$1 as x,
3904
+ loader as y,
3905
+ neutralVariant as z
3913
3906
  };
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-BZta4ulw.cjs");
26
- const font_plugin = require("./font.plugin-B6HEs4Om.cjs");
27
- const loadFromPath = require("./load-from-path-DVvlFI1M.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, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-DVtdg4Xh.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BorVbapj.js";
3
- import { l as loadFromPath } from "./load-from-path-CHmj8u_v.js";
4
- import { r as r2 } from "./load-from-path-CHmj8u_v.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) {
@@ -128,48 +128,48 @@ export {
128
128
  A as API,
129
129
  a as AppContainer,
130
130
  b as AppModule,
131
- h as Color,
132
- i as ColorAlias,
133
- C as ColorApi,
134
- j as ColorFromHex,
135
- k as ColorFromPalette,
136
- e as ColorManager,
137
- f as ColorModule,
138
- o as Context,
139
- n as ContextModule,
140
- q as ContrastCurve,
131
+ C as Color,
132
+ c as ColorAlias,
133
+ d as ColorApi,
134
+ e as ColorFromHex,
135
+ f as ColorFromPalette,
136
+ g as ColorManager,
137
+ h as ColorModule,
138
+ i as Context,
139
+ j as ContextModule,
140
+ k as ContrastCurve,
141
141
  D as DynamicColor,
142
142
  F2 as FontFamily,
143
- b2 as FontPlugin,
143
+ a2 as FontPlugin,
144
144
  P as Palette,
145
- r as PaletteApi,
146
- s as PaletteModule,
145
+ l as PaletteApi,
146
+ m as PaletteModule,
147
147
  P2 as PluginAbstract,
148
- v as PluginApi,
149
- a2 as PluginImplAbstract,
150
- u as PluginModule,
148
+ n as PluginApi,
149
+ b2 as PluginImplAbstract,
150
+ o as PluginModule,
151
151
  V as Variant,
152
- z as Variants,
153
- c as bootstrap,
154
- d as capitalizeFirstLetter,
155
- m as defaultColors,
152
+ p as Variants,
153
+ q as bootstrap,
154
+ r as capitalizeFirstLetter,
155
+ s as defaultColors,
156
156
  d2 as defineConfig,
157
157
  esbuildPlugin,
158
- F as expressiveVariant,
159
- g as getInitialToneFromBackground,
160
- w as getPiecewiseHue,
161
- x as getRotatedHue,
162
- l as highestSurface,
158
+ t as expressiveVariant,
159
+ u as getInitialToneFromBackground,
160
+ v as getPiecewiseHue,
161
+ w as getRotatedHue,
162
+ x as highestSurface,
163
163
  loadFromPath,
164
- p as loader,
165
- G as neutralVariant,
164
+ y as loader,
165
+ z as neutralVariant,
166
166
  r2 as resolveConfig,
167
167
  rollupPlugin,
168
168
  B as tonalSpotVariant,
169
- t as toneDeltaPair,
169
+ E as toneDeltaPair,
170
170
  unpluginUdixioTheme,
171
- y as variant,
172
- E as vibrantVariant,
171
+ F as variant,
172
+ G as vibrantVariant,
173
173
  vitePlugin,
174
174
  webpackPlugin
175
175
  };
@@ -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,WAwBF,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.12",
3
+ "version": "2.1.14",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -78,7 +78,6 @@ export const createMinContrastToneAdjuster = (
78
78
  const baseTone = (colors.get(selfKey) as ColorFromPalette).options.tone;
79
79
 
80
80
  let selfTone = baseTone;
81
- console.log('contrast ratio2', referenceTone, selfTone);
82
81
  if (Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
83
82
  const ratio = calculateToneAdjustmentPercentage(
84
83
  referenceTone,
@@ -101,7 +100,7 @@ export const udixioVariant: Variant = variant({
101
100
  }),
102
101
  secondary: ({ sourceColor }) => ({
103
102
  hue: sourceColor.hue,
104
- chroma: sourceColor.chroma / 1.4,
103
+ chroma: sourceColor.chroma * 0.5,
105
104
  }),
106
105
  tertiary: ({ sourceColor }) => ({
107
106
  hue: getRotatedHue(
@@ -209,15 +208,9 @@ export const udixioVariant: Variant = variant({
209
208
  [colorContainerKey]: {
210
209
  palette: () => palettes.get(colorKey),
211
210
  tone: () => {
212
- if (ctx.variant.name === 'vibrant') {
213
- return ctx.isDark
214
- ? tMinC(palettes.get(colorKey), 30, 40)
215
- : tMaxC(palettes.get(colorKey), 84, 90);
216
- } else if (ctx.variant.name === 'expressive') {
217
- return ctx.isDark ? 15 : tMaxC(palettes.get(colorKey), 90, 95);
218
- } else {
219
- return ctx.isDark ? 25 : 90;
220
- }
211
+ return ctx.isDark
212
+ ? tMinC(palettes.get(colorKey), 35, 93)
213
+ : tMaxC(palettes.get(colorKey), 0, 90);
221
214
  },
222
215
  isBackground: true,
223
216
  background: () => highestSurface(ctx, colors),
@@ -592,7 +585,9 @@ export const udixioVariant: Variant = variant({
592
585
  secondaryContainer: {
593
586
  palette: () => palettes.get('secondary'),
594
587
  tone: () => {
595
- return ctx.isDark ? 25 : 90;
588
+ return ctx.isDark
589
+ ? tMinC(palettes.get('secondary'), 35, 93)
590
+ : tMaxC(palettes.get('secondary'), 0, 90);
596
591
  },
597
592
  isBackground: true,
598
593
  background: () => highestSurface(ctx, colors),