Skip to content

fix(widget): bump @deepgram/ui to ^0.1.4 for dark-mode utility-var fix#57

Merged
lukeocodes merged 1 commit into
mainfrom
fix/bump-deepgram-ui-to-0.1.4
May 11, 2026
Merged

fix(widget): bump @deepgram/ui to ^0.1.4 for dark-mode utility-var fix#57
lukeocodes merged 1 commit into
mainfrom
fix/bump-deepgram-ui-to-0.1.4

Conversation

@lukeocodes
Copy link
Copy Markdown
Member

Summary

Picks up deepgram/ui#37 so the widget UMD ships with Tailwind v4 utility classes that actually follow [data-dg-scheme="dark"] overrides.

Why this needs a manual PR

The renovate.json on this repo sets minimumReleaseAge: "11 days", so renovate would sit on @deepgram/ui@0.1.4 until ~May 22 before proposing the bump. The 11-day soak is correct for third-party deps but the wrong shape for shipping our own fix end-to-end through the agent stack.

The bug it unblocks downstream

@deepgram/ui ships Tailwind v4 with prefix(dg), so utility classes like .dg:bg-card read var(--dg-color-card). The @theme block declares the public token as --color-card (Tailwind auto-pairs it to --dg-color-card at root), but every dark-mode override block only touched the unprefixed namespace — so in dark mode the utilities kept resolving to the light-mode #f3f4f6 (visible as near-white mic/speaker toggles and a blown-out textarea border inside the widget). 0.1.4 aliases every --dg-color-* to var(--color-*) on [data-dg-agent], so dark-mode and external theme overrides on the public --color-* API propagate through to the utilities.

Inside this PR, the rebuilt dist/widget.umd.js now contains both --dg-color-card: #f3f4f6 (the light-mode default Tailwind emits from @theme) and --dg-color-card: var(--color-card) scoped to [data-dg-agent], so consumers in dark mode get the dark card colour through the alias.

Test plan

  • bun install — lockfile updated, no peer warnings
  • bun run --filter '@deepgram/agents-widget' build — clean, UMD 390.83 KB (was 389.86 KB on CDN — alias block adds ~1 KB)
  • bun run --filter '@deepgram/agents-widget' test — 29 pass / 0 fail
  • Verified rebuilt UMD contains --dg-color-card: var(--color-card) alias and dark-mode override on [data-dg-agent][data-dg-scheme="dark"] still sets --color-card: #222228 (so utilities resolve through the alias to the dark value)

Unblocks

@lukeocodes lukeocodes merged commit 2bc3118 into main May 11, 2026
2 checks passed
@lukeocodes lukeocodes deleted the fix/bump-deepgram-ui-to-0.1.4 branch May 11, 2026 17:38
lukeocodes pushed a commit that referenced this pull request May 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.7](agents-widget-v0.1.6...agents-widget-v0.1.7)
(2026-05-11)


### Bug Fixes

* **widget:** bump @deepgram/ui to ^0.1.4 for dark-mode utility-var fix
([#57](#57))
([2bc3118](2bc3118))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant