You're reading the v2 beta docs. For the stable release, switch to v1 →
TakumiTakumi

Reference

List of everything in Takumi.

Node Types

Every node is a container, text, or image. They share a common set of fields and add a few of their own.

All nodes accept these fields:

Prop

Type

Description

tagName?string

Element tag name used for HTML preset and selector matching

className?string

Element class name used for selector matching

id?string

Element id used for selector matching

preset?Style

Default HTML element styles (lowest priority)

style?Style

Inline styling properties (highest priority)

tw?string

Tailwind classes (medium priority, overrides preset)

lang?string

BCP-47 language tag; inherited by descendants, drives locale-aware shaping

Container

Groups other nodes and arranges them in a layout. Adds:

Prop

Type

Description

children?Node[]

Children nodes

Text

Displays text. Adds:

Prop

Type

Description

textstring

Text content to be displayed

Image

Displays a rasterized image or SVG. Adds:

Prop

Type

Description

srcstring

The source URL / persistent image key to the image

width?number

Overwrite the intrinsic width of the image

height?number

Overwrite the intrinsic height of the image

Style Properties

Properties use their camelCase names. Longhands are listed in parentheses. Supported means the property follows its CSS spec.

Layout & display

PropertyValues
displaynone, flex, inline-flex, grid, inline-grid, block, inline-block, inline
positionrelative, absolute, static, fixed
directionSupported
floatSupported
clearSupported
zIndexSupported
orderSupported
overflow (overflowX, overflowY)visible, clip, hidden
objectFitSupported
objectPositionSupported
boxSizingSupported
visibilityvisible, hidden
contentSupported

Sizing

PropertyValues
width, heightSupported
minWidth, maxWidthSupported
minHeight, maxHeightSupported
aspectRatioSupported

Spacing

PropertyValues
padding (paddingTop, paddingRight, paddingBottom, paddingLeft, paddingInline, paddingBlock)Supported
margin (marginTop, marginRight, marginBottom, marginLeft, marginInline, marginBlock)Supported
inset (top, right, bottom, left, insetInline, insetBlock)Supported
gap (columnGap, rowGap)Supported

Border & outline

PropertyValues
borderWidth (borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, borderInlineWidth, borderBlockWidth)thin, medium, thick, <length>
borderStylesolid, none
borderColorSupported
borderRadius (borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius)Supported
outlineWidththin, medium, thick, <length>
outlineStylesolid, none
outlineColorSupported
outlineOffsetSupported

Flexbox

PropertyValues
flex (flexBasis, flexGrow, flexShrink)Supported
flexDirectionSupported
flexFlowSupported
flexWrapnowrap, wrap, wrap-reverse
justifyContent, justifyItems, justifySelfSupported
alignContent, alignItems, alignSelfSupported
placeContent, placeItems, placeSelfSupported

Grid

PropertyValues
gridTemplateColumns, gridTemplateRows, gridTemplateAreasSupported
gridAutoColumns, gridAutoRows, gridAutoFlowSupported
gridColumn (gridColumnStart, gridColumnEnd)Supported
gridRow (gridRowStart, gridRowEnd)Supported
gridArea (gridRowStart, gridColumnStart, gridRowEnd, gridColumnEnd)Supported

Background & mask

PropertyValues
backgroundImagelinear-gradient(), radial-gradient(), conic-gradient(), repeating-linear-gradient(), repeating-radial-gradient(), repeating-conic-gradient(), url()
backgroundColorSupported
backgroundPosition, backgroundSize, backgroundRepeatSupported
backgroundClip, backgroundBlendModeSupported
maskImage, maskSize, maskPosition, maskRepeatSupported

Effects & transform

PropertyValues
boxShadowSupported
opacitySupported
filter<filter-function>
backdropFilter<filter-function>
mixBlendModeSupported
isolationSupported
transform (translateX, translateY, rotate, scaleX, scaleY)2D only
transformOriginSupported
clipPath<basic-shape>
clipRuleSupported
imageRenderingauto, smooth, pixelated
strokeLinejoinmiter, round, bevel

Animation

PropertyValues
animationNameSupported
animationDurationSupported
animationDelaySupported
animationTimingFunctionlinear, ease, ease-in, ease-out, ease-in-out, step-start, step-end, steps(), cubic-bezier()
animationIterationCountSupported
animationDirectionSupported
animationFillModeSupported
animationPlayStateSupported

Typography

PropertyValues
colorSupported
fontFamilyFont fallback supported
fontSizeSupported
fontWeightSupported
fontStyleSupported
fontStretchSupported
fontVariationSettingsSupported
fontFeatureSettingsSupported
fontSynthesisnone, weight, style
fontSynthesisWeightauto, none
fontSynthesisStyleauto, none
lineHeightSupported
letterSpacingSupported
wordSpacingSupported
textIndentSupported
textAlignSupported
verticalAlignSupported
textTransformnone, uppercase, lowercase, capitalize
textShadowSupported
textOverflowellipsis, clip, custom character
lineClampnone, <integer>, <integer> <block-ellipsis>
maxLinesnone, <integer>
blockEllipsisnone, auto, <string>
continuenormal, collapse
overflowWrapSupported
wordBreaknormal, break-all, keep-all, break-word
whiteSpacenormal, pre, pre-wrap, pre-line, <text-wrap-mode> <white-space-collapse>
whiteSpaceCollapsepreserve, collapse, preserve-spaces, preserve-breaks
textWrap (textWrapMode, textWrapStyle)wrap, nowrap; auto, balance, pretty
textFitSupported
textDecoration (textDecorationLine, textDecorationStyle, textDecorationColor, textDecorationThickness)underline, line-through, overline; solid
textDecorationSkipInkauto, none
WebkitTextStroke (WebkitTextStrokeWidth, WebkitTextStrokeColor, WebkitTextFillColor)Supported
Edit on GitHub

Last updated on

On this page