Skip to main content

Module style

Module style 

Source
Expand description

CssStyle — typed mirror of the CSS properties supported by the engine.

Scope: Remotion-equivalent (Flex, Grid, Block, transforms 2D/3D, filters, gradients, position absolute/relative, box-shadow, border-radius, opacity, clip-path). Excludes: inline boxes, floats, tables, position sticky/fixed.

Structs§

AudioReactive
Bind a CSS property to audio analysis data.
BorderEdges
border: 1px solid red modeled per side.
BorderSide
BoxShadow
CssStyle
Top-level CSS style block. All fields are optional; None means “not set” and lets the cascade fill in inherited / initial values.
GradientStop
GridLine
TextDecoration
TextShadow
TransformOrigin

Enums§

AlignContent
AlignItems
AlignSelf
AudioReactiveProperty
Which CSS property to modulate with audio.
AudioSource
The audio data source for an AudioReactive binding.
AudioSourceTag
Tag-only variant for the amplitude source.
AutoKw
Background
BackgroundLayer
BackgroundRepeat
BackgroundSize
BlendMode
BorderRadius
Border-radius: uniform or per-corner.
BorderStyle
BoxSizing
ClipPath
Color
Typed color. Strings are parsed lazily (“#rgb”, “rgba(..)”, named colors).
Display
Edges
Edge values for margin / padding. Either uniform or per-side.
FilterFn
FlexDirection
FlexWrap
FontStyle
FontWeight
FontWeightKw
Gap
gap: 8px (uniform) or gap: 8px 16px (row-gap, column-gap).
GridAutoFlow
GridLineEnd
GridTrack
A single grid track (column or row) sizing function.
GridTrackKeyword
JustifyContent
JustifyItems
JustifySelf
LineHeight
line-height: 1.5 (number) or line-height: 24px (length).
LineHeightKw
Overflow
OverflowWrap
Position
RadialShape
Size
width: <length> / width: auto / width: 50% / width: max-content / etc.
SizeKeyword
StyleTransition
transition config: bare number = duration in seconds with the default easing, or a { duration, easing } object.
TextAlign
TextDecorationLine
TextDecorationStyle
TextOverflow
TransformFn
Visibility
WhiteSpace

Constants§

MIN_LEGIBLE_FONT_RATIO
TEXT_AUTOFIT_MIN_FONT_PX
MIN_LEGIBLE_FONT_RATIO evaluated at a fixed 1920×1080 reference canvas (≈12.96px) — text-autofit’s shrink floor.