Skip to main contentSkip to search
Clay
  • Get Started
    • How to Use Clay
    • How to Read This Documentation
    • Composition Philosophy
    • Migrating From v2.x
    • Using Clay in JSPs
  • Components
    • Alert
    • Application Bar
    • Aspect Ratio
    • Autocomplete
    • Badge
    • Breadcrumb
    • Button Group
    • Buttons
    • Card
    • Chart
    • Color Picker
    • Data Provider
    • Date Picker
    • DropDown
    • Empty State
    • Form
      • Checkbox
      • Dual List Box
      • Input
      • Radio Group
      • Select
      • Select Box
      • Toggle Switch
    • Forms Hierarchy
    • Heading
    • Icon
    • Label
    • Layout
    • Link
    • List
    • Loading Indicator
    • Localized Input
    • Management Toolbar
    • Modal
    • Multi Select
    • Multi Step Nav
    • Nav
    • Navigation Bar
    • OverlayMask
    • Pagination
    • Pagination Bar
    • Panel
    • Picker
    • Popover
    • Progress Bar
    • Provider
    • Sidebar
    • Slider
    • Sticker
    • Table
    • Tabs
    • Text
    • Timelines
    • Time Picker
    • Toolbar
    • Tooltip
    • TreeView
    • Upper Toolbar
    • VerticalBar
    • Vertical Navigation
  • Contributing
  • CSS Framework
    • Paver
    • SCSS
    • Color
    • Grid
    • Content
      • Typography
      • C Kbd
    • Utilities
      • Accessibility
      • Autofit
      • Border
      • C Focus Inset
      • C Inner
      • Color Utilities
      • C Spacing Utilities
      • Display
      • Flex
      • Float
      • Inline Item
      • Overflow
      • Position
      • Shadow
      • Text
      • Vertical Align
      • Visibility
      • Width and Height
    • Playground
  • Examples
K
  • Docs
  • Sass API
  • Blog
  • Storybook
  • Codesandbox
  • Github
  • Use this menu to toggle between Atlas and Base Themes.

Typography

A basic reference for the definition of the visual identity and the organization of the content.

Check the Lexicon Typography Pattern for a more in-depth look at the motivations and proper usage of this component.
  • Headings
  • Display
  • Lead
  • Inline Text Elements
  • Reference Mark
  • Text Truncate
    • Text Truncate Inline
  • Contextual Texts
    • Contextual Backgrounds
  • Address
  • Inline Code
  • User Input
  • Variables
  • Sample Output
  • Blockquote

Headings

Responsive styles are not included by default. You can set them through the $h# maps or write your own media queries.

Copied!
Code Sample (expand to see it)
$h1: (
	font-size: 1.625rem,
	media-breakpoint-up: (
		lg: (
			font-size: 2rem,
		),
		xl: (
			font-size: 4rem,
		),
	),
	media-breakpoint-down: (
		sm: (
			font-size: 1rem,
		),
		xs: (
			font-size: 0.875rem,
		),
	),
);

h1 Article Heading Sub text

h2 Article Heading Sub text

h3 Article Heading Sub text

h4 Article Heading Sub text

h5 Article Heading Sub text
h6 Article Heading Sub text
Copied!
Code Sample (expand to see it)
<h1>h1 Article Heading <small>Sub text</small></h1>
<h2>h2 Article Heading <small>Sub text</small></h2>
<h3>h3 Article Heading <small>Sub text</small></h3>
<h4>h4 Article Heading <small>Sub text</small></h4>
<h5>h5 Article Heading <small>Sub text</small></h5>
<h6>h6 Article Heading <small>Sub text</small></h6>

Display

Larger heading styles to make content stand out. Responsive styles are not included by default. You can set them through the $display-* map or write your own media queries.

Copied!
Code Sample (expand to see it)
$display-1: (
    media-breakpoint-down: (
        md: (
            font-size: 4.5rem,
        ),
        sm: (
            font-size: 3.75rem,
        ),
        xs: (
            font-size: 2.5rem,
        ),
    ),
);
Display 1
Display 2
Display 3
Display 4
Copied!
Code Sample (expand to see it)
<div class="display-1">Display 1</div>
<div class="display-2">Display 2</div>
<div class="display-3">Display 3</div>
<div class="display-4">Display 4</div>

