Skip to content

Commit

Permalink
Document text utility classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
homotechsual committed Apr 2, 2024
1 parent f1526f5 commit 78600f2
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions website/docs/utilities/text.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Text

## Alignment

```html
<p class="text--left">Left aligned text</p>
<p class="text--center">Center aligned text</p>
<p class="text--right">Right aligned text</p>
<p class="text--justify">Justified text</p>
```

## Break

```html
<p class="text--break">This is a very long text that will break into multiple lines if there is not enough space to display it in a single line on the screen. Specifically, this text will break at the a word boundary so it will not break in the middle of a word.</p>
```

## Color

```html
<p class="text--primary">Primary Text</p>
<p class="text--secondary">Secondary Text</p>
<p class="text--success">Success Text</p>
<p class="text--info">Info Text</p>
<p class="text--warning">Warning Text</p>
<p class="text--danger">Danger Text</p>
```

## Italic

```html
<p class="text--italic">Italic Text</p>
```

## No Decoration

```html
<p class="text--no-decoration">Text with no decoration</p>
```

## Transform

```html
<p class="text--uppercase">uppercase text</p>
<p class="text--lowercase">LOWERCASE TEXT</p>
<p class="text--capitalize">capitalize text</p>
```

## Truncate

```html
<p class="text--truncate">This is a very long text that will be truncated if there is not enough space to display it in a single line on the screen. It's truncated by adding an ellipsis at the end of the text.</p>
```

## Weight

```html
<p class="text--bold">Bold Text</p>
<p class="text--semibold">Semibold Text</p>
<p class="text--normal">Normal Text</p>
<p class="text--light">Light Text</p>
```

0 comments on commit 78600f2

Please sign in to comment.