Open jrutila opened 3 months ago
It doesn't work even with the class i-heroicons:light-bulb
?
No, I tried that already. Updated the reproduction with this, too.
It's kind of normal actually since we removed @egoist/tailwindcss-icons
. Maybe you can leverage aliases to achieve the same result? https://github.com/nuxt/icon?tab=readme-ov-file#icon-customization
I will try the aliasing in the repro env.
I tried it, and it should work. This is the correct way to alias an icon name, now.
export default defineAppConfig({
icon: {
aliases: {
lb: 'heroicons:light-bulb',
},
},
});
The downer is that I can't attach any other tailwind classes into the alias. Do you already have some idea to do it neatly?
Well, the code you wrote above should work without the icon apply.
same here does not work
Environment
Nuxt project info:
Build Modules: -
Version
v2.18.0
Reproduction
https://stackblitz.com/edit/nuxt-ui-ktbnby?file=README.md,app.vue,assets%2Fcss%2Ftailwind.css
Description
Before the
nuxt-icon
rewrite withnuxt-ui
2.18.0 you could write following kind of custom css intoassets/css/tailwind.css
:After 2.18.0 this breaks as the
i-heroicons-light-bulb
class does not exist anymore in that context.Additional context
The goal is to create a custom icon (in this case
i-lb
) that uses existing icon but adds something more necessary, like that scale apply as an example.Logs