# Umbraco UI Library Button hover effect missing

**URL:** <https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568>\
**Category:** Questions\
**Tags:** extending, packages, umbraco-ui-builder, v16\
**Created:** [August 25, 2025, 9:24pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568 "2025-08-25T21:24:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DemeSzabolcs](https://forum.umbraco.com/user_avatar/forum.umbraco.com/demeszabolcs/32/1453_2.png) [@DemeSzabolcs](https://forum.umbraco.com/u/DemeSzabolcs)\
**Post date:** [August 25, 2025, 9:24pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/1 "2025-08-25T21:24:58Z")

</div>

I have this button:

```html
<uui-button id="resetButton" type="button" look="primary" color="danger" label="Reset"></uui-button>

```

That I copied from [storybook - Storybook](https://uui.umbraco.com/?path=/docs/uui-button--docs).

Everything works fine, but when I hover over it, there is no effect; the visuals do not change.

I have custom styling, but nothing related to the hover effect, or even to the button.

Any idea why this could happen?

![Animation](https://forum.umbraco.com/uploads/default/original/2X/1/1d18e6f976f5217ee6a29e0e39aa0aaa4517697d.gif)

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [August 26, 2025, 6:47am UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/3 "2025-08-26T06:47:20Z")

</div>

What version of the uui library are you using?

---

<div class="post-metadata">

**Author:** ![jacob](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jacob/32/145_2.png) [@jacob](https://forum.umbraco.com/u/jacob)\
**Post date:** [August 26, 2025, 6:51am UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/4 "2025-08-26T06:51:24Z")

</div>

Make sure you have the **uui-css** package installed and imported the CSS from there. Then append the `.uui-text` class to the body element.

```auto
import '@umbraco-ui/uui-css/dist/uui-css.css'
import '@umbraco-ui/uui-button';

<body class="uui-text uui-font">
  <uui-button id="resetButton" type="button" look="primary" color="danger" label="Reset"></uui-button>
</body>

```

Read more here:

> **[Umbraco UI Library Storybook](https://uui.umbraco.com/?path=%2Fdocs%2Fdesign-css--docs)**
>
> The starting point for working with Umbraco UI Library. A place that holds the documentation, and showcases different use scenarios of our UI components.

---

<div class="post-metadata">

**Author:** ![DemeSzabolcs](https://forum.umbraco.com/user_avatar/forum.umbraco.com/demeszabolcs/32/1453_2.png) [@DemeSzabolcs](https://forum.umbraco.com/u/DemeSzabolcs)\
**Post date:** [August 26, 2025, 6:32pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/5 "2025-08-26T18:32:44Z")

</div>

Thanks, I installed the npm package and imported the CSS and the button, but now I’m getting this error:

```auto
Uncaught (in promise) TypeError: The specifier “@umbraco-ui/uui-css/dist/uui-css.css” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.

```

I forgot to mention that I’m adding this button from a `ts` file’s `UmbLitElement` with `render()`

---

<div class="post-metadata">

**Author:** ![jacob](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jacob/32/145_2.png) [@jacob](https://forum.umbraco.com/u/jacob)\
**Post date:** [August 26, 2025, 7:54pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/6 "2025-08-26T19:54:23Z")

</div>

Oh, if you are already _in the Backoffice_, then you don’t need to add anything extra. I’m wondering if the hover effect may be cancelled out due to the dark-mode theme. The same color is likely set for both normal and hover backgrounds in that theme.

---

<div class="post-metadata">

**Author:** ![DemeSzabolcs](https://forum.umbraco.com/user_avatar/forum.umbraco.com/demeszabolcs/32/1453_2.png) [@DemeSzabolcs](https://forum.umbraco.com/u/DemeSzabolcs)\
**Post date:** [August 26, 2025, 8:14pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/7 "2025-08-26T20:14:09Z")

</div>

Ah yes, it was the dark theme! It says it’s experimental (the dark theme), so yeah, I should’ve expected this.

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [September 25, 2025, 8:14pm UTC](https://forum.umbraco.com/t/umbraco-ui-library-button-hover-effect-missing/5568/8 "2025-09-25T20:14:32Z")

</div>

Closed on September 25, 2025, 8:14pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
