/retool-tutorials

How to use custom icons in Retool?

Learn how to seamlessly integrate and customize custom icons in Retool applications with this comprehensive step-by-step guide, enhancing your project's visual appeal.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Retool apps with your growth in mind.

Book a free No-Code consultation

How to use custom icons in Retool?

 

Using Custom Icons in Retool

 

Integrating custom icons into your Retool applications can significantly enhance their visual appeal and usability. Below is a step-by-step guide to help you incorporate custom icons into your Retool project efficiently.

 

Requirements

 

  • A Retool account with access to create and modify applications.
  • Access to a repository of custom icons or SVG files that you want to use.
  • Basic understanding of Retool UI components and how they are manipulated within the platform.

 

Uploading Custom Icons

 

  • First, ensure your custom icons are in a web-compatible format, such as SVG or PNG, for consistent rendering across different devices.
  • Navigate to the "Media" section in Retool's left sidebar, where you can upload your assets.
  • Click on "Upload" and select the icon files from your local storage. Note the file path or URL generated by Retool upon upload, as you will need it to reference the icons later.

 

Incorporating Icons into Components

 

  • Select the component(s) where you want to integrate the custom icons. Common components include Buttons, Containers, and Text Boxes.
  • In the properties panel of the selected component, look for the "Icon" option. This option may change depending on component types.
  • If you're inserting an icon into a Button component, click on the "Add icon" button or enter the URL of your uploaded icon into the "Custom icon" field.

 

Customizing Icon Appearance

 

  • Once your icon is integrated, adjust its appearance using component-specific style settings available in Retool.
  • You can modify icon size directly within Retool's UI by specifying the width and height dimensions.
  • Change the icon's color by specifying CSS styles or using Retool’s native color picker available in the component's style settings.

 

Using SVGs with Custom Code

 

  • For more advanced customization, including animations or interactions, you might want to use inline SVGs within a custom component or HTML element.
  • Add an HTML component to your Retool application where you want the SVG to appear.
  • Paste your SVG code directly into the HTML content editor, allowing custom modifications such as dynamic styling using JavaScript if necessary.

 

Configuring Dynamic Icons

 

  • Utilize Retool's JavaScript tool to dynamically change icons based on user interaction or data changes.
  • Bind component properties like the source or visibility of icons to JavaScript queries or data source variables.
  • For example, you can make an icon change upon a button click by setting up an event handler that alters the icon's URL based on defined conditions.

 

Verifying the Integration

 

  • Once your icons are set up, it's important to preview your Retool application to ensure everything looks correct.
  • Use the preview function to navigate through the application, checking for any inconsistencies in how icons render across different layers and interfaces.

 

Deploying the Application

 

  • When satisfied with the results, proceed to deploy your Retool application with the integrated custom icons.
  • Ensure all assets, particularly icons, are accessible and appropriately referenced in the deployed environment.
  • Conduct final testing using different devices to confirm that icons render correctly and consistently across all platforms.

 

By following this guide, you can seamlessly integrate custom icons into your Retool projects, enhancing the aesthetic quality and user interaction within your applications. Remember to thoroughly test across various devices and platforms to ensure consistent icon rendering and performance.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022