studio-css-reset

Diagnose and fix Remotion Studio UI bugs caused by the global CSS reset.

57.9k|4.4k|Updated Jun 23, 2020
One-click install
npx skills add https://github.com/remotion-dev/remotion --skill studio-css-reset
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: studio-css-reset
Source: https://github.com/remotion-dev/remotion/tree/main/.agents/skills/studio-css-reset
Command: npx skills add https://github.com/remotion-dev/remotion --skill studio-css-reset

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remotion Studio applies a global CSS reset that targets both the reset container and every descendant, which can cause nested text and SVG icons to render with incorrect color, typography, sizing, hover states, or truncation. This Skill provides a systematic approach to diagnosing the actual painted element and applying explicit local styles to fix the visual regression.

Core Features & Use Cases

  • Element-Level Diagnosis: Inspect the specific span, div, path, or rect that paints pixels rather than only its parent, and compare computed styles across idle, hovered, selected, focused, and disabled states.
  • Explicit Local Style Application: Set concrete font, color, and layout properties on text wrappers and SVG icons, using color: 'inherit' only when the styled element directly paints the content.
  • Compact Row Layout Preservation: Apply fixed icon dimensions, flexShrink: 0, and proper text truncation styles to maintain consistent row height and ellipsis behavior.
  • Use Case: When a Studio sidebar row shows the wrong icon color on hover because the reset sets color: white on the inner <path>, use this Skill to pass a concrete state color to the icon component and verify the computed style in a running Studio.

Quick Start

Use the studio-css-reset skill to diagnose why nested labels and icons in the Remotion Studio sidebar lose their hover color and apply explicit local styles to fix the reset inheritance issue.

Frequently Asked Questions about studio-css-reset

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Remotion Studio UI elements losing their hover color after a CSS reset change?

Inspect the actual painted element such as the inner SVG path or text span, not just the parent. The reset targets descendants, so set explicit color or fill props on the element that paints pixels, and verify computed styles in idle and hovered states.

Why does color: inherit not fix my SVG icon color in Remotion Studio?

fill="currentColor" resolves against the computed color of the painted SVG element. If the reset sets color on the inner path, setting color: inherit only on the outer svg will not propagate. Pass a concrete state color prop to the icon component instead.

How do I prevent text truncation issues in Remotion Studio row layouts?

Give labels minWidth: 0, overflow: hidden, textOverflow: ellipsis, and whiteSpace: nowrap when truncation is required. Give icons fixed dimensions and flexShrink: 0, and confirm wrappers do not change row height or spacing.

What computed styles should I check when debugging Studio CSS reset bugs?

Compare computed styles in idle, hovered, selected, focused, and disabled states. Check whether values come from inline styles, SVG presentation attributes, inheritance, or the .css-reset, .css-reset * rule to identify the reset override.

When should I fix a shared Studio component versus a local style override?

Prefer fixing a shared Studio component once when the same row or icon pattern is reused across multiple call sites. Use local style overrides only for one-off cases where the reset inheritance issue is isolated to a single component.