# Text Transform

Set the capitalization of text.

**Widely available.** This feature is well established and works across many devices and browser versions.

Chrome 1 · Edge 12 · Firefox 1 · Safari 1

| Class | Properties | Value |
|-------|------------|-------|
| `tt:c` | text-transform | `capitalize` |
| `tt:l` | text-transform | `lowercase` |
| `tt:none` | text-transform | `none` |
| `tt:u` | text-transform | `uppercase` |

## Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in `@md:h:tt:none`.

### Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

| Class | Applies |
|-------|---------|
| `@xs:tt:none` | From 32rem up. |
| `@sm:tt:none` | From 40rem up. |
| `@md:tt:none` | From 48rem up. |
| `@lg:tt:none` | From 64rem up. |
| `@xl:tt:none` | From 80rem up. |
| `@xxl:tt:none` | From 96rem up. |

### Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with `ct:is` first.

| Class | Applies |
|-------|---------|
| `@c:xs:tt:none` | Container from 32rem up. |
| `@c:sm:tt:none` | Container from 40rem up. |
| `@c:md:tt:none` | Container from 48rem up. |
| `@c:lg:tt:none` | Container from 64rem up. |
| `@c:xl:tt:none` | Container from 80rem up. |
| `@c:xxl:tt:none` | Container from 96rem up. |

### Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

| Class | Applies |
|-------|---------|
| `@pc:tt:none` | On a touch screen. |
| `@prm:tt:none` | With reduced motion on. |
| `@st:tt:none` | On the first frame. |

### States

Apply a class only while the element is in a state, such as hovered, focused or checked.

| Class | Applies |
|-------|---------|
| `h:tt:none` | On :hover. |
| `f:tt:none` | On :focus. |
| `fv:tt:none` | On :focus-visible. |
| `a:tt:none` | On :active. |
| `d:tt:none` | On :disabled. |
| `fc:tt:none` | On :first-child. |
| `c:tt:none` | On :checked. |
| `e:tt:none` | On :empty. |
| `fw:tt:none` | On :focus-within. |
| `i:tt:none` | On :invalid. |
| `in:tt:none` | On :indeterminate. |
| `lc:tt:none` | On :last-child. |
| `nc:tt:none` | On :nth-child. |
| `r:tt:none` | On :required. |
| `ro:tt:none` | On :read-only. |
| `v:tt:none` | On :valid. |

### Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

| Class | Applies |
|-------|---------|
| `a::tt:none` | On ::after. |
| `b::tt:none` | On ::before. |
| `p::tt:none` | On ::placeholder. |
| `s::tt:none` | On ::selection. |