Search Results
Font Awesome Sun Icon (Solar, Weather, Brightness)
Fontawesome Version 5.X
sun
<i class='fas fa-sun'></i>
sun
<i class='fas fa-sun' style='color: white'></i>
sun
<i class='fas fa-sun' style='color: red'></i>
sun
<i class='fas fa-sun' style='color: blue'></i>
sun
<i class='fas fa-sun' style='color: #f3da35'></i>
Fontawesome Version 6.X
sun
Web
<i class='fa-solid fa-sun'></i>
React
<FontAwesomeIcon icon="fa-solid fa-sun" />
Vue
<font-awesome-icon icon="fa-solid fa-sun" />
sun
Web
<i class='fa-solid fa-sun' style='color: white'></i>
React
<FontAwesomeIcon icon="fa-solid fa-sun" style={{color: 'white'}} />
Vue
<font-awesome-icon icon="fa-solid fa-sun" :style="{color: 'white'}" />
sun
Web
<i class='fa-solid fa-sun' style='color: red'></i>
React
<FontAwesomeIcon icon="fa-solid fa-sun" style={{color: 'red'}} />
Vue
<font-awesome-icon icon="fa-solid fa-sun" :style="{color: 'red'}" />
sun
Web
<i class='fa-solid fa-sun' style='color: blue'></i>
React
<FontAwesomeIcon icon="fa-solid fa-sun" style={{color: 'blue'}} />
Vue
<font-awesome-icon icon="fa-solid fa-sun" :style="{color: 'blue'}" />
sun
Web
<i class='fa-solid fa-sun' style='color: #f3da35'></i>
React
<FontAwesomeIcon icon="fa-solid fa-sun" style={{color: '#f3da35'}} />
Vue
<font-awesome-icon icon="fa-solid fa-sun" :style="{color: '#f3da35'}" />
FA Regular sun Version 6.X
How to add Font Awesome sun Icon ?
Font Awesome Icon fas fa sun Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.
HTML Code
Get complete html code for icon sun
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
</head>
<body>
<i class='fas fa-sun'></i>
</body>
</html>
Tags
solar,weather,Sunshine,Brightness,Light
Change Font Awesome Icon Sun Color
Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.
<style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class='fas fa-sun blue-color'></i>
<i class='fas fa-sun green-color'></i>
<i class='fas fa-sun teal-color'></i>
<i class='fas fa-sun yellow-color'></i>
<i class='fas fa-sun red-color'></i>
Output of the above example will be as below-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
Sun Icon Font Awesome - FAQs
⭐What is the Font Awesome Sun Icon code?Icon Code is - fas fa-sun.
⭐ What does the fas fa-sun Icon mean?fas fa-sun is the Icon code of Font Awesome Sun.
⭐ Can we add fas fa-sun Icon in different sizes?Yes, you can Icon of fas fa-sun in various pixels.
⭐ How to add a Blue color Font Awesome Sun Icon?Add the blue color Sun icon of the font awesome by using code: fas fa-sun style='color: blue;'.
⭐ How to make white color icon of a Font Awesome Sun?To change the Sun icon to white color use code: fas fa-sun style='color: white;'.
Advertisements
Advertisements