Skip to content

refactor(css): split styles.css by UI surface into 15 files (Round E,#253) - #261

Closed
somewan820 wants to merge 1 commit into
apache:mainfrom
somewan820:css-round-e-split-by-surface
Closed

refactor(css): split styles.css by UI surface into 15 files (Round E,#253)#261
somewan820 wants to merge 1 commit into
apache:mainfrom
somewan820:css-round-e-split-by-surface

Conversation

@somewan820

Copy link
Copy Markdown
Contributor

Split the 13733-line @layer components block into 15 surface- focused files under apps/desktop/src/renderer/styles/:

sidebar / onboarding / module-pages / chat-header / chat-message
tool-output / composer / settings / reasoning-panel / markdown-link
permission-center / health-center / tool-stream / daily-review
theme-glass

styles.css is now a ~215-line entry: imports, :root, @theme inline, @layer base, then 15 @import "..." layer(components) statements for the split files. Uses CSS standard @import layer() syntax (not @layer-wrapped @import, which lightningcss/tailwind build chain does not support).

Pure file relocation — no rule, selector, property, or comment changed. Verified:

Part of issue #253 Round E.

…pache#253)

Split the 13733-line @layer components block into 15 surface-
focused files under apps/desktop/src/renderer/styles/:

  sidebar / onboarding / module-pages / chat-header / chat-message
  tool-output / composer / settings / reasoning-panel / markdown-link
  permission-center / health-center / tool-stream / daily-review
  theme-glass

styles.css is now a ~215-line entry: imports, :root, @theme inline,
@layer base, then 15 @import "..." layer(components) statements
for the split files. Uses CSS standard @import layer() syntax (not
@layer-wrapped @import, which lightningcss/tailwind build chain does
not support).

Pure file relocation — no rule, selector, property, or comment
changed. Verified:
  - vite build:renderer succeeds, CSS output 432KB
  - apache#256 renderer-style-pruning-contract test passes (2/2)
  - computed style comparison: 3480 selectors, 0 mismatches
  - all 15 segment files lightningcss-parse VALID

Part of issue apache#253 Round E.
@somewan820 somewan820 closed this Jun 25, 2026
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