---json { "description": "The text component lets you apply text typographic effects on one ore more paragraph.", "page_id": "n0r56wieo6820sjbdrnmk", "title": "ComboStrap - Text component - Apply text typographic effects" } --- ====== ComboStrap UI - Text ====== ===== About ===== ''text'' is a [[docs:content:typo|typographic]] component that permits styling one or several paragraphs at once. ===== Syntax ===== First paragraph Second paragraph where: * [[docs:styling:type|type]] can take the values: * ''lead'': It makes a paragraph stand out by setting a bigger font-size and weight * ''h1 to h6'': when you want to match the font styling of a [[docs:content:heading|heading]]. * ''custom class'' that you have created in your [[:docs:theme:theme|theme]]. * [[#line-spacing]] sets the space between the lines of a paragraph. * [[docs:styling:text-color|color]] can take all [[docs:styling:color|color values]] and the [[#color|specific text colors]]: * ''body'': the color of the body * ''muted'' : light gray * ''black-50'' : 50 black * ''white-50'' : 50 white * or any [[docs:content:typo|typographic attributes]] (font size, font weight, ...) ===== Example ===== ==== Lead ==== Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. **versus:** Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ==== Heading style ==== A text that looks like an heading level 1 * Output: ==== Line-Spacing ==== [[docs:styling:line-spacing|line-spacing]] is a styling attribute that lets you define the height between each line inside a paragraph. Example: **Extra-small line space**. This is a long paragraph written to show how the line-height of an element is affected. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. **Small line space**. This is a long paragraph written to show how the line-height of an element is affected. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. **Medium line space**. This is a long paragraph written to show how the line-height of an element is affected. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. **Large line space**. This is a long paragraph written to show how the line-height of an element is affected. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. * Output: If you want to add space between component, you should use the [[docs:styling:spacing|spacing attribute]] ==== Text-Align ==== [[:docs:styling:align|text alignment]] lets you define where the line of text will be located inside the paragraph. A paragraph is a [[docs:block:block|block]] and takes by default all the available width Example: This line of text is at the **start** of a paragraph (left for a left-to-right language) This line of text is **centered** inside the paragraph block. This line of text is at the **end** of a paragraph (right for a left-to-right language) * Output: Text alignment can also be **screen conditional**. ==== Color ==== This example shows the color values specific to the ''text'' and [[docs:content:itext|itext]] component Text with the body color. Text with the muted color. Text with the black-50 color. Text with the white-50 color.