Utility families
Families, sizes, weights, line height, decorations, case, truncation and screen-reader-only text.
fs:
| Class |
CSS properties |
fs: |
font-size |
-
Theme tokens: font-size
- Arbitrary values: yes, in brackets
fs:2xl
.fs\:2xl {
font-size: 1.5rem;
}
fw:
| Class |
CSS properties |
fw: |
font-weight |
-
Theme tokens: font-weight
- Arbitrary values: yes, in brackets
fw:medium
.fw\:medium {
font-weight: 500;
}
lh:
| Class |
CSS properties |
lh: |
line-height |
-
Theme tokens: line-height
- Arbitrary values: yes, in brackets
lh:normal
.lh\:normal {
line-height: 1.5;
}
ta:
| Class |
CSS properties |
ta: |
text-align |
-
Keywords:
left
center right
justify start
end
- Arbitrary values: no
ta:left
.ta\:left {
text-align: left;
}
va:
| Class |
CSS properties |
va: |
vertical-align |
-
Keywords:
baseline
top middle
bottom text-top
text-bottom sub
super
- Arbitrary values: yes, in brackets
va:baseline
.va\:baseline {
vertical-align: baseline;
}
lst:
| Class |
CSS properties |
lst: |
list-style-type |
-
Keywords:
none
disc circle
square decimal
- Arbitrary values: yes, in brackets
lst:none
.lst\:none {
list-style-type: none;
}
lsp:
| Class |
CSS properties |
lsp: |
list-style-position |
-
Keywords:
inside
outside
- Arbitrary values: no
lsp:inside
.lsp\:inside {
list-style-position: inside;
}
ff:
| Class |
CSS properties |
ff: |
font-family |
-
Theme tokens: font-family
- Arbitrary values: yes, in brackets
ff:serif
.ff\:serif {
font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}
ls:
| Class |
CSS properties |
ls: |
letter-spacing |
-
Keywords:
tighter
tight normal
wide wider
- Arbitrary values: yes, in brackets
- Negative values: yes
ls:tighter
.ls\:tighter {
letter-spacing: -0.05em;
}
td:
| Class |
CSS properties |
td: |
text-decoration-line |
-
Keywords:
underline
line-through none
- Arbitrary values: no
td:underline
.td\:underline {
text-decoration-line: underline;
}
tdc:
| Class |
CSS properties |
tdc: |
text-decoration-color |
-
Theme tokens: colors
- Arbitrary values: yes, in brackets
tdc:blue
.tdc\:blue {
text-decoration-color: #3b82f6;
}
tdt:
| Class |
CSS properties |
tdt: |
text-decoration-thickness |
-
Keywords:
1 2
4 auto
- Arbitrary values: yes, in brackets
tdt:1
.tdt\:1 {
text-decoration-thickness: 1px;
}
tuo:
| Class |
CSS properties |
tuo: |
text-underline-offset |
-
Keywords:
1 2
4 8
auto
- Arbitrary values: yes, in brackets
tuo:1
.tuo\:1 {
text-underline-offset: 1px;
}
ws:
| Class |
CSS properties |
ws: |
white-space |
-
Keywords:
normal
nowrap pre
pre-wrap pre-line
- Arbitrary values: no
ws:normal
.ws\:normal {
white-space: normal;
}
fst:
| Class |
CSS properties |
fst: |
font-stretch |
-
Keywords:
condensed
semi-condensed
normal semi-expanded
expanded
- Arbitrary values: yes, in brackets
fst:condensed
.fst\:condensed {
font-stretch: 75%;
}
ol:
| Class |
CSS properties |
ol: |
outline |
-
Keywords:
none
1 2
4
- Arbitrary values: yes, in brackets
ol:none
.ol\:none {
outline: none;
}
olc:
| Class |
CSS properties |
olc: |
outline-color |
-
Theme tokens: colors
- Arbitrary values: yes, in brackets
olc:blue
.olc\:blue {
outline-color: #3b82f6;
}
olo:
| Class |
CSS properties |
olo: |
outline-offset |
-
Keywords:
0 1
2 4
8
- Arbitrary values: yes, in brackets
- Negative values: yes
olo:0
.olo\:0 {
outline-offset: 0px;
}
uppercase
lowercase
capitalize
normal-case
italic
not-italic
truncate
antialiased
tabular-nums
sr-only
not-sr-only
visible
invisible
isolate
scroll-smooth
| Class |
Declarations |
uppercase |
text-transform: uppercase |
lowercase |
text-transform: lowercase |
capitalize |
text-transform: capitalize |
normal-case |
text-transform: none |
italic |
font-style: italic |
not-italic |
font-style: normal |
truncate |
overflow: hidden; text-overflow: ellipsis; white-space: nowrap |
antialiased |
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale
|
tabular-nums |
font-variant-numeric: tabular-nums |
sr-only |
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0
|
not-sr-only |
position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal
|
visible |
visibility: visible |
invisible |
visibility: hidden |
isolate |
isolation: isolate |
scroll-smooth |
scroll-behavior: smooth |
uppercase
.uppercase {
text-transform: uppercase;
}
lowercase
.lowercase {
text-transform: lowercase;
}
tw:
| Class |
CSS properties |
tw: |
text-wrap |
-
Keywords:
wrap
nowrap balance
pretty
- Arbitrary values: no
tw:wrap
.tw\:wrap {
text-wrap: wrap;
}
wb:
| Class |
CSS properties |
wb: |
overflow-wrap |
-
Keywords:
normal
words anywhere
- Arbitrary values: no
wb:normal
.wb\:normal {
overflow-wrap: normal;
}
clamp:
clamp:3
.clamp\:3 {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}