Skip to content

fix(ui): generate the create buttons' utilities with the ext prefix - #27

Merged
gnacho merged 1 commit into
mainfrom
fix/issue-26-self-contained-buttons
Sep 13, 2026
Merged

gnacho merged 1 commit into
mainfrom
fix/issue-26-self-contained-buttons

Conversation

@gnacho

@gnacho gnacho commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Closes #26.

The two create buttons (New category and New note) relied on unprefixed Tailwind utilities (shadow-md, duration-150, ease-out, hover:brightness-110, w-full, bg-gradient-to-r and the role gradient stops). Those only worked because the host ships them compiled; if the host changed its Tailwind build they would silently stop applying.

The extension build already emits the same utilities under the SDK ext: prefix (verified: the bundle contains the corresponding .ext\:... rules), so use those and stop depending on the host. The rest of the stylesheet is plain CSS with the host role tokens and does not depend on the host.

Verification:

  • npm run build and vue-tsc --noEmit pass
  • Before/after Playwright comparison of the computed styles (gradient, background, shadow, text colour, duration, timing function, sizes) for both buttons in light and dark mode: 4/4 identical field by field

The two create buttons relied on unprefixed Tailwind utilities (shadow-md,
duration-150, ease-out, hover:brightness-110, w-full, bg-gradient-to-r and the
role gradient stops), which only worked because the host ships them compiled.
If the host changed its Tailwind build they would silently stop applying.

The extension build already emits the same utilities under the SDK's ext
prefix, so use those and stop depending on the host. Computed styles are
unchanged in light and dark mode.

Closes #26
@gnacho
gnacho merged commit f2dd9ca into main Sep 13, 2026
@gnacho
gnacho deleted the fix/issue-26-self-contained-buttons branch September 13, 2026 11:39
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.

Make the create buttons' Tailwind utilities self-contained

1 participant