Font Awesome Sun Icon (Solar, Weather, Brightness)

The Font Awesome Sun Icon is used to indicate Solar, Weather, Brightness. This icon has 2 version : fas fa-sun for version 5 and fa-solid fa-sun for version 6 . It is used represents the star that shines in the sky during the day, providing heat and light to the Earth. This icon is also known as “fa-Sun .


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>
Try it Yourself

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'}" />
Try it Yourself

FA Regular sun Version 6.X

px Enter Size
Color Code
HTML
 <i class="fa-regular fa-sun"></i> 

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.

Icon -
<i class='fas fa-sun'></i>
Icon Code -
fas fa-sun

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-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">            
            
Related Icons

Advertisements



Advertisements



Looking For More Icons?