Lead

Lead Body Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Copied!
Code Sample (expand to see it)
<p class="lead">
	Lead Body Text: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.
</p>

Inline Text Elements

Anchor Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Regular Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Marked Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Deleted Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Strikethrough Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Inserted Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Underlined Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Small Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Bold Text: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Italics: Milk filter lungo as galão roast that crema blue mountain shop turkish.

Abbreviation: attr

LOWERCASED TEXT: LOWERCASED TEXT

uppercased text: uppercased text

capitalized text: capitalized text

Copied!
Code Sample (expand to see it)
<p>
	<a href="#1"
		>Anchor Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</a
	>
</p>
<p>
	<span
		>Regular Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</span
	>
</p>
<p>
	<mark
		>Marked Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</mark
	>
</p>
<p>
	<del
		>Deleted Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</del
	>
</p>
<p>
	<s
		>Strikethrough Text: Milk filter lungo as galão roast that crema blue
		mountain shop turkish.</s
	>
</p>
<p>
	<ins
		>Inserted Text: Milk filter lungo as galão roast that crema blue
		mountain shop turkish.</ins
	>
</p>
<p>
	<u
		>Underlined Text: Milk filter lungo as galão roast that crema blue
		mountain shop turkish.</u
	>
</p>
<p>
	<small
		>Small Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</small
	>
</p>
<p>
	<strong
		>Bold Text: Milk filter lungo as galão roast that crema blue mountain
		shop turkish.</strong
	>
</p>
<p>
	<em
		>Italics: Milk filter lungo as galão roast that crema blue mountain shop
		turkish.</em
	>
</p>
<p>Abbreviation: <abbr title="attribute">attr</abbr></p>
<p>LOWERCASED TEXT: <span class="text-lowercase">LOWERCASED TEXT</span></p>
<p>uppercased text: <span class="text-uppercase">uppercased text</span></p>
<p>capitalized text: <span class="text-capitalize">capitalized text</span></p>

Reference Mark

Use <span class="reference-mark"></span> to add a reference mark next to some text.

Reference Mark[1] with text.
Reference Mark with lexicon-icon-asterisk.

Footnotes

[1] A reference to the text above, respectively.
A reference to the text above, respectively.
Copied!
Code Sample (expand to see it)
<div>
	Reference Mark<span class="reference-mark" id="referenceMark1">[1]</span>
	with text.
</div>
<div>
	Reference Mark<span class="reference-mark" id="referenceMark4"
		><svg
			class="lexicon-icon lexicon-icon-asterisk"
			focusable="false"
			role="presentation"
		>
			<use href="/images/icons/icons.svg#asterisk" /></svg
	></span>
	with lexicon-icon-asterisk.
</div>
<h4>Footnotes</h4>
<div>
	<a class="reference-mark" href="#referenceMark1">[1]</a> A reference to the
	text above, respectively.
</div>
<div>
	<a class="reference-mark" href="#referenceMark4"
		><svg
			class="lexicon-icon lexicon-icon-asterisk"
			focusable="false"
			role="presentation"
		>
			<use href="/images/icons/icons.svg#asterisk" /></svg
	></a>
	A reference to the text above, respectively.
</div>

Text Truncate

Shorten long lines of text with the text-truncate class. This uses display: block; and should be used to truncate text in block level elements.

Milk filter lungo as galão roast that crema blue mountain shop turkish. Milk filter lungo as galão roast that crema blue mountain shop turkish. Milk filter lungo as galão roast that crema blue mountain shop turkish.

Copied!
Code Sample (expand to see it)
<p class="text-truncate">
	Milk filter lungo as galão roast that crema blue mountain shop turkish. Milk
	filter lungo as galão roast that crema blue mountain shop turkish. Milk
	filter lungo as galão roast that crema blue mountain shop turkish.
</p>

Text Truncate Inline

You can also use the text-truncate-inline class to shorten long lines of text.

Milk filter lungo as galão roast that crema blue mountain shop turkish. ReallySuperInsanelyJustIncrediblyLongAndTotallyNotPossibleWordButWeAreReallyTryingToCoverAllOurBasesHereJustInCaseSomeoneIsNutsAsPerUsual Milk filter lungo as galão roast that crema this is also text-truncate turkish. Milk filter lungo as galão roast that crema blue mountain shop turkish.

