Color
By default, all icons have the color value: currentColor. This keyword uses the element's computed text color value to represent the icon color.
Read more about currentColor on MDN.
Adjust the color using the color attribute
The color can be adjusted by passing the color attribute to the element.
<!doctype html> <html> <body> <i data-ycloud="smile" color="#3e9392" ></i> <script src="index.js"></script> </body> </html>
Using parent elements text color value
Because the color of ycloud icons uses currentColor, the color of the icon depends on the computed color of the element, or it inherits it from its parent.
For example, if a parent element's color value is #fff and one of the children is a ycloud icon, the color of the icon will be rendered as #fff. This is browser native behavior.
<!doctype html> <html> <body> <button style="color: white"> <i data-ycloud="thumbs-up"></i> Like </button> <script src="index.js"></script> </body> </html>