Skip to content

fix(cli): preserve user CSS and keep globals.css valid on theme re-apply - #35

Open
elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:upstream-pr/cli-preserve-user
Open

elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:upstream-pr/cli-preserve-user

Conversation

@elviskahoro

Copy link
Copy Markdown

Summary

fix(cli): preserve user CSS and keep globals.css valid on theme re-apply

Testing

Regression tests: tests/test_cli_apply_theme.py . The full test suite passes against current LineIndent/native main.

🤖 Generated with Claude Code

Delimit the CLI-managed theme with sentinel comments, fall back to a
conservative top-level :root/.dark pair match for legacy files, and
otherwise prepend. User CSS (incl. @import) is never discarded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant