sdxc

Type to search, or start from one of these:

typography

tab-size

Applies tab-size.

import { tabSize } from "@sdxc/u/typography";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.tabSize()css({ tabSize: "2" })
u.tabSize(4)css({ tabSize: "4" })
u.tabSize("4ch")css({ tabSize: "4ch" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.tabSize()

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.tabSize())

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.tabSize())

Signature

u.tabSize(value?: number | (string & {}))