Skip to content

Refactor/frontend theme tokens - #352

Merged
AlieNiT merged 2 commits into
mainfrom
refactor/frontend-theme-tokens
Jul 8, 2026
Merged

Refactor/frontend theme tokens#352
AlieNiT merged 2 commits into
mainfrom
refactor/frontend-theme-tokens

Conversation

@AlieNiT

@AlieNiT AlieNiT commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Ali.Hosseini and others added 2 commits July 8, 2026 03:41
Every menu, panel, modal, and message used its own ad-hoc palette
(Backpack blue, Bookshelf/Brain brown, Casino teal, Inbox gray, the
light-cyan map info boxes, etc.). Unify them all onto a single
slate + amber design system and extract the whole palette into
semantic tokens so Bermudia can be re-skinned from one place.

- Add a semantic theme palette in styles/main.css (@theme): surface,
  content, accent, semantic states (success/warning/danger/info[/-alt]),
  brand (login), and decorative (book spines, inventory-meter gradients,
  scene backdrop/sky). These generate Tailwind utilities
  (bg-surface, text-accent, border-danger, bg-danger-soft, ...).
- Add shared .panel* component classes for panel/modal chrome.
- Rewrite every component/page to reference the tokens instead of raw
  slate/amber/green/... utilities or hardcoded hex; no raw palette
  values remain in components.

Re-theming is now a single-block edit in main.css followed by a rebuild.
Build passes; lint clean (pre-existing warnings only).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The inbox (and any scrollable panel) never became scrollable: its
messages were flex items in the .panel-body column and shrank to fit,
collapsing into thin overlapping lines when the box held more than fit
at once — so no message was readable.

- Bound the panel: add min-height:0 / max-height:100% / overflow:hidden
  to .panel so its max-h-[80vh] cap is enforced inside VueFinalModal's
  centering flexbox.
- Stop children from shrinking: .panel-body > * { flex-shrink: 0 } so
  items keep their natural height and the body scrolls.

Verified in a headless browser with 15+ inbox messages at a constrained
height: body scrollHeight 2064 vs clientHeight 293, scrollable, items at
full height, no overlap; scrollTop responds.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@AlieNiT
AlieNiT merged commit 649bdd5 into main Jul 8, 2026
1 check passed
@AlieNiT
AlieNiT deleted the refactor/frontend-theme-tokens branch July 8, 2026 00:27
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