Welcome to the MastorsCDN Text Utility Classes documentation. These classes allow you to apply text colors, variations, shadows, hover effects, and font sizes to your HTML elements. Below is a list of all available color names, followed by detailed examples.
Black,
Silver,
Gray,
White,
Maroon,
Red,
Purple,
Fuchsia,
Green,
Lime,
Olive,
Yellow,
Navy,
Blue,
Teal,
Aqua,
AliceBlue,
AntiqueWhite,
Aquamarine,
Azure,
Beige,
Bisque,
BlanchedAlmond,
BlueViolet,
Brown,
Burlywood,
CadetBlue,
Chartreuse,
Chocolate,
Coral,
CornflowerBlue,
Cornsilk,
Crimson,
Cyan,
DarkBlue,
DarkCyan,
DarkGoldenrod,
DarkGray,
DarkGreen,
DarkKhaki,
DarkMagenta,
DarkOliveGreen,
DarkOrange,
DarkOrchid,
DarkRed,
DarkSalmon,
DarkSeaGreen,
DarkSlateBlue,
DarkSlateGray,
Dark-turquoise,
DarkViolet,
DeepPink,
DeepSkyBlue,
DimGray,
DodgerBlue,
Firebrick,
FloralWhite,
ForestGreen,
Gainsboro,
GhostWhite,
Gold,
Goldenrod,
GreenYellow,
Honeydew,
HotPink,
IndianRed,
Indigo,
Ivory,
Khaki,
Lavender,
LavenderBlush,
LawnGreen,
LemonChiffon,
LightBlue,
LightCoral,
LightCyan,
LightGoldenrodYellow,
LightGray,
LightGreen,
LightPink,
LightSalmon,
LightSeaGreen,
LightSkyBlue,
LightSlateGray,
LightSteelBlue,
LightYellow,
LimeGreen,
Linen,
MediumAquamarine,
MediumBlue,
MediumOrchid,
MediumPurple,
MediumSeaGreen,
MediumSlateBlue,
MediumSpringGreen,
MediumTurquoise,
MediumVioletRed,
MidnightBlue,
MintCream,
MistyRose,
Moccasin,
NavajoWhite,
OldLace,
OliveDrab,
Orange,
OrangeRed,
Orchid,
PaleGoldenrod,
PaleGreen,
PaleTurquoise,
PaleVioletRed,
PapayaWhip,
PeachPuff,
Peru,
Pink,
Plum,
PowderBlue,
RosyBrown,
RoyalBlue,
SaddleBrown,
Salmon,
SandyBrown,
SeaGreen,
SeaShell,
Sienna,
SkyBlue,
SlateBlue,
SlateGray,
Snow,
SpringGreen,
SteelBlue,
Tan,
Thistle,
Tomato,
Turquoise,
Violet,
Wheat,
WhiteSmoke,
YellowGreen,
RebeccaPurple,
Magenta,
Orangered,
Dark,
LightDark,
DarkDark,
VeryDarkGray,
OffBlack,
CCC
| Preview | Class Name | Description | HTML Declaration | Copy |
|---|---|---|---|---|
Basic Text Colors |
||||
| Apply solid text colors using color names from the list above. | ||||
| Red Text | .text-Red |
Sets the text color to red. |
|
|
| BlueViolet Text | .text-BlueViolet |
Sets the text color to blue-violet. |
|
|
Text Color Variations |
||||
| Use numbered suffixes (e.g., -100, -900) for lighter or darker shades. Numbers range from 100 (lightest) to 900 (darkest). | ||||
| Light Green Text | .text-Green-300 |
A lighter shade of green text. |
|
|
| Dark Purple Text | .text-Purple-700 |
A darker shade of purple text. |
|
|
Important Text Colors |
||||
| Add an "i" suffix (e.g., .text-Teali) for important states with !important priority. | ||||
| Teal (Important) | .text-Teali |
A vivid teal text color with priority. |
|
|
Hover Text Colors |
||||
| Use the "hov-" prefix to change text color on hover. | ||||
| Hover Orchid Text | .text-hov-Orchid:hover |
Changes text to orchid on hover. |
|
|
Text Shadows |
||||
| Apply shadow effects with "shad-" or "shadow-" prefixes (interchangeable). | ||||
| Coral Shadow Text | .text-shad-Coral or .text-shadow-Coral |
Coral text with a shadow effect. |
|
|
Hover Text Shadows |
||||
| Use "shad-hov-" or "shadow-hov-" prefixes for shadow effects on hover. | ||||
| SkyBlue Shadow on Hover | .text-shadow-hov-SkyBlue:hover |
A sky blue shadow effect on hover. |
|
|
Font Size Utilities |
||||
| Apply font sizes with named classes (e.g., .text-s, .text-xl) or numeric classes (e.g., .text-10 for 1rem). | ||||
| Extra Large Text | .text-xl |
Sets font size to 1.8rem. |
|
|
Basic Text Colors |
||||
| Apply solid text colors using color names from the list above. | ||||
| Red Text | .text-Red |
Sets the text color to red. |
|
|
| BlueViolet Text | .text-BlueViolet |
Sets the text color to blue-violet. |
|
|
Text Color Variations |
||||
| Use numbered suffixes (e.g., -100, -900) for lighter or darker shades. Numbers range from 100 (lightest) to 900 (darkest). | ||||
| Light Green Text | .text-Green-300 |
A lighter shade of green text. |
|
|
| Dark Purple Text | .text-Purple-700 |
A darker shade of purple text. |
|
|
Important Text Colors |
||||
| Add an "i" suffix (e.g., .text-Teali) for important states with !important priority. | ||||
| Teal (Important) | .text-Teali |
A vivid teal text color with priority. |
|
|
Hover Text Colors |
||||
| Use the "hov-" prefix to change text color on hover. | ||||
| Hover Orchid Text | .text-hov-Orchid:hover |
Changes text to orchid on hover. |
|
|
Text Shadows |
||||
| Apply shadow effects with "shad-" or "shadow-" prefixes (interchangeable). | ||||
| Coral Shadow Text | .text-shad-Coral or .text-shadow-Coral |
Coral text with a shadow effect. |
|
|
Hover Text Shadows |
||||
| Use "shad-hov-" or "shadow-hov-" prefixes for shadow effects on hover. | ||||
| SkyBlue Shadow on Hover | .text-shadow-hov-SkyBlue:hover |
A sky blue shadow effect on hover. |
|
|
Text Decorations |
||||
| Apply text decoration styles such as underline, overline, and line-through, including variations like dotted, dashed, double, and wavy. | ||||
| Underlined Text | .text-u or .text-underline |
Underlines the text. |
|
|
| Overlined Text | .text-o or .text-overline |
Adds an overline to the text. |
|
|
| Line-Through Text | .text-line-through |
Strikes through the text. |
|
|
| Dotted Underline | .text-dotted |
Underlines the text with a dotted line. |
|
|
| Wavy Underline | .text-wavy |
Underlines the text with a wavy line. |
|
|
| Underline and Overline | .text-u-overline |
Applies both underline and overline. |
|
|
Hover Text Decorations |
||||
| Use the "hov-" prefix to apply text decorations on hover. | ||||
| Underline on Hover | .text-hov-u:hover |
Underlines the text on hover. |
|
|
| Dotted on Hover | .text-hov-dotted:hover |
Applies a dotted underline on hover. |
|
|
Line Height Utilities |
||||
| Adjust line height with classes like .text-lh-{value} or .line-height-{value}. Values include 00 (0), 05 (0.5), 10 (1), 15 (1.5), 20 (2), 25 (2.5), 30 (3). Add "i" suffix for !important. | ||||
| Line Height 1.5 | .text-lh-15 |
Sets line height to 1.5. |
|
|
| Line Height 2 | .text-line-height-20 |
Sets line height to 2. |
|
|
Text Ellipsis Utilities |
||||
| Truncate text with ellipsis after a specified number of lines (1-10) using .text-dotted-{n}. | ||||
| This is a long text that will truncate | .text-dotted-1 |
Truncates text to 1 line with ellipsis. |
|
|
| Longer truncates | .text-dotted-2 |
Truncates text to 2 lines with ellipsis. |
|
|
Text Alignment |
||||
| Align text using classes like .text-left, .text-center, .text-right, etc. | ||||
| Left Aligned | .text-left |
Aligns text to the left. |
|
|
| Centered Text | .text-center |
Centers the text. |
|
|
| Justified text spans the width | .text-justify |
Justifies the text. |
|
|
Font Styles |
||||
| Apply font styles like italic, normal, or oblique. | ||||
| Italic Text | .text-italic or .text-i |
Sets font style to italic. |
|
|
| Oblique Text | .text-oblique |
Sets font style to oblique. |
|
|
Font Weights |
||||
| Adjust font weight with named classes (e.g., .text-bold) or numeric classes (e.g., .text-700). | ||||
| Bold Text | .text-bold or .text-b |
Sets font weight to bold. |
|
|
| Weight 600 | .text-600 |
Sets font weight to 600. |
|
|
Additional Text Properties |
||||
| Modify text transform, word break, white space, and text overflow. | ||||
| Uppercase Text | .text-uppercase |
Transforms text to uppercase. |
|
|
| No Wrap Text | .text-nowrap |
Prevents text from wrapping. |
|
|
.text-ellipsis |
Truncates text with an ellipsis. |
|
||
| Mandatory Field | .star |
Adds a red asterisk after the text. |
|
|
Font Size Utilities |
||||
| Apply font sizes with named classes (e.g., .text-s, .text-xl) or numeric classes (e.g., .text-10 for 1rem). Numeric sizes range from 0 to 500 (0rem to 50rem). | ||||
| Extra Large Text | .text-xl |
Sets font size to 1.8rem. |
|
|
| 2.5rem Text | .text-25 |
Sets font size to 2.5rem. |
|
|