![]() |
VOOZH | about |
Spectre colors is one of the most useful utilities, there are two types of things where we can use colors. Like we can set colors for the text and we can set color for the background.
Colors are used to style your component, sometimes we need to color the text or sometimes we need to color the background.
Spectre Colors class:
Syntax:
// For text color <element class="text-colorname">...</element> // For background color <element class="bg-colorname">...</element>
Below example illustrate the Spectre Colors:
Example:
Output:
Reference: https://picturepan2.github.io/spectre/utilities/colors.html