Skip to content

refactor(editor): delete dead --color-docx-* @theme mappings from the host (styling Phase 3)#165

Merged
mhurhangee merged 1 commit into
mainfrom
refactor/editor-styling-host-theme
Jul 1, 2026
Merged

refactor(editor): delete dead --color-docx-* @theme mappings from the host (styling Phase 3)#165
mhurhangee merged 1 commit into
mainfrom
refactor/editor-styling-host-theme

Conversation

@mhurhangee

Copy link
Copy Markdown
Owner

Phase 3 of the styling consolidation. The plan was to relocate the host's editor-token @theme mappings into the editor; investigating, they're dead, so this deletes them instead.

What

The frontend index.css @theme inline block mapped 27 --color-docx-*var(--docx-*) entries, generating bg-docx-*/text-docx-*/border-docx-* utilities "the editor components use." Nothing uses them — the editor styles via raw var(--docx-*) (painter, overlays, its own CSS) + shadcn utilities from @patrick/ui. Deleted the mappings + their comment.

Why delete, not relocate

Moving dead config into the editor would just clutter it. Deleting achieves this phase's goal — the host stops hand-wiring editor tokens — and removes junk. The --docx-* token definitions (tokens.css) and the @source scan are untouched.

Safety

  • Zero -docx- utility usages anywhere (bg/text/border/ring/…-docx-*), static; dynamic bg-docx-${x} wouldn't be Tailwind-generated regardless, so there's no working usage to break.
  • ⚠️ A missing Tailwind utility is a silent no-op, not a build error — so this is guarded by the exhaustive grep, NOT by Vercel. Please confirm the no-usage claim in review.
  • pnpm check green · bun test 1739 pass.

… the host

The frontend index.css @theme block mapped 27 --color-docx-* utilities from the
editor's --docx-* tokens, ostensibly so editor components could use bg-docx-*/
text-docx-* classes. But nothing uses them: the editor styles via raw var(--docx-*)
(painter, overlays, its CSS) + shadcn utilities from @patrick/ui. Zero -docx-*
utility usages anywhere.

So delete the mappings rather than relocate dead config into the editor. The host
no longer hand-wires any editor token — the goal of this phase, better achieved by
removal. (A missing Tailwind utility is a silent no-op, not a build error, so this
is guarded by the zero-usage grep, not the Vercel build.)
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
patrick-web Ready Ready Preview, Comment Jul 1, 2026 1:17pm

@mhurhangee mhurhangee merged commit 8e827b7 into main Jul 1, 2026
3 checks passed
@mhurhangee mhurhangee deleted the refactor/editor-styling-host-theme branch July 1, 2026 13:19
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