onu-ui / onu-ui

Bullheaded and lightweight UnoCSS ui library.

Home Page:https://onu.zyob.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icons coloring didnt working on stackblitz example out of box

npdev453 opened this issue · comments

commented

Description

(o-icon coloring is realy seems to be fragile and hard to tune)

image

commented

@wzc520pyfm
Playgroud is dirty, have hidden configuration, files app.vue, vite.config and uno.config are hidden, also if it builded from repo, they have an shadow deps from parent folder.

Code on stackblitz is more looks like starter

So I make only one change, just add to footer two icons with different colors:

 <o-icon o="error" name="i-carbon-moon" class="mr-1"></o-icon>
 <o-icon o="warn" name="i-carbon-moon" class="mr-1"></o-icon>

URL:
https://stackblitz.com/edit/onu-starter-dzjbbx?file=src/components/Footer.vue

ps: Also I got the same error when trying to configure repo first time because use whole starter example from stackblitz

@npdev453 https://onu.zyob.top/guide/install.html#custom-unocss-config You need to inject Onu's presets, then it will works.