Remix-Design / RemixIcon

Open source neutral style icon system
https://remixicon.com
Apache License 2.0
6.48k stars 468 forks source link

Icons not rendering at all, am I missing something? #767

Open rust-floppy opened 3 months ago

rust-floppy commented 3 months ago

I hopped up to https://remixicon.com, grabbed the npm install from the top right corner, installed it, grabbed myself an arrow(), pasted it into my blade (using Laravel), and it's just not working, nothing is showing up.

I remember using remixicons for some other projects, and I did the same things I do right now. Am I missing something? package.json: "remixicon": "^4.2.0"

rust-floppy commented 3 months ago

Found the cause. On the website, it only says to install via npm, but says nothing about importing the css into the main js file. image

Would be nice if you could include the import on the site too, as you did here, this was noobs like me get confused and can't get it to work without coming to the github page (and it is a very important information too, tbh).

Note: If you'd like to use Remix Icon with a CDN, you can skip this installation step.

npm install remixicon --save
import 'remixicon/fonts/remixicon.css'
import CSS to your main.js
xiaochunjimmy commented 3 months ago

Thank you for your suggestion, we will carefully consider it.