mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1578] [Feature]: Reduce or intentionally budget the main CSS asset #817
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1578
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
pnpm buildcurrently emits a main CSS asset over 500 kB:dist/assets/index-DFM6BbNV.css: 510.48 kB, gzip 63.18 kBThe repo also has a configured
size-limitCSS budget of 250 kB fordist/assets/*.css, so the current main CSS size needs either reduction or an explicit budget decision.Source-size clues from the current checkout:
src/styles/globals.css: 99.57 kB sourcesrc/styles/themes/sillytavern.css: 17.43 kB sourceProposed behavior
Audit the main CSS asset and choose an intentional CSS strategy.
Possible implementation work:
src/styles/globals.cssinto feature-owned CSS imported by lazy feature chunks where Vite can split it;size-limitbudget is still the correct target, then make the build and budget agree.Expected owner or impact area
Refactor branch considerations
CSS changes need visual proof on the native Tauri path for affected surfaces. Do not remove styling just to hit a number; preserve app shell, tracker, roleplay/game presentation, and Professor Mari visuals.
Acceptance checks:
pnpm buildpasses.pnpm exec size-limitpasses, or the CSS budget is updated with an explicit rationale.Alternatives considered
Raising the CSS budget without auditing would remove the failure pressure but would not tell maintainers whether the CSS is genuinely needed, globally scoped by accident, or better split by feature.
Additional context
This is one implementation slice under #1532.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 29, 2026):
Triage note: labeling this as
scope-riskbecause CSS reduction may require theme/component style ownership decisions or an intentional budget change.A good next step is to measure CSS owners and either split/reduce a focused owner or explicitly update the budget.
@SpicyMarinara commented on GitHub (Jun 1, 2026):
We just need to make our CSS/HTML files cleaner.
@SpicyMarinara commented on GitHub (Jun 1, 2026):
Closed after re-measuring current refactor output.
Findings:
Decision:
Verification: