microsoft / microsoft/pxt

themes: theme changes aren't rebuilt by `pxt serve`

Open
#10,584 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

When running pxt serve in a target folder, when I make a change to theme css, (for example changing a color in the target's theme/color-theme/overrides/<target>-default-overrides.css), the cli will report "rebuilding css" and "css build complete", but the changes are not reflected in the target after reloading.

Workround: restarting pxt serve loads the new css.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by running pxt serve in a target folder and editing theme/color-theme/overrides/<target>-default-overrides.css. Trace the CSS rebuild entry point and verify whether the edited theme is included after reload. Done means theme changes appear without restarting pxt serve, with regression coverage if the existing test setup supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
build-system, cli, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.