mcpbeat Sign in

Studio CSS Reset Agent Skill

Diagnose and fix Remotion Studio UI bugs caused by the global CSS reset. Use when nested text or SVG icons have incorrect color, typography, sizing, hover states, or truncation in packages/studio.

788 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
55471
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/remotion-dev/remotion --skill studio-css-reset

What comes with it

218 bytes besides the instruction
agents/openai.yaml

The instruction itself

5 sections, as written by the author

Studio CSS Reset

Remotion Studio's reset targets both the reset container and every descendant. A child does not necessarily inherit the visual styles of its parent: the reset may give that child its own computed value instead.

Diagnose the affected element

Inspect the element that actually paints the pixels, not only its parent:

  • For text, inspect the span, div, or other text wrapper.
  • For SVG icons, inspect the painted path, circle, or rect as well as the outer svg.
  • Compare computed styles in every relevant state: idle, hovered, selected, focused, and disabled.
  • Check whether the value comes from an inline style, SVG presentation attribute, inheritance, or the .css-reset, .css-reset * rule.

Apply explicit local styles

Do not assume that styling the row, button, or outer SVG is enough.

For text wrappers, explicitly set the visual properties the component depends on, such as:

const labelStyle: React.CSSProperties = {
	fontFamily: 'inherit',
	fontSize: 13,
	lineHeight: 'normal',
	color: 'inherit',
};

Use color: 'inherit' only when the styled element directly paints the text. It does not protect deeper descendants that receive their own reset value.

For SVG icons, remember that fill="currentColor" resolves against the computed color of the painted SVG element. If the reset sets color: white on the inner <path>, setting color: 'inherit' only on the outer <svg> will not fix it. Pass the concrete state color to the component that renders the painted element:

<AssetFileIcon color={hovered || selected ? WHITE : LIGHT_TEXT} />

Prefer a concrete fill, stroke, or color prop when the icon has state-dependent colors. Use currentColor only after confirming that the painted descendants inherit the intended color.

Preserve compact row layout

When adding icon-and-label markup:

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

Prefer fixing a shared Studio component once when the same row or icon pattern is reused.

Verify the result

Do not stop after checking that the code compiles. In a running Studio, inspect the computed style of the element that paints the pixels in both idle and interactive states. Confirm that labels and icons change together and that selection does not mask a broken hover state.

For Studio code changes, run at least:

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

Other skills for the same job

different authors, same section of the catalogue
Theme Factory
by anthropics
vendor ×16

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

36k tokens
Brand Guidelines
by anthropics
vendor ×13

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

3k tokens
Artifacts Builder
by JayZeeDesign
×8

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

11k tokens scripts
Web Artifacts Builder
by anthropics
vendor ×7

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

11k tokens scripts
Frontend Design
by Karanjot786
×6

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

1k tokens
Frontend Design
by anthropics
vendor ×4

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

5k tokens
Expo Tailwind Setup
by openai
vendor ×4

Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling

3k tokens
Use Dom
by openai
vendor ×3

Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally.

3k tokens

How to use it

Copy the folder

Take remotion-dev/studio-css-reset from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.