Typography

Coral provide typography components for user to align the font styling.

Example

Basic Usage
12px Subtitle / Caption
14px Body
16px Headline in small section
20px Headline in page section
24px Headline in page section

28px Headline

32px Headline

36px Headline

40px Headline

View code
Customization
colorType semNeg1st
color grey
lineHeight 24px
lineHeight ratio 2
fontWeight 700
size 24, fontWeight 400
margin 16px 0
View code
Using the correct HTML tag
It’s important that you always use correct heading levels even regardless the font size. Headings communicate the organization of the content on the page. Web browsers, plug-ins, and assistive technologies can use them to provide in-page navigation.

My Notes

What is a Paragraph?

By default, the size is 14 and use div as the HTML tag. You can use as="p" when using it in an article or for a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.

View code

References

API

Body
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Caption
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Display
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Subheader
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Subtitle
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
Text
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorstring
colorTypeColorTypes
fontWeightFontWeight
lineHeightLineHeight<string | number>
marginMargin<string | number>
sizenumber14
Title
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
    Example
    Example
    Basic Usage
    Basic Usage
    Customization
    Customization
    Using the correct HTML tag
    Using the correct HTML tag
    References
    References
    API
    API
    Body
    Body
    Caption
    Caption
    Display
    Display
    Header
    Header
    Subheader
    Subheader
    Subtitle
    Subtitle
    Text
    Text
    Title
    Title
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs