Skip to content

chore: point oxfmt's Tailwind sorter at the panel's own stylesheet - #109

Merged
awdr74100 merged 1 commit into
mainfrom
chore/oxfmt-tailwind-stylesheet
Jul 26, 2026
Merged

chore: point oxfmt's Tailwind sorter at the panel's own stylesheet#109
awdr74100 merged 1 commit into
mainfrom
chore/oxfmt-tailwind-stylesheet

Conversation

@awdr74100

Copy link
Copy Markdown
Owner

Summary

  • sortTailwindcss was enabled with the default stylesheet (Tailwind's stock theme), so the panel's custom @theme tokens (text-fg, text-meta, animate-ping-ring, bg-hover, ...) sorted as unrecognized classes instead of by category.
  • Point it at packages/plugin/ui/style.css — which itself @imports tailwindcss before layering the panel's custom tokens — so both stock and custom classes sort together correctly.
  • Reformatted the 7 Vue files this affected, and allowlisted "stylesheet" in .cspell.json.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm knip
  • pnpm build
  • pnpm test (172 files, 1212 tests passed)

sortTailwindcss defaulted to the stock Tailwind theme, which has no idea
about the panel's custom @theme tokens (text-fg, animate-ping-ring, etc.),
so those classes sorted as unrecognized instead of by category. Pointing
it at packages/plugin/ui/style.css — which itself @imports tailwindcss —
picks up the stock theme and the custom tokens together, fixing sort
order across the panel's Vue components.
@awdr74100
awdr74100 merged commit 59f5901 into main Jul 26, 2026
2 checks passed
@awdr74100
awdr74100 deleted the chore/oxfmt-tailwind-stylesheet branch July 26, 2026 18:44
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