Utilities

Classes that can be used on any element.
Introduction

Utility classes can be used on any component and they are prefixed with has-. Consider using Tailwind CSS if you need additional utility classes.

Usages

Hide an element; can also be used with Responsive to hide elements on specific devices.

Style
visibility: hidden;
display: none;
Applies display: none; in light theme.
Applies display: none; in dark theme.
Padded

Add padding to any element; background color is an example and won't be visible in use.

has-top-padded -small -large -big -huge
has-bottom-padded -small -large -big -huge
has-start-padded -small -large -big -huge
has-end-padded -small -large -big -huge
has-padded -small -large -big -huge
has-vertically-padded -small -large -big -huge
has-horizontally-padded -small -large -big -huge
1rem 0.5rem 1.5rem 3rem 4.5rem
Padded element
Larger padded element
<div class="has-padded">Padded element</div>
<div class="has-padded-large">Larger padded element</div>

Add margin to any element; classes also have -auto variants.

has-top-spaced -small -large -big -huge
has-bottom-spaced -small -large -big -huge
has-start-spaced -small -large -big -huge
has-end-spaced -small -large -big -huge
has-spaced -small -large -big -huge
has-vertically-spaced -small -large -big -huge
has-horizontally-spaced -small -large -big -huge
1rem 0.5rem 1.5rem 3rem 4.5rem

Adjust text line height.

Style
line-height: 1;
line-height: 1.4;
line-height: 1.9;
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