
Right click on your favorite Salesforce icon and select “Inspect element“ (if you use firebug, you can use it). Find url for selected icon in Cascading style sheets (the exact technique is hard to describe due to difference in icon styles, web browsers and users’ work technique with HTML and CSS).
Full Answer
What are icons used for in Salesforce?
Standard icons represent entities and objects within Salesforce. Utility icons are used throughout the interface and are SVGs for extensibility. Connected Warning! Error! Utility image. Custom icons are available in Salesforce to represent user created objects.
What is the difference between standard and utility icons in Salesforce?
Doctype icons represent a type of file when a preview or image is unavailable. Standard icons represent entities and objects within Salesforce. Utility icons are used throughout the interface and are SVGs for extensibility. Connected Warning! Error! Utility image Custom icons are available in Salesforce to represent user created objects.
What are doctype and utility icons in Salesforce?
Doctype icons represent a type of file when a preview or image is unavailable. Standard icons represent entities and objects within Salesforce. Utility icons are used throughout the interface and are SVGs for extensibility. Custom icons are available in Salesforce to represent user created objects.
How do I use icons in Lightning components?
Icons can be used inside the body of another component or on their own. You can specify an icon from the Lightning Design System using the icon-name attribute. Here is an example.

How do I use custom icons in Salesforce?
Use simple and flat styling resembling the Salesforce1 icon family....The icon should:Be less than 10k in size.Be 120 x 120 pixels.Be a PNG with a transparent background.Have a resolution of 72 dpi.Not include a color background.Not include outer shadows on the inner icon graphic.
How do I add icons to Salesforce?
In the Details tab, click Edit. Enter the icon URL in Gantt icon....Add a Custom Icon to the GanttClick. then select Setup.Click Object Manager.Click Service Appointment, then click Field Sets.Click Service Lightbox.Drag the Gantt Icon field to the In the Field Set section.Click Save.
How do I use SLDS icons?
Select the icon you want to use from the icons page. Make a note of which category it's in (action, custom, doctype, standard, or utility). Complete the xlink:href attribute by concatenating the category sprite (for example, “standard-sprite”), /svg/symbols.
How do I get LWC icons?
0:522:52Salesforce Icons - Get your LWC or Aura Icons code with a single clickYouTubeStart of suggested clipEnd of suggested clipAnd similarly if i take this bug icon for aura i'll go to a developer console. And i will paste. MyMoreAnd similarly if i take this bug icon for aura i'll go to a developer console. And i will paste. My line here or basically code give this i'll go and press the page. It should show us the bug icon.
How do I change the icon of an object in Salesforce?
Select App Manager Click Edit in the App. Select Utility Item Tab. Remove the Existing Icon and choose the new icon. Click Save Button.
How do you add icons to lightning input?
Please let me know how can I embed a lightning icon inside a lightning:input tag. you simply need to place your input and icon under same div element where this div will hold the class "slds-grid" => this will make them align as grid row elements.
How do I use SVG in Salesforce lightning component?
You can add an SVG resource to your component in two ways. Add it directly to your component's HTML template. Upload the SVG resource as a static resource and import it in your component's JavaScript file. SVG (Scalable Vector Graphics) is an XML-based image format that lets you define lines, curves, shapes, and text.
What is a utility icon?
Utility icons are simple, single-color glyphs that identify labels and actions across form factors.
How use SVG icons in LWC?
There are two ways to include SVG in LWC (Lightning Web Component):...Use SVG using Static ResourceUpload the SVG File in Static Resource. ... Include the Static Resource in Lightning Web Component and append “#id” at the end of Static Resource URL, where id is the id that we added to svg tag in the previous step.More items...•
How do you add icons to lightning input in LWC?
0:2531:46lightning input with icons | Lightning Web Components - YouTubeYouTubeStart of suggested clipEnd of suggested clipSo you can go to command palette by pressing ctrl shift p or command shift p. And here you canMoreSo you can go to command palette by pressing ctrl shift p or command shift p. And here you can search for create lightning web component select this option.
Can we use SLDS in LWC?
We are currently working on a new version of SLDS which better aligns with the shadow DOM restrictions. In the meantime, if you want to use SLDS + LWC standalone you will need to make sure the application runs with @lwc/synthetic-shadow .
Can we change icon color LWC?
LWC has built in custom properties for a lot of components, we can leverage these to apply custom styling to components. For utility icons the custom property to use is --lwc-colorTextIconDefault. This will change the icon color to any HEX color value.
Example Options
Basic Icons Action icons, doctype icons, standard icons, utility icons, and custom icons.
Basic Icons
Action icons represent actions a user can take.
What is lightning icon?
A lightning-icon is a visual element that provides context and enhances usability. Icons can be used inside the body of another component or on their own. You can specify an icon from the Lightning Design System using the icon-name attribute.
Do icons need a description?
Sometimes an icon is decorative and does not need a description. But icons can switch between being decorative or informational based on the screen size. If you choose not to include an alternative-text description, check smaller screens and windows to ensure that the icon is decorative on all formats.
Step 1: Add an Avatar
Replace the code between the <!-- HEADING AREA --> comments with the following:
Verify Step
You’ll be completing this project in your own hands-on org. Click Launch to get started, or click the name of your org to choose a different one.

What Is Material Design?
How Does It Compare?
- If you are familiar with Bootstrap, Foundation, or other responsive web frameworks you will be able to pick up Material Design fairly quickly. They all provide a layout system and components for quickly building a mobile friendly webpage. The key differences are in maturity, prototyping and components provided. As of November 2016, Material Design is fairly new. It was released solel…
Choosing A Flavor
- There are four major flavors which should cover most use cases: Polymer, Angular-Material, MaterializeCSS, and Bootstrap-material-design.
Takeaway
- The Material Design specification is only a guideline to help teach principles and application of good design. Good design is not defined by adherence to a design specification, but by its appropriateness to its audience and goals. Careful consideration of your users’ needs and thoughtful reduction of unnecessary complexity is the only methodology you need to create a w…