Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanve/tx.css

Opensource CSS text utility classes
https://github.com/ryanve/tx.css

css functional-css text

Last synced: about 1 month ago
JSON representation

Opensource CSS text utility classes

Awesome Lists containing this project

README

        

# tx.css

```
npm install tx.css
```

```css
@import './node_modules/tx.css/tx';
```

### `text-align`

```css
.tx-left { text-align: left }
.tx-right { text-align: right }
.tx-center { text-align: center }
.tx-start { text-align: initial; text-align: start }
.tx-end { text-align: end }
```

### `vertical-align`

```css
.tx-baseline { vertical-align: baseline }
.tx-ascent { vertical-align: text-top }
.tx-descent { vertical-align: text-bottom }
.tx-sup { vertical-align: super }
.tx-sub { vertical-align: sub }
.tx-top { vertical-align: top }
.tx-bottom { vertical-align: bottom }
.tx-middle { vertical-align: middle }
```

### `font`

```css
.tx-face { font: inherit }
.tx-sans { font-family: sans-serif }
.tx-mono { font-family: monospace }
.tx-os { font-family: sans-serif; font-family: system-ui }
```