codexly-ui 0.1.6 → 0.1.8

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.
@@ -42,8 +42,6 @@
42
42
  /* ── Theme accents (overridden dynamically by ClxThemeService) ── */
43
43
  --clx-secondary: #64748b; /* slate-500 */
44
44
  --clx-secondary-light: #f1f5f9; /* slate-100 */
45
- --clx-text-base: #64748b; /* slate-500 */
46
- --clx-text-base-light: #f1f5f9; /* slate-100 */
47
45
  }
48
46
 
49
47
  /* ── Dark theme ───────────────────────────────────────────────────────────── */
@@ -95,6 +93,4 @@
95
93
  --color-clx-primary-light: var(--clx-primary-light);
96
94
  --color-clx-secondary: var(--clx-secondary);
97
95
  --color-clx-secondary-light: var(--clx-secondary-light);
98
- --color-clx-text-base: var(--clx-text-base);
99
- --color-clx-text-base-light: var(--clx-text-base-light);
100
96
  }
@@ -402,7 +402,7 @@ class ClxThemeService {
402
402
  const cfg = this._config();
403
403
  this._applyColorVar('--clx-primary', '--clx-primary-light', cfg.primaryColor);
404
404
  this._applyColorVar('--clx-secondary', '--clx-secondary-light', cfg.secondaryColor);
405
- this._applyColorVar('--clx-text-base', '--clx-text-base-light', cfg.textColor);
405
+ this._applyTextColor(cfg.textColor, this.isDark());
406
406
  });
407
407
  effect(() => {
408
408
  if (!this._isBrowser)
@@ -434,6 +434,19 @@ class ClxThemeService {
434
434
  document.documentElement.style.setProperty(lightVarName, resolvePaletteHex(color, 100));
435
435
  }
436
436
  }
437
+ _applyTextColor(input, dark) {
438
+ if (!input)
439
+ return;
440
+ const { color } = parseColorInput(input);
441
+ const shades = dark
442
+ ? { text: 100, label: 300, muted: 400, subtle: 500, faint: 600 }
443
+ : { text: 900, label: 600, muted: 500, subtle: 400, faint: 300 };
444
+ document.documentElement.style.setProperty('--clx-text', resolvePaletteHex(color, shades.text));
445
+ document.documentElement.style.setProperty('--clx-text-label', resolvePaletteHex(color, shades.label));
446
+ document.documentElement.style.setProperty('--clx-text-muted', resolvePaletteHex(color, shades.muted));
447
+ document.documentElement.style.setProperty('--clx-text-subtle', resolvePaletteHex(color, shades.subtle));
448
+ document.documentElement.style.setProperty('--clx-text-faint', resolvePaletteHex(color, shades.faint));
449
+ }
437
450
  _applyFont(family) {
438
451
  const option = CLX_FONT_CATALOG.find(f => f.value === family);
439
452
  if (!option)
@@ -5778,7 +5791,7 @@ class ClxModalComponent {
5778
5791
  </div>
5779
5792
 
5780
5793
  <!-- Footer -->
5781
- <div class="flex items-center justify-end gap-3 px-6 py-4 border-t border-clx-border-soft shrink-0 bg-clx-surface-2">
5794
+ <div class="flex items-center justify-end gap-3 px-6 py-4 border-t border-clx-border-soft shrink-0">
5782
5795
  @if (_hasBuiltInButtons()) {
5783
5796
  @if (showCancelButton()) {
5784
5797
  <button
@@ -5839,7 +5852,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
5839
5852
  </div>
5840
5853
 
5841
5854
  <!-- Footer -->
5842
- <div class="flex items-center justify-end gap-3 px-6 py-4 border-t border-clx-border-soft shrink-0 bg-clx-surface-2">
5855
+ <div class="flex items-center justify-end gap-3 px-6 py-4 border-t border-clx-border-soft shrink-0">
5843
5856
  @if (_hasBuiltInButtons()) {
5844
5857
  @if (showCancelButton()) {
5845
5858
  <button