Text

A text is used to style some inline text with an emphasis.
Example
Theme
Auto
Auto
Light
Dark
Scale
Medium
Large
Medium
Small
Hello, world!
<span class="ts-text">Hello, world!</span>
Types
Link

A text can be a hyperlink.

<a class="ts-text is-link">Hello, world!</a>

A text can be a hyperlink with an icon indicating it opens in a new tab.

For more info, see the white paper.
For more info, see the <a class="ts-text is-external-link">white paper</a>.
Icon Link

A text can have an icon on the side.

<a class="ts-text is-icon-link">
    <span class="ts-icon is-arrow-left-icon"></span>
    Go Back
</a>

A hyperlink text that only shows the underline when hovered.

The link only shows an underline when hovered over.
<a class="ts-text is-undecorated">The link</a> only shows an underline when hovered over.
Code

A text can present as a code.

Use ts-button to define a button.
Use <span class="ts-text is-code">ts-button</span> to define a button.
Label

A text can be a field label that looks a bit bolder.

Username
<span class="ts-text is-label">Username</span>
<div class="ts-input has-top-spaced-small">
    <input type="text">
</div>

A text can be a description, it's usually smaller and dimmer.

The changes you make will take effect after 24 hours.
<button class="ts-button">Save Changes</button>
<div class="ts-text is-description has-top-spaced-small">
    The changes you make will take effect after 24 hours.
</div>

A text can be a superscript or subscript.

A friend bought a piece of fabric. When she showed it to us[8]:

"Why should I care?" I said.

We couldn't help but burst into laughter.[9]—why should it matter to anyone else?

<p>A friend bought a piece of fabric. When she showed it to us<span class="ts-text is-sup">[8]</span>:</p>
<p>"Why should I care?" I said.</p>
<p>We couldn't help but burst into laughter.<span class="ts-text is-sub">[9]</span>—why should it matter to anyone else?</p>
Key

A text can indicates a keyboard key.

Press shift + H to begin.
Press <span class="ts-text is-key">shift</span> + <span class="ts-text is-key">H</span> to begin.
Mark

A text can be highlighted.

I can't see when I close my eyes.
I <span class="ts-text is-mark">can't see</span> when I close my eyes.
States
Disabled

A disabled text cannot be selected or interacted with.

We don't doubt we're killers without a kill.
<span class="ts-text is-disabled">We don't doubt we're killers without a kill.</span>
Required

A text with an asterisk indicates something is required.

<label class="ts-checkbox">
    <input type="checkbox" checked />
    <span class="ts-text is-required">I am over 18 years old.</span>
</label>
Variations
Editable

A text with dashsed underline to hint it's editable.

Total amount: $ 3,600
Total amount: <span class="ts-text is-editable">$ 3,600</span>
Secondary

A text with less emphasis.

Program is running...
<span class="ts-text is-secondary">Program is running...</span>
Bold

A text can be bold.

Press the button to reveal everything.
Press the <span class="ts-text is-bold">button</span> to reveal everything.
Heavy

A text with heavier weight.

OH NO! It's wasabi day!
<span class="ts-text is-heavy">OH NO</span>! It's wasabi day!
Italic

A text can be italic.

There's a world he created himself.
There's a <span class="ts-text is-italic">world</span> he created himself.
Deleted

A text can be lined through to indicate it's no longer valid.

This text is no longer relevant.
<span class="ts-text is-deleted">This text is no longer relevant.</span>
Underlined

A text can be underlined.

A giant crystal is in Carlydia.
A giant crystal is in <span class="ts-text is-underlined">Carlydia</span>.
Truncated

Text can be truncated if too long, requires a fixed-width container.

Under the blazing sun, the road ahead is completely obscured.
<div class="ts-text is-truncated" style="max-width: 300px">
    Under the blazing sun, the road ahead is completely obscured.
</div>
Negative

A text presents something dangerous.

Server is damaged!
<span class="ts-text is-negative">Server is damaged!</span>

A text can be uppercased or lowercased.

Here comes another world.
Here comes another world.
<div class="ts-text is-uppercased">Here comes another world.</div>
<div class="ts-text is-lowercased">Here comes another world.</div>

A text can be aligned to the start, center, or end.

Start aligned
Center aligned
End aligned
<div class="ts-text is-start-aligned">Start aligned</div>
<div class="ts-text is-center-aligned">Center aligned</div>
<div class="ts-text is-end-aligned">End aligned</div>

A text can be justified to equalize the gaps between characters for a balanced visual appearance.

This paragraph uses "Justify" to automatically equalize the gaps between characters for a more balanced and comfortable visual appearance. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vestibulum metus ac consequat mollis.
<div class="ts-text is-justify-aligned">
    This paragraph uses "Justify" to automatically equalize the gaps between characters for a more balanced and comfortable visual appearance. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vestibulum metus ac consequat mollis.
</div>
Sizes

A text can have different sizes.

(Tiny) Tocas UI from Taiwan.
(Small) Tocas UI from Taiwan.
(Medium) Tocas UI from Taiwan.
(Large) Tocas UI from Taiwan.
(Big) Tocas UI from Taiwan.
(Huge) Tocas UI from Taiwan.
(Massive) Tocas UI from Taiwan.
<div class="ts-text is-tiny">(Tiny) Tocas UI from Taiwan.</div>
<div class="ts-text is-small">(Small) Tocas UI from Taiwan.</div>
<div class="ts-text is-medium">(Medium) Tocas UI from Taiwan.</div>
<div class="ts-text is-large">(Large) Tocas UI from Taiwan.</div>
<div class="ts-text is-big">(Big) Tocas UI from Taiwan.</div>
<div class="ts-text is-huge">(Huge) Tocas UI from Taiwan.</div>
<div class="ts-text is-massive">(Massive) Tocas UI from Taiwan.</div>
Looking for similar components?
Designed by Yami Odymel from Taiwan, along with the ❤️ from contributors. The source code is licensed under MIT, and the documentation is under CC 0 public domain. Feel free to use, share, or contribute. Tocas UI is a design system for Caris Events, part of Sorae & Co., Ltd.
Translators: Yami Odymel
Trademark of the owner of Tocas UI