Back to Remotion

Studio CSS Reset

.agents/skills/studio-css-reset/SKILL.md

4.0.4871.0 KB
Original Source

Studio CSS Reset

Remotion Studio applies a broad CSS reset to UI elements. Treat every new nested element as reset-styled unless the local component gives it explicit visual styles.

When changing Studio UI:

  • Do not rely on a parent button or container for visible child text styles. Give wrapper spans or divs explicit fontFamily, fontSize, lineHeight, and either color or color: 'inherit'.
  • Preserve compact-row layout when introducing icon-plus-label markup. Use fixed icon dimensions, flexShrink: 0, and explicit label truncation styles such as minWidth, overflow, textOverflow, and whiteSpace.
  • Recheck hover and non-hover states after adding wrappers. The label should not grow, change row height, lose ellipsis, or change color unexpectedly.
  • Prefer fixing the shared Studio component once when the reset issue appears in a repeated row pattern.

For Studio code changes, run at least the focused Studio checks:

bash
bunx turbo run make --filter='@remotion/studio'
bunx turbo run lint test --filter='@remotion/studio'