Update Component
Use this skill when the component already exists and the task is to align it with new visual direction from a screenshot plus text instructions.
Trigger
Use this skill when the user asks in patterns like:
- •
Update the <component> from this screenshot (tv2Oj) - •
Adjust existing <component> to match this new design - •
Refine <component> styling based on this screenshot and notes
Required Inputs
Collect these before coding:
- •Existing component name/path to update
- •Screenshot reference (attachment, local image, or embedded screenshot)
- •Text description of the requested changes
- •Source theme:
- •
tv2Oj,tv2Nord,tv2Syd,tv2Fyn,tv2East, orkosmopol
- •
If any of these are missing, ask before implementation.
Hard Rules
- •Do not change markup by default.
- •Do not change component JS by default.
- •Update only the component CSS unless the user explicitly asks for markup/JS changes.
- •If markup changes are requested explicitly, keep them minimal and scoped to the existing component contract.
- •Use existing tokens first (
md.sys.*,news.sys.*, existing aliases); avoid new tokens unless explicitly requested. - •No page-level hacks or per-theme hardcoded forks in markup.
Workflow
- •Parse update scope from screenshot + text description.
- •Use Read Screenshot skill to extract exact visual deltas.
- •Confirm the provided theme as the canonical source style.
- •Locate existing component files in
assets/components/<component-name>/. - •Update CSS only to match requested visual changes:
- •Layout/spacing
- •Typography
- •Colors and effects
- •Responsive behavior
- •Keep selectors scoped to the component and avoid global leakage.
- •Validate in the specified source theme, then smoke-test remaining themes for regressions.
- •Report:
- •What changed
- •Files changed
- •Assumptions
- •Remaining deltas (if exact parity is blocked)
Acceptance Criteria
- •Existing component structure remains intact unless user explicitly requested markup changes.
- •Visual changes match screenshot and text description for the specified theme.
- •No global CSS leakage.
- •Theme switcher behavior remains intact.
- •Other themes still render without obvious regressions.