Skip to content

Search the guides, deployment pages, and API reference.

TVAConfig

import type { TVAConfig } from "@pitlane/theme";

Configuration for tva. Every style slot is ThemedCSSProps, carrying the same brand enforcement as css.

Type Parameters

V

V extends VariantShape

Properties

base?

optional base?: ThemedCSSProps;

Styles applied to every invocation, before any variant.


compoundVariants?

optional compoundVariants?: readonly Selection<V> & object[];

Extra styles applied when every listed variant condition matches, merged after the individual variants in array order.


defaultVariants?

optional defaultVariants?: Selection<V>;

Options used for axes the caller leaves unset. Passing an axis undefined explicitly still falls back to its default.


variants?

optional variants?: V;

The variant axes. Each axis maps option names to styles; name an axis's options true and false to accept a boolean.