Copied!
Code Sample (expand to see it)
<a class="text-truncate-inline" href="#1"
	><span class="text-truncate"
		>ReallySuperInsanelyJustIncrediblyLongAndTotallyNotPossibleWordButWeAreReallyTryingToCoverAllOurBasesHereJustInCaseSomeoneIsNutsAsPerUsual</span
	></a
>
Milk filter lungo as galão roast that crema
<a class="text-truncate-inline" href="#1"
	><span class="text-truncate"></span
></a>

Contextual Texts

text-muted: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-primary: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-secondary: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-info: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-success: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-warning: Milk filter lungo as galão roast that crema blue mountain shop turkish.
text-danger: Milk filter lungo as galão roast that crema blue mountain shop turkish.
Copied!
Code Sample (expand to see it)
<a href="#1" class="text-muted"
	>text-muted: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</a
>
<a href="#1" class="text-primary"
	>text-primary: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.</a
>
<a href="#1" class="text-secondary"
	>text-secondary: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.</a
>
<a href="#1" class="text-info"
	>text-info: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</a
>
<a href="#1" class="text-success"
	>text-success: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.</a
>
<a href="#1" class="text-warning"
	>text-warning: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.</a
>
<a href="#1" class="text-danger"
	>text-danger: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</a
>

Contextual Backgrounds

bg-primary: Milk filter lungo as galão roast that crema blue mountain shop turkish.
bg-secondary: Milk filter lungo as galão roast that crema blue mountain shop turkish.
bg-success: Milk filter lungo as galão roast that crema blue mountain shop turkish.
bg-info: Milk filter lungo as galão roast that crema blue mountain shop turkish.
bg-warning: Milk filter lungo as galão roast that crema blue mountain shop turkish.
bg-danger: Milk filter lungo as galão roast that crema blue mountain shop turkish.
Copied!
Code Sample (expand to see it)
<span class="bg-primary"
	>bg-primary: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</span
>
<span class="bg-secondary"
	>bg-secondary: Milk filter lungo as galão roast that crema blue mountain
	shop turkish.</span
>
<span class="bg-success"
	>bg-success: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</span
>
<span class="bg-info"
	>bg-info: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</span
>
<span class="bg-warning"
	>bg-warning: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</span
>
<span class="bg-danger"
	>bg-danger: Milk filter lungo as galão roast that crema blue mountain shop
	turkish.</span
>

Address

Liferay, Inc.
1400 Montefino Ave.
Diamond Bar, CA 91765
P: +1-877-LIFERAY (1-877-543-3729)
Full Name
joe.bloggs@liferay.com
Copied!
Code Sample (expand to see it)
<address>
	<strong>Liferay, Inc.</strong><br />
	1400 Montefino Ave.<br />
	Diamond Bar, CA 91765<br />
	<abbr class="initialism" title="Phone">P:</abbr> +1-877-LIFERAY
	(1-877-543-3729)
</address>
<address>
	<strong>Full Name</strong><br />
	<a href="mailto:#">joe.bloggs@liferay.com</a>
</address>

Inline Code

For example, <section> should be wrapped as inline.

Copied!
Code Sample (expand to see it)
<p>For example, <code>&lt;section&gt;</code> should be wrapped as inline.</p>

User Input

For example, press ctrl + , to edit settings.

Copied!
Code Sample (expand to see it)
<p>
	For example, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd> to edit
	settings.
</p>

Variables

For example, y = mx + b

Copied!
Code Sample (expand to see it)
<p>For example, <var>y</var> = <var>m</var><var>x</var> + <var>b</var></p>

Sample Output

This text is meant to be treated as sample output from a computer program.
Copied!
Code Sample (expand to see it)
<samp
	>This text is meant to be treated as sample output from a computer
	program.</samp
>

Blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Someone famous in Source Title
Copied!
Code Sample (expand to see it)
<blockquote class="blockquote">
	<div>
		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere
		erat a ante.
	</div>
</blockquote>
<blockquote class="blockquote">
	<div>
		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere
		erat a ante.
	</div>
	<footer class="blockquote-footer">
		Someone famous in <cite title="Source Title">Source Title</cite>
	</footer>
</blockquote>

How can this be improved? Create an issue!