Styling: Text
Oracle® JavaScript Extension Toolkit (JET)
9.1.0
F30737-01
- Version:
- 9.1.0
Style classes handling the Text display.
-
.oj-text-disabled-color
-
Class to show disabled text.
Deprecated:
Since Description 9.0.0Use oj-text-color-disabled instead -
.oj-text-primary-color
-
Class to show primary text. In some themes this class may have no effect.
Deprecated:
Since Description 9.0.0Use oj-text-color-primary instead -
.oj-text-secondary-color
-
Class to show secondary text. In some themes this class may have no effect.
Deprecated:
Since Description 9.0.0Use oj-text-color-secondary instead -
.oj-text-tertiary-color
-
Class to show tertiary text. In some themes this class may have no effect.
Deprecated:
Since Description 9.0.0Use oj-text-color-secondary instead -
Category: Text Colors
-
Sets the text color. In Redwood these classes use the CSS !important property to override classes with higher specificity.
Class template:
-
.oj-text-color-
[text-color]Note: Square brackets signify required token substitutions whereas parentheses signify optional token substitutions.
-
Values for
[text-color]Value (required) Name Description primaryPrimary text color Primary text color secondarySecondary text color Secondary text color disabledDisabled text color Disabled text color dangerDanger text color Danger text color warningWarning text color Warning text color successSuccess text color Success text color
Example
<span class="oj-text-color-secondary">Secondary text</span> -
-
Category: Typography
-
Sets the font weight, font size, and line height. In Redwood these classes use the CSS !important property to override classes with higher specificity.
Class template:
-
.oj-typography-
[typography-level]Note: Square brackets signify required token substitutions whereas parentheses signify optional token substitutions.
-
Values for
[typography-level]Value (required) Name Description heading-2xlHeading 2xl Extra Extra Large Heading heading-xlHeading xl Extra Large Heading heading-lgHeading lg Large Heading heading-mdHeading md Medium Heading heading-smHeading sm Smaller Heading heading-xsHeading xs Extra Small Heading subheading-2xlSubheading 2xl Extra Extra Large Subheading subheading-xlSubheading xl Extra Large subheading subheading-lgSubheading lg Large subheading subheading-mdSubheading md Medium subheading subheading-smSubheading sm Smaller subheading subheading-xsSubheading xs Extra Small subheading body-xlBody xl Extra Large Body body-lgBody lg Large Body body-mdBody md Medium Body body-smBody sm Small Body body-xsBody xs Extra Small Body body-2xsBody 2xs Extra Extra Small Body overlineOverline Overline
Example
<span class="oj-typography-body-xs">body text</span> -
-
Category: Typography Weight
-
Sets the font weight to semi bold or bold, meant to be used in conjunction with oj-typography-body-*. In Redwood these classes use the CSS !important property to override classes with higher specificity.
Class template:
-
.oj-typography-
[typography-weight]Note: Square brackets signify required token substitutions whereas parentheses signify optional token substitutions.
-
Values for
[typography-weight]Value (required) Name Description semi-boldSemi Bold Set the font weight to semi bold boldBold Set the font weight to bold
Example
<span class="oj-typography-body-xs oj-typography-semi-bold">Caption text</span> -
-
Category: Text Size
-
Classes for small or xs text.
Classes:
-
.oj-text-sm
-
Deprecated:
Since Description 9.0.0Use oj-typography-body-sm instead -
.oj-text-xs
-
Deprecated:
Since Description 9.0.0Use oj-typography-body-xs instead
Deprecated:
Since Description 9.0.0Replace oj-text-sm with oj-typography-body-sm. Replace oj-text-xs with oj-typography-body-xs -