@l3mpire/ui 2.5.4 → 2.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l3mpire/ui",
3
- "version": "2.5.4",
3
+ "version": "2.6.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -59,7 +59,7 @@
59
59
  "clsx": "^2",
60
60
  "tailwind-merge": "^3",
61
61
  "@l3mpire/icons": "0.3.5",
62
- "@l3mpire/tokens": "0.5.3"
62
+ "@l3mpire/tokens": "0.5.4"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/react": "^19",
@@ -445,6 +445,19 @@ body {
445
445
  --color-tooltip-default-bg: var(--comp-tooltip-default-bg);
446
446
  --color-tooltip-default-text: var(--comp-tooltip-default-text);
447
447
  --color-tooltip-default-icon: var(--comp-tooltip-default-icon);
448
+ }
449
+
450
+ /*
451
+ * Dark-mode override: tooltip default text must contrast with its inverted bg.
452
+ * In dark mode bg.mainInvert.primary = white, so text needs to be dark.
453
+ * core.text.mainInvert.primary can't be changed (shared by buttons/badges).
454
+ */
455
+ [data-theme="dark"] {
456
+ --comp-tooltip-default-text: var(--grey-white);
457
+ --color-tooltip-default-text: var(--grey-white);
458
+ }
459
+
460
+ @theme inline {
448
461
  --color-tooltip-invert-bg: var(--comp-tooltip-invert-bg);
449
462
  --color-tooltip-invert-text: var(--comp-tooltip-invert-text);
450
463
  --color-tooltip-invert-icon: var(--comp-tooltip-invert-icon);