Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
CLAUDE.md: Add guidance for CSS dependency removal.
Alya Abbott2f7f19be3a10
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.mdindex 96fd80a4687..7651f7e1257 100644--- a/.claude/CLAUDE.md+++ b/.claude/CLAUDE.md@@ -123,6 +123,12 @@ Zulip has over 185,000 words of developer documentation. Before working on any aare immediately overridden by a more specific selector, duplicatedselector lists, or cases where scoping (e.g., `:not()`) wouldeliminate the need for an override.+- **Check CSS change scope.** When modifying CSS, always check what+ other pages or components use the same selectors, files, and+ classes. Use `git grep` on class names and check webpack bundle+ entries to understand which pages load the file. Prefer scoped+ overrides (e.g., `.parent .target`) over modifying shared rules,+ to avoid unintended changes to other parts of the app.See: https://zulip.readthedocs.io/en/latest/contributing/code-style.html@@ -486,6 +492,13 @@ Recommend pausing for discussion when:6. Verify completeness: use `git grep` to find all occurrences andconfirm nothing was missed+When removing a CSS dependency (e.g., Bootstrap), audit the full+property list of every rule, not just visually obvious properties like+colors and backgrounds. Subtle properties like `line-height`, `margin`,+`padding`, `text-decoration`, `font-weight`, and `border` are easy to+miss but cause visible regressions. Check inherited properties too —+e.g., a `body` rule's `line-height` or `margin` affects all descendants.+## Key Documentation Links- Contributing guide: https://zulip.readthedocs.io/en/latest/contributing/contributing.html