Typography and Font Style Widgets
Overview
This page covers the classnames used for managing typography and font styles in your application. These widgets allow you to control the appearance of text, including font size, alignment, weight, line height, and more. Typography is essential for creating a readable and visually appealing user interface. Below, you will find detailed information on each widget’s classnames, including deprecated versions (if applicable) and current classnames to ensure your application remains up-to-date.
1. Font Style
Description: The font style widget allows you to control the appearance of text, including font weight, style (italic, normal), and decoration (underline, strike-through). It is commonly used for headings, paragraphs, and other text elements.
Deprecated Classnames:
tgl-container
item_1-2
New Classnames:
multi-toggle--cs
multi-toggle-btns--cs
Sample CSS:
Sample HTML:
2. Text Alignment
Description: The text alignment widget controls the horizontal alignment of text within its container, including options for left, right, center, and justified alignment.
Deprecated Classnames:
item_1-2
New Classnames:
text-align-left--cs
text-align-center--cs
text-align-right--cs
text-align-justify--cs
Sample CSS:
Sample HTML:
3. Line Height
Description: The line height widget controls the space between lines of text, improving readability or adjusting text for different designs. It is commonly used in paragraphs and headings.
Deprecated Classnames:
item_1-2
New Classnames:
line-height-1--cs
line-height-1-5--cs
line-height-2--cs
Sample CSS:
Sample HTML:
4. Font Size
Description: The font size widget controls the size of text. This is a crucial aspect of typography, affecting readability and the visual hierarchy of your content.
Deprecated Classnames:
item_1-2
New Classnames:
font-size-sm--cs
font-size-md--cs
font-size-lg--cs
font-size-xl--cs
Sample CSS:
Sample HTML:
5. Letter Spacing
Description: The letter spacing widget allows you to control the spacing between characters in text. It is often used for headings or special text elements to create a unique design.
Deprecated Classnames:
item_1-2
New Classnames:
letter-spacing-sm--cs
letter-spacing-md--cs
letter-spacing-lg--cs
Sample CSS:
Sample HTML:
6. Text Decoration
Description: The text decoration widget allows you to add or remove decorative elements like underlines, strike-throughs, or overlines to text elements.
Deprecated Classnames:
item_1-2
New Classnames:
text-decoration-underline--cs
text-decoration-line-through--cs
text-decoration-none--cs
Sample CSS:
Sample HTML:
7. Font Weight
Description: The font weight widget adjusts the thickness or boldness of text, allowing you to emphasize certain parts of your content, such as headings or important information.
Deprecated Classnames:
item_1-2
New Classnames:
font-weight-bold--cs
font-weight-normal--cs
font-weight-light--cs
Sample CSS:
Sample HTML:
8. Text Transform
Description: The text transform widget allows you to control the capitalization of text, converting it to uppercase, lowercase, or capitalized (first letter uppercase).
Deprecated Classnames:
item_1-2
New Classnames:
text-transform-uppercase--cs
text-transform-lowercase--cs
text-transform-capitalize--cs
Sample CSS:
Sample HTML:
This page consolidates all classnames related to typography and font styling. For deprecated classnames, make sure to transition to the new ones.
For more detailed implementation on how to customize form and input widgets, refer to the Customizing Sidebar Widgets section on the Sidebar Widgets Classnames page.
Last updated