refactor(frontend): inline styles to Tailwind, CSS layer fix, theme switch bug#57
Merged
radicalkjax merged 2 commits intomainfrom Feb 24, 2026
Merged
refactor(frontend): inline styles to Tailwind, CSS layer fix, theme switch bug#57radicalkjax merged 2 commits intomainfrom
radicalkjax merged 2 commits intomainfrom
Conversation
… fix CSS layer ordering
Convert all inline style={{}} attributes to Tailwind utility classes across 72 files (UI primitives, layout, navigation, views, modals). Move custom CSS reset and base styles into @layer base to prevent unlayered styles from overriding Tailwind utilities — fixes visual regression where padding/margin was stripped from all components.
Also: expand @theme token map, add logger abstraction, centralize magic number constants, harden postMessage with targetOrigin, extract static objects to module scope.
… useThemeStore.getState() inside the effect instead. The effect now only fires when the current profile changes (e.g., switching profiles), not when the theme store updates from user action.
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.
Summary
style={{}}attributes to Tailwind classes across 72 files (UI primitives, layout, navigation, views, modals)* { padding: 0; margin: 0 }) into@layer base— unlayered styles were overriding Tailwind utilities, causing all padding/margin to be strippedcurrentThemeIdfrom the profile-syncuseEffectdependency array in App.tsx — it was causing a snap-back loop when changing themes in Settingslib/logger.tsreplacing rawconsole.*callslib/constants.tsfor delay/timeout/interval valuestargetOriginto allpostMessagecalls, removedas anycastsas constTest plan
pnpm typecheck— passes cleanpnpm build— builds successfullypnpm dev:desktop) — verify dashboard layout renders correctly with proper padding, headers, sidebar spacing