Repository navigation
style: use canonical tailwind class names - #1659
Merged
joshunrau merged 1 commit intoOct 6, 2026
Merged
Conversation
Rewrite every class that Tailwind CSS IntelliSense flags under suggestCanonicalClasses to the spelling tailwindcss 4.3.3's canonicalizeCandidates returns (root font size 16px), e.g. h-[1px] -> h-px, w-[180px] -> w-45, bg-gradient-to-br -> bg-linear-to-br, data-[disabled]: -> data-disabled:. Each canonical form compiles to the same CSS, so rendering is unchanged. Covers apps/web, apps/playground and apps/outreach; no other workspace had findings. Co-Authored-By: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Rewrites every class Tailwind CSS IntelliSense flags under
suggestCanonicalClassesto its canonical spelling: 53 classes across 32 files inapps/web(29),apps/playground(16) andapps/outreach(8). No other workspace had findings.Typical rewrites:
h-[1px]/w-[1px]h-px/w-pxw-[180px],max-w-[70rem],sm:max-w-[600px]w-45,max-w-280,sm:max-w-150bg-gradient-to-brbg-linear-to-brdata-[disabled]:opacity-50data-disabled:opacity-50[&_[cmdk-group-heading]]:px-2**:[[cmdk-group-heading]]:px-2max-w-screen-mdmax-w-3xlbreak-wordswrap-break-wordEach canonical form compiles to the same CSS, so nothing renders differently. Some arbitrary pixel values become fractional spacing steps (
w-22.5,sm:max-w-112.5,sm:max-w-118.75), which is what the lint asks for. InHeader.astrothetranslate-x-112class toggled byclassListin the<script>was renamed with the markup, so the two still match.Verification
designSystem.canonicalizeCandidates(the API the IntelliSense lint calls, root font size 16px), run per class over every tracked file in each workspace against its own CSS entrypoint. It reports 0 after the change.pnpm lint,pnpm test:coverage(100% on every metric) andpnpm test:e2e(277 passed) are green.Exception: no unit or e2e test was added. The change only renames classes to equivalent spellings with identical CSS output, so there is no behaviour for a test to cover.
Co-Authored-By: Claude Opus 5.5