codexly-ui 0.7.3 → 0.7.4

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.
@@ -12,8 +12,8 @@
12
12
  resolveColor().border by replacing "border-" with "border-t-" at runtime. */
13
13
  @source inline("{bg,text,border,border-t,hover:bg,hover:text,hover:border,focus:border,focus-within:border,focus-visible:ring}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}");
14
14
 
15
- /* hoverBgMuted: hover:bg-{c}-{s}/10 */
16
- @source inline("hover:bg-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/10");
15
+ /* hoverBgMuted / bgMuted: {hover:,}bg-{c}-{s}/10 */
16
+ @source inline("{hover:bg,bg}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/10");
17
17
 
18
18
  /* focus/focus-within ring: focus:ring-{c}-{s}/20, focus-within:ring-{c}-{s}/20 */
19
19
  @source inline("{focus:ring,focus-within:ring}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/20");
@@ -49,6 +49,7 @@ function resolveColor(input) {
49
49
  // ── New semantic tokens ─────────────────────────────────────────────────
50
50
  bg: `bg-${c}-${s}`,
51
51
  bgSubtle: `bg-${c}-${subtleS}`,
52
+ bgMuted: `bg-${c}-${s}/10`,
52
53
  text: textOn,
53
54
  textSubtle: `text-${c}-${s}`,
54
55
  border: `border-${c}-${s}`,
@@ -91,6 +92,7 @@ function resolveColor(input) {
91
92
  const WHITE_TOKENS = {
92
93
  bg: 'bg-white',
93
94
  bgSubtle: 'bg-white/10',
95
+ bgMuted: 'bg-white/10',
94
96
  text: 'text-gray-900',
95
97
  textSubtle: 'text-white',
96
98
  border: 'border-white',
@@ -9697,11 +9699,10 @@ class ClxMenuComponent {
9697
9699
  const geom = this.collapsed() ? NAV_ITEM_COLLAPSED : NAV_ITEM_L1;
9698
9700
  const t = resolveColor(this._color());
9699
9701
  const typography = resolveNavZoneTypography(this._resolved());
9700
- // Active state reuses the same light hover tint (just without the `hover:` pseudo-class)
9701
- // instead of the darker bgSubtle token, so selected and hovered read as the same shade.
9702
- const activeBg = t.hoverBgMuted.replace('hover:', '');
9702
+ // Active state reuses the same light tint as hover (bgMuted) instead of the darker
9703
+ // bgSubtle token, so selected and hovered read as the same shade.
9703
9704
  if (isActive) {
9704
- return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${activeBg} rounded-lg`;
9705
+ return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${t.bgMuted} rounded-lg`;
9705
9706
  }
9706
9707
  return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.hoverBgMuted} rounded-lg`;
9707
9708
  }