Skip to content

fix(ui): light-theme parity and remove duplicate primitives - #1027

Merged
IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
gerani1:fix/design-system-922-917-916
Oct 21, 2026
Merged

IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
gerani1:fix/design-system-922-917-916

Conversation

@gerani1

@gerani1 gerani1 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Closes #922,
closes #917,
closes #916.

  • [Design system] Light-theme parity pass #922: :root lacked the surface-/text- roles (and --text-disabled everywhere), so those utilities rendered nothing in light mode. Its subtle/border status tints and --chart-* tokens were dark-tuned, giving near-black badges and a black chart on white. Defined the missing roles, light tints and chart tokens; darkened success/warning/liquidation to

    =4.5:1 on white and restored the bright values (plus aliases) in .dark.
    Synced chart-theme light fallbacks, DESIGN.md and generated token docs.

  • [Design system] Two ConnectButton implementations #917: removed src/ui/connect-button.tsx, an unused duplicate of features/wallet ConnectButton referenced only by a test.
  • [Design system] Duplicate primitives between app and packages/ui #916: removed unused shared Modal, skeleton loaders and toast shim in favour of the @workspace/ui dialog/skeleton/toast.

Verified: ui tests, docs tests, build, check:content pass. Baseline main already fails lint, typecheck, check:tokens, changelog:validate and 234 web tests (identical count before/after); not touched here.

Closes SO4-Markets#922, closes SO4-Markets#917, closes SO4-Markets#916.

- SO4-Markets#922: :root lacked the surface-*/text-* roles (and --text-disabled
  everywhere), so those utilities rendered nothing in light mode. Its
  subtle/border status tints and --chart-* tokens were dark-tuned, giving
  near-black badges and a black chart on white. Defined the missing roles,
  light tints and chart tokens; darkened success/warning/liquidation to
  >=4.5:1 on white and restored the bright values (plus aliases) in .dark.
  Synced chart-theme light fallbacks, DESIGN.md and generated token docs.
- SO4-Markets#917: removed src/ui/connect-button.tsx, an unused duplicate of
  features/wallet ConnectButton referenced only by a test.
- SO4-Markets#916: removed unused shared Modal, skeleton loaders and toast shim in
  favour of the @workspace/ui dialog/skeleton/toast.

Verified: ui tests, docs tests, build, check:content pass. Baseline main
already fails lint, typecheck, check:tokens, changelog:validate and 234 web
tests (identical count before/after); not touched here.
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@Godbrand0 is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@gerani1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@IbrahimIjai
IbrahimIjai merged commit 2a5e8a1 into SO4-Markets:main Oct 21, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants