Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to useg FontAwesome in custom script

I installed font-awesome via npm:

 

npm install font-awesome --save

And import less file to visual.less

@import(less) "node_modules/font-awesome/css/font-awesome.css";

When add <i class="fa fa-search"></i>  to html. icon isn't display;

when add 

.twitter {
  .fa-icon;
  .fab;

  &:before {
    content: @fa-var-twitter;
  }
}

I have error on fa-icon, fab,  @fa-var-twitter

 

 

Also, try to use this guide https://fontawesome.com/how-to-use/on-the-web/using-with/less

but the icon still not display.

 

How to add font-awesome?

What is the best way to install them (npm or download manually)?

 

 

3 REPLIES 3
v-evelk
Microsoft Employee
Microsoft Employee

Hello,

 

To use such things inside a visual code, your visual must be build on webpack basis that is supported only with beta version of tools.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Anonymous
Not applicable

Thanks. 

Would all features from API 2.3 or new 2.5 work in beta version?

For sure.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors