Font Awesome Moon Icon (Night, Orbit, Satellite)

In this tutorial we will learn how to use Font Awesome Moon Icon. It used represents satellite, weather to the object that shines in the night sky . If you want to edit or customize this moon icon, utilize the 'Try It' editor to change its color, size, and animation.


Fontawesome Version 5.X

moon

<i class='fas fa-moon'></i>

moon

<i class='fas fa-moon' style='color: white'></i>

moon

<i class='fas fa-moon' style='color: red'></i>

moon

<i class='fas fa-moon' style='color: blue'></i>

moon

<i class='fas fa-moon' style='color: #f3da35'></i>
Try it Yourself

Fontawesome Version 6.X

moon

Web

<i class='fa-solid fa-moon'></i>

React

<FontAwesomeIcon icon="fa-solid fa-moon" />

Vue

<font-awesome-icon icon="fa-solid fa-moon" />

moon

Web

<i class='fa-solid fa-moon' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-moon" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-moon" :style="{color: 'white'}" />

moon

Web

<i class='fa-solid fa-moon' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-moon" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-moon" :style="{color: 'red'}" />

moon

Web

<i class='fa-solid fa-moon' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-moon" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-moon" :style="{color: 'blue'}" />

moon

Web

<i class='fa-solid fa-moon' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-moon" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-moon" :style="{color: '#f3da35'}" />
Try it Yourself

FA Regular moon Version 6.X

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

How to add Font Awesome moon Icon ?

Font Awesome Icon fas fa moon 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-moon'></i>
Icon Code -
fas fa-moon

HTML Code

Get complete html code for icon moon

                    
                    <!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-moon'></i>
                        </body>
                    </html>                    

Tags

weather,night,Orbit,Satellite,Space

Change Font Awesome Icon Moon 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-moon blue-color'></i> <i class='fas fa-moon green-color'></i> <i class='fas fa-moon teal-color'></i> <i class='fas fa-moon yellow-color'></i> <i class='fas fa-moon 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

Moon Icon Font Awesome - FAQs

⭐What is the Font Awesome Moon Icon code?

Icon Code is - fas fa-moon.

⭐ What does the fas fa-moon Icon mean?

fas fa-moon is the Icon code of Font Awesome Moon.

⭐ Can we add fas fa-moon Icon in different sizes?

Yes, you can Icon of fas fa-moon in various pixels.

⭐ How to add a Blue color Font Awesome Moon Icon?

Add the blue color Moon icon of the font awesome by using code: fas fa-moon style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Moon?

To change the Moon icon to white color use code: fas fa-moon style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?