ThemedCSSProps
import type { ThemedCSSProps } from "@pitlane/theme";The style-object type accepted by css and every tva slot.
Two layers stack. Token-mapped longhands enforce the matching token
brand plus the small set of CSS keywords the table lists, and the
literal 0 where the value is a length. Every
other property carries csstype's value union, so closed-grammar
properties such as display, position, resize, and overflow
only accept their real keywords. Unknown keys — nested selectors,
at-rules, and CSS custom properties — recurse or stay loose.
Wide below is the CSS-wide keyword union
"inherit" | "initial" | "unset" | "revert" | "revert-layer".
| Property family | Accepted values |
|---|---|
color, backgroundColor, borderColor, the four per-side and two logical border colors, outlineColor, textDecorationColor, columnRuleColor, caretColor, accentColor, fill, stroke |
ColorToken | "transparent" | "currentColor" | Wide |
width, height, minWidth, minHeight, maxWidth, maxHeight, their blockSize/inlineSize logical forms, flexBasis |
DimensionToken | 0 | "auto" | "min-content" | "max-content" | "fit-content" | Wide |
top, right, bottom, left, marginTop, marginRight, marginBottom, marginLeft, and their inset*/margin* logical start/end forms |
DimensionToken | 0 | "auto" | Wide |
paddingTop, paddingRight, paddingBottom, paddingLeft, the logical padding start/end forms, fontSize, textIndent, outlineOffset, the four corner radii, rowGap, columnGap |
DimensionToken | 0 | Wide |
letterSpacing, wordSpacing |
DimensionToken | 0 | "normal" | Wide |
borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, outlineWidth |
DimensionToken | 0 | "thin" | "medium" | "thick" | Wide |
padding, borderRadius |
a single value as the longhand, or a tuple of 1–4 DimensionToken | 0 values, space-joined |
margin, inset |
a single value as the longhand, or a tuple of 1–4 DimensionToken | 0 | "auto" values, space-joined |
gap, paddingBlock, paddingInline |
the longhand value, or a 2-tuple of DimensionToken | 0 |
marginBlock, marginInline, insetBlock, insetInline |
the longhand value, or a 2-tuple of DimensionToken | 0 | "auto" |
fontFamily |
FontFamilyToken | Wide |
fontWeight |
FontWeightToken | "normal" | "bold" | "lighter" | "bolder" | Wide |
lineHeight |
NumberToken | DimensionToken | "normal" | Wide |
opacity, zIndex, flexGrow, flexShrink, order |
NumberToken | number | Wide (plain numbers stay legal) |
transitionDuration, transitionDelay, animationDuration, animationDelay |
DurationToken | Wide |
transitionTimingFunction, animationTimingFunction |
CubicBezierToken | "ease" | "linear" | "ease-in" | "ease-out" | "ease-in-out" | "step-start" | "step-end" | Wide |
boxShadow, textShadow |
ShadowToken | "none" | Wide |
| every other CSS property | csstype's union for that property, with dimension tokens for lengths and duration tokens for times |
Tuple items take no CSS-wide keyword; Wide applies only to a single value.
See
Extends
KeywordPropsTokenMappedProps
Indexable
[key: string]:
| string
| number
| ThemedCSSProps
| readonly (string | number)[]
| null
| undefinedProperties
accentColor?
optional accentColor?: ColorLike;Inherited from
TokenMappedProps.accentColoranimationDelay?
optional animationDelay?: DurationToken | Wide;Inherited from
TokenMappedProps.animationDelayanimationDuration?
optional animationDuration?: DurationToken | Wide;Inherited from
TokenMappedProps.animationDurationanimationTimingFunction?
optional animationTimingFunction?: Easing;Inherited from
TokenMappedProps.animationTimingFunctionbackgroundColor?
optional backgroundColor?: ColorLike;Inherited from
TokenMappedProps.backgroundColorblockSize?
optional blockSize?: SizeIntrinsic;Inherited from
TokenMappedProps.blockSizeborderBlockColor?
optional borderBlockColor?: ColorLike;Inherited from
TokenMappedProps.borderBlockColorborderBottomColor?
optional borderBottomColor?: ColorLike;Inherited from
TokenMappedProps.borderBottomColorborderBottomLeftRadius?
optional borderBottomLeftRadius?: Size;Inherited from
TokenMappedProps.borderBottomLeftRadiusborderBottomRightRadius?
optional borderBottomRightRadius?: Size;Inherited from
TokenMappedProps.borderBottomRightRadiusborderBottomWidth?
optional borderBottomWidth?: LineWidth;Inherited from
TokenMappedProps.borderBottomWidthborderColor?
optional borderColor?: ColorLike;Inherited from
TokenMappedProps.borderColorborderInlineColor?
optional borderInlineColor?: ColorLike;Inherited from
TokenMappedProps.borderInlineColorborderLeftColor?
optional borderLeftColor?: ColorLike;Inherited from
TokenMappedProps.borderLeftColorborderLeftWidth?
optional borderLeftWidth?: LineWidth;Inherited from
TokenMappedProps.borderLeftWidthborderRadius?
optional borderRadius?: Size | Repeat1to4<PadItem>;Inherited from
TokenMappedProps.borderRadiusborderRightColor?
optional borderRightColor?: ColorLike;Inherited from
TokenMappedProps.borderRightColorborderRightWidth?
optional borderRightWidth?: LineWidth;Inherited from
TokenMappedProps.borderRightWidthborderTopColor?
optional borderTopColor?: ColorLike;Inherited from
TokenMappedProps.borderTopColorborderTopLeftRadius?
optional borderTopLeftRadius?: Size;Inherited from
TokenMappedProps.borderTopLeftRadiusborderTopRightRadius?
optional borderTopRightRadius?: Size;Inherited from
TokenMappedProps.borderTopRightRadiusborderTopWidth?
optional borderTopWidth?: LineWidth;Inherited from
TokenMappedProps.borderTopWidthbottom?
optional bottom?: SizeAuto;Inherited from
TokenMappedProps.bottomboxShadow?
optional boxShadow?: ShadowLike;Inherited from
TokenMappedProps.boxShadowcaretColor?
optional caretColor?: ColorLike;Inherited from
TokenMappedProps.caretColorcolor?
optional color?: ColorLike;Inherited from
TokenMappedProps.colorcolumnGap?
optional columnGap?: Size;Inherited from
TokenMappedProps.columnGapcolumnRuleColor?
optional columnRuleColor?: ColorLike;Inherited from
TokenMappedProps.columnRuleColorfill?
optional fill?: ColorLike;Inherited from
TokenMappedProps.fillflexBasis?
optional flexBasis?: SizeIntrinsic;Inherited from
TokenMappedProps.flexBasisflexGrow?
optional flexGrow?: Numeric;Inherited from
TokenMappedProps.flexGrowflexShrink?
optional flexShrink?: Numeric;Inherited from
TokenMappedProps.flexShrinkfontFamily?
optional fontFamily?: Wide | FontFamilyToken;Inherited from
TokenMappedProps.fontFamilyfontSize?
optional fontSize?: Size;Inherited from
TokenMappedProps.fontSizefontWeight?
optional fontWeight?:
| "normal"
| Wide
| FontWeightToken
| "bold"
| "lighter"
| "bolder";Inherited from
TokenMappedProps.fontWeightgap?
optional gap?: Size | readonly [PadItem, PadItem];Inherited from
TokenMappedProps.gapheight?
optional height?: SizeIntrinsic;Inherited from
TokenMappedProps.heightinlineSize?
optional inlineSize?: SizeIntrinsic;Inherited from
TokenMappedProps.inlineSizeinset?
optional inset?: SizeAuto | Repeat1to4<MarginItem>;Inherited from
TokenMappedProps.insetinsetBlock?
optional insetBlock?: SizeAuto | readonly [MarginItem, MarginItem];Inherited from
TokenMappedProps.insetBlockinsetBlockEnd?
optional insetBlockEnd?: SizeAuto;Inherited from
TokenMappedProps.insetBlockEndinsetBlockStart?
optional insetBlockStart?: SizeAuto;Inherited from
TokenMappedProps.insetBlockStartinsetInline?
optional insetInline?: SizeAuto | readonly [MarginItem, MarginItem];Inherited from
TokenMappedProps.insetInlineinsetInlineEnd?
optional insetInlineEnd?: SizeAuto;Inherited from
TokenMappedProps.insetInlineEndinsetInlineStart?
optional insetInlineStart?: SizeAuto;Inherited from
TokenMappedProps.insetInlineStartleft?
optional left?: SizeAuto;Inherited from
TokenMappedProps.leftletterSpacing?
optional letterSpacing?: SpacingText;Inherited from
TokenMappedProps.letterSpacinglineHeight?
optional lineHeight?:
| DimensionToken
| "normal"
| Wide
| NumberToken;Inherited from
TokenMappedProps.lineHeightmargin?
optional margin?: SizeAuto | Repeat1to4<MarginItem>;Inherited from
TokenMappedProps.marginmarginBlock?
optional marginBlock?: SizeAuto | readonly [MarginItem, MarginItem];Inherited from
TokenMappedProps.marginBlockmarginBlockEnd?
optional marginBlockEnd?: SizeAuto;Inherited from
TokenMappedProps.marginBlockEndmarginBlockStart?
optional marginBlockStart?: SizeAuto;Inherited from
TokenMappedProps.marginBlockStartmarginBottom?
optional marginBottom?: SizeAuto;Inherited from
TokenMappedProps.marginBottommarginInline?
optional marginInline?: SizeAuto | readonly [MarginItem, MarginItem];Inherited from
TokenMappedProps.marginInlinemarginInlineEnd?
optional marginInlineEnd?: SizeAuto;Inherited from
TokenMappedProps.marginInlineEndmarginInlineStart?
optional marginInlineStart?: SizeAuto;Inherited from
TokenMappedProps.marginInlineStartmarginLeft?
optional marginLeft?: SizeAuto;Inherited from
TokenMappedProps.marginLeftmarginRight?
optional marginRight?: SizeAuto;Inherited from
TokenMappedProps.marginRightmarginTop?
optional marginTop?: SizeAuto;Inherited from
TokenMappedProps.marginTopmaxBlockSize?
optional maxBlockSize?: SizeIntrinsic;Inherited from
TokenMappedProps.maxBlockSizemaxHeight?
optional maxHeight?: SizeIntrinsic;Inherited from
TokenMappedProps.maxHeightmaxInlineSize?
optional maxInlineSize?: SizeIntrinsic;Inherited from
TokenMappedProps.maxInlineSizemaxWidth?
optional maxWidth?: SizeIntrinsic;Inherited from
TokenMappedProps.maxWidthminBlockSize?
optional minBlockSize?: SizeIntrinsic;Inherited from
TokenMappedProps.minBlockSizeminHeight?
optional minHeight?: SizeIntrinsic;Inherited from
TokenMappedProps.minHeightminInlineSize?
optional minInlineSize?: SizeIntrinsic;Inherited from
TokenMappedProps.minInlineSizeminWidth?
optional minWidth?: SizeIntrinsic;Inherited from
TokenMappedProps.minWidthopacity?
optional opacity?: Numeric;Inherited from
TokenMappedProps.opacityorder?
optional order?: Numeric;Inherited from
TokenMappedProps.orderoutlineColor?
optional outlineColor?: ColorLike;Inherited from
TokenMappedProps.outlineColoroutlineOffset?
optional outlineOffset?: Size;Inherited from
TokenMappedProps.outlineOffsetoutlineWidth?
optional outlineWidth?: LineWidth;Inherited from
TokenMappedProps.outlineWidthpadding?
optional padding?: Size | Repeat1to4<PadItem>;Inherited from
TokenMappedProps.paddingpaddingBlock?
optional paddingBlock?: Size | readonly [PadItem, PadItem];Inherited from
TokenMappedProps.paddingBlockpaddingBlockEnd?
optional paddingBlockEnd?: Size;Inherited from
TokenMappedProps.paddingBlockEndpaddingBlockStart?
optional paddingBlockStart?: Size;Inherited from
TokenMappedProps.paddingBlockStartpaddingBottom?
optional paddingBottom?: Size;Inherited from
TokenMappedProps.paddingBottompaddingInline?
optional paddingInline?: Size | readonly [PadItem, PadItem];Inherited from
TokenMappedProps.paddingInlinepaddingInlineEnd?
optional paddingInlineEnd?: Size;Inherited from
TokenMappedProps.paddingInlineEndpaddingInlineStart?
optional paddingInlineStart?: Size;Inherited from
TokenMappedProps.paddingInlineStartpaddingLeft?
optional paddingLeft?: Size;Inherited from
TokenMappedProps.paddingLeftpaddingRight?
optional paddingRight?: Size;Inherited from
TokenMappedProps.paddingRightpaddingTop?
optional paddingTop?: Size;Inherited from
TokenMappedProps.paddingTopright?
optional right?: SizeAuto;Inherited from
TokenMappedProps.rightrowGap?
optional rowGap?: Size;Inherited from
TokenMappedProps.rowGapstroke?
optional stroke?: ColorLike;Inherited from
TokenMappedProps.stroketextDecorationColor?
optional textDecorationColor?: ColorLike;Inherited from
TokenMappedProps.textDecorationColortextIndent?
optional textIndent?: Size;Inherited from
TokenMappedProps.textIndenttextShadow?
optional textShadow?: ShadowLike;Inherited from
TokenMappedProps.textShadowtop?
optional top?: SizeAuto;Inherited from
TokenMappedProps.toptransitionDelay?
optional transitionDelay?: DurationToken | Wide;Inherited from
TokenMappedProps.transitionDelaytransitionDuration?
optional transitionDuration?: DurationToken | Wide;Inherited from
TokenMappedProps.transitionDurationtransitionTimingFunction?
optional transitionTimingFunction?: Easing;Inherited from
TokenMappedProps.transitionTimingFunctionwidth?
optional width?: SizeIntrinsic;Inherited from
TokenMappedProps.widthwordSpacing?
optional wordSpacing?: SpacingText;Inherited from
TokenMappedProps.wordSpacingzIndex?
optional zIndex?: Numeric;Inherited from
TokenMappedProps.zIndex761 more properties are inherited from KeywordProps and not listed individually.