# Text Typography utilities provide a comprehensive set of font sizes, weights, transforms, and alignment for consistent text styling. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-text--introduction ## Variants documented in Storybook - TextShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-text--textshowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Text. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
A comprehensive reference for typography utilities, including font sizes, line heights, weights, transforms, and more.
Every class from the utility library, categorized for easy access.
Format: ux4g-text-{alignment/transform}
|
font-size-60 (60px)
ux4g-fs-60
|
|
font-size-52 (52px)
ux4g-fs-52
|
|
font-size-40 (40px)
ux4g-fs-40
|
|
font-size-36 (36px)
ux4g-fs-36
|
|
font-size-32 (32px)
ux4g-fs-32
|
|
font-size-28 (28px)
ux4g-fs-28
|
|
font-size-24 (24px)
ux4g-fs-24
|
|
font-size-20 (20px)
ux4g-fs-20
|
|
font-size-18 (18px)
ux4g-fs-18
|
|
font-size-16 (16px)
ux4g-fs-16
|
|
font-size-14 (14px)
ux4g-fs-14
|
|
font-size-12 (12px)
ux4g-fs-12
|
|
font-size-11 (11px)
ux4g-fs-11
|
Format: ux4g-text-{alignment/transform}
|
line-height-80 (80px)
ux4g-lh-80
|
|
line-height-72 (72px)
ux4g-lh-72
|
|
line-height-52 (52px)
ux4g-lh-52
|
|
line-height-44 (44px)
ux4g-lh-44
|
|
line-height-36 (36px)
ux4g-lh-36
|
|
line-height-32 (32px)
ux4g-lh-32
|
|
line-height-28 (28px)
ux4g-lh-28
|
|
line-height-24 (24px)
ux4g-lh-24
|
|
line-height-20 (20px)
ux4g-lh-20
|
|
line-height-18 (18px)
ux4g-lh-18
|
|
line-height-16 (16px)
ux4g-lh-16
|
|
line-height-14 (14px)
ux4g-lh-14
|
Format: ux4g-text-{alignment/transform}
|
font-weight-regular
ux4g-fw-regular
|
|
font-weight-medium
ux4g-fw-medium
|
|
font-weight-semibold
ux4g-fw-semibold
|
|
font-weight-bold
ux4g-fw-bold
|
|
font-weight-d-semibold
ux4g-fw-d-semibold
|
|
font-weight-d-bold
ux4g-fw-d-bold
|
Format: ux4g-text-{alignment/transform}
|
font-family-base
ux4g-ff-base
|
|
font-family-display
ux4g-ff-display
|
Format: ux4g-text-{alignment/transform}
|
text-start
ux4g-text-start
|
|
text-center
ux4g-text-center
|
|
text-end
ux4g-text-end
|
Format: ux4g-text-{alignment/transform}
|
text-lowercase
ux4g-text-lowercase
|
|
text-uppercase
ux4g-text-uppercase
|
|
text-capitalize
ux4g-text-capitalize
|
|
text-none
ux4g-text-none
|
Format: ux4g-text-{alignment/transform}
|
text-underline
ux4g-text-underline
|
|
text-line-through
ux4g-text-line-through
|
|
text-no-underline
ux4g-text-no-underline
|
Format: ux4g-text-{alignment/transform}
|
text-wrap
ux4g-text-wrap
|
|
text-nowrap
ux4g-text-nowrap
|
|
text-break
ux4g-text-break
|
|
text-truncate
ux4g-text-truncate
|
Format: ux4g-text-{alignment/transform}
|
list-none
ux4g-list-none
|
|
list-disc
ux4g-list-disc
|
|
list-decimal
ux4g-list-decimal
|
A comprehensive reference for typography utilities, including font sizes, line heights, weights, transforms, and more.
Every class from the utility library, categorized for easy access.
Format:
ux4g-text-{alignment/transform}
|
font-size-60
(60px)
ux4g-fs-60
|
|
font-size-52
(52px)
ux4g-fs-52
|
|
font-size-40
(40px)
ux4g-fs-40
|
|
font-size-36
(36px)
ux4g-fs-36
|
|
font-size-32
(32px)
ux4g-fs-32
|
|
font-size-28
(28px)
ux4g-fs-28
|
|
font-size-24
(24px)
ux4g-fs-24
|
|
font-size-20
(20px)
ux4g-fs-20
|
|
font-size-18
(18px)
ux4g-fs-18
|
|
font-size-16
(16px)
ux4g-fs-16
|
|
font-size-14
(14px)
ux4g-fs-14
|
|
font-size-12
(12px)
ux4g-fs-12
|
|
font-size-11
(11px)
ux4g-fs-11
|
Format:
ux4g-text-{alignment/transform}
|
line-height-80
(80px)
ux4g-lh-80
|
|
line-height-72
(72px)
ux4g-lh-72
|
|
line-height-52
(52px)
ux4g-lh-52
|
|
line-height-44
(44px)
ux4g-lh-44
|
|
line-height-36
(36px)
ux4g-lh-36
|
|
line-height-32
(32px)
ux4g-lh-32
|
|
line-height-28
(28px)
ux4g-lh-28
|
|
line-height-24
(24px)
ux4g-lh-24
|
|
line-height-20
(20px)
ux4g-lh-20
|
|
line-height-18
(18px)
ux4g-lh-18
|
|
line-height-16
(16px)
ux4g-lh-16
|
|
line-height-14
(14px)
ux4g-lh-14
|
Format:
ux4g-text-{alignment/transform}
|
font-weight-regular
ux4g-fw-regular
|
|
font-weight-medium
ux4g-fw-medium
|
|
font-weight-semibold
ux4g-fw-semibold
|
|
font-weight-bold
ux4g-fw-bold
|
|
font-weight-d-semibold
ux4g-fw-d-semibold
|
|
font-weight-d-bold
ux4g-fw-d-bold
|
Format:
ux4g-text-{alignment/transform}
|
font-family-base
ux4g-ff-base
|
|
font-family-display
ux4g-ff-display
|
Format:
ux4g-text-{alignment/transform}
|
text-start
ux4g-text-start
|
|
text-center
ux4g-text-center
|
|
text-end
ux4g-text-end
|
Format:
ux4g-text-{alignment/transform}
|
text-lowercase
ux4g-text-lowercase
|
|
text-uppercase
ux4g-text-uppercase
|
|
text-capitalize
ux4g-text-capitalize
|
|
text-none
ux4g-text-none
|
Format:
ux4g-text-{alignment/transform}
|
text-underline
ux4g-text-underline
|
|
text-line-through
ux4g-text-line-through
|
|
text-no-underline
ux4g-text-no-underline
|
Format:
ux4g-text-{alignment/transform}
|
text-wrap
ux4g-text-wrap
|
|
text-nowrap
ux4g-text-nowrap
|
|
text-break
ux4g-text-break
|
|
text-truncate
ux4g-text-truncate
|
Format:
ux4g-text-{alignment/transform}
|
list-none
ux4g-list-none
|
|
list-disc
ux4g-list-disc
|
|
list-decimal
ux4g-list-decimal
|
A comprehensive reference for typography utilities, including font sizes, line heights, weights, transforms, and more.
Every class from the utility library, categorized for easy access.
Format: ux4g-text-{alignment/transform}
|
font-size-60 (60px)
ux4g-fs-60
|
|
font-size-52 (52px)
ux4g-fs-52
|
|
font-size-40 (40px)
ux4g-fs-40
|
|
font-size-36 (36px)
ux4g-fs-36
|
|
font-size-32 (32px)
ux4g-fs-32
|
|
font-size-28 (28px)
ux4g-fs-28
|
|
font-size-24 (24px)
ux4g-fs-24
|
|
font-size-20 (20px)
ux4g-fs-20
|
|
font-size-18 (18px)
ux4g-fs-18
|
|
font-size-16 (16px)
ux4g-fs-16
|
|
font-size-14 (14px)
ux4g-fs-14
|
|
font-size-12 (12px)
ux4g-fs-12
|
|
font-size-11 (11px)
ux4g-fs-11
|
Format: ux4g-text-{alignment/transform}
|
line-height-80 (80px)
ux4g-lh-80
|
|
line-height-72 (72px)
ux4g-lh-72
|
|
line-height-52 (52px)
ux4g-lh-52
|
|
line-height-44 (44px)
ux4g-lh-44
|
|
line-height-36 (36px)
ux4g-lh-36
|
|
line-height-32 (32px)
ux4g-lh-32
|
|
line-height-28 (28px)
ux4g-lh-28
|
|
line-height-24 (24px)
ux4g-lh-24
|
|
line-height-20 (20px)
ux4g-lh-20
|
|
line-height-18 (18px)
ux4g-lh-18
|
|
line-height-16 (16px)
ux4g-lh-16
|
|
line-height-14 (14px)
ux4g-lh-14
|
Format: ux4g-text-{alignment/transform}
|
font-weight-regular
ux4g-fw-regular
|
|
font-weight-medium
ux4g-fw-medium
|
|
font-weight-semibold
ux4g-fw-semibold
|
|
font-weight-bold
ux4g-fw-bold
|
|
font-weight-d-semibold
ux4g-fw-d-semibold
|
|
font-weight-d-bold
ux4g-fw-d-bold
|
Format: ux4g-text-{alignment/transform}
|
font-family-base
ux4g-ff-base
|
|
font-family-display
ux4g-ff-display
|
Format: ux4g-text-{alignment/transform}
|
text-start
ux4g-text-start
|
|
text-center
ux4g-text-center
|
|
text-end
ux4g-text-end
|
Format: ux4g-text-{alignment/transform}
|
text-lowercase
ux4g-text-lowercase
|
|
text-uppercase
ux4g-text-uppercase
|
|
text-capitalize
ux4g-text-capitalize
|
|
text-none
ux4g-text-none
|
Format: ux4g-text-{alignment/transform}
|
text-underline
ux4g-text-underline
|
|
text-line-through
ux4g-text-line-through
|
|
text-no-underline
ux4g-text-no-underline
|
Format: ux4g-text-{alignment/transform}
|
text-wrap
ux4g-text-wrap
|
|
text-nowrap
ux4g-text-nowrap
|
|
text-break
ux4g-text-break
|
|
text-truncate
ux4g-text-truncate
|
Format: ux4g-text-{alignment/transform}
|
list-none
ux4g-list-none
|
|
list-disc
ux4g-list-disc
|
|
list-decimal
ux4g-list-decimal
|