refactor(site): migrate some components from emotion to tailwind#24182
Merged
refactor(site): migrate some components from emotion to tailwind#24182
Conversation
Replace Emotion css prop and useTheme with Tailwind utility classes in DividerWithText, TimelineDateRow, SelectedTemplate, and TemplateDocsPage. Theme token mapping: - theme.palette.background.paper → bg-surface-primary - theme.palette.divider → border-border - theme.palette.text.secondary → text-content-secondary
jeremyruppel
reviewed
Apr 9, 2026
jeremyruppel
approved these changes
Apr 9, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Replace Emotion
cssprop anduseThemewith Tailwind utility classes in 4 components that had no MUI dependency — only Emotion styling.DividerWithText: EmotionInterpolation<Theme>styles → Tailwind flex/border/text utilitiesTimelineDateRow: Emotioncsstagged template +useTheme→ Tailwind with arbitrary variant selectorsSelectedTemplate: EmotionInterpolation<Theme>styles → Tailwind layout/color utilitiesTemplateDocsPage: EmotionuseTheme+cssprop → Tailwind (was already partially migrated)Theme token mapping used throughout:
theme.palette.background.paperbg-surface-primarytheme.palette.dividerborder-bordertheme.palette.text.secondarytext-content-secondaryNet: -82 lines, +19 lines. Four fewer files importing from
@emotion/react.