Skip to content

feat(webapp): restyle to tokens.xyz design system#78

Merged
dev-jodee merged 1 commit intomainfrom
feat/restyle-webapp-tokens-xyz
Apr 30, 2026
Merged

feat(webapp): restyle to tokens.xyz design system#78
dev-jodee merged 1 commit intomainfrom
feat/restyle-webapp-tokens-xyz

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • Light-only cream/sand theme replacing dark shadcn defaults; Inter Variable self-hosted with woff2 preload; @solana/design-system styles + base.css imports for semantic typography
  • Top-only fixed header with scroll-aware backdrop blur replaces sidebar app shell; horizontal nav with dropdown for nested Plans children; mobile collapses to dropdown menu
  • Bulk neutralization of decorative emerald/purple/blue/teal across 25+ files → foreground/sand; only semantic state colors retained (destructive red, warning amber for sunset/stale/expired/excluded)
  • Card aesthetic adopts .border-all-dashed-medium from tokens packages/ui (SOL/USDC/summary/plan/panel cards); subscribe + initialize primary actions switched to filled foreground buttons; WalletButton matched to ClusterButton height

Visual reference

Tokens.xyz cloned from solana-foundation/tokens. Source-of-truth files used:

  • packages/ui/src/globals.css — sand color scale, dashed borders, theme tokens
  • apps/web/src/app/layout.tsx — Inter preload, light-only Toaster config
  • apps/web/src/components/header.tsx — scroll-aware backdrop pattern

Test plan

  • just fmt clean
  • just check clean (lint + IDL/client gen + TS client build)
  • pnpm --filter webapp build succeeds
  • Manual: connect wallet, switch cluster, hit each route (/, /marketplace, /delegations, /subscriptions, /plans, /plans/collect, /faucet)
  • Manual: scroll header backdrop transition; mobile viewport (375px) nav collapse
  • Manual: Subscribe / Revoke / Cancel dialogs render correctly with new neutral palette

Preview

https://solana-subscriptions-program-potfuaz32-solana-foundation.vercel.app

Notes

  • Deleted dead files: app-footer.tsx, app-sidebar.tsx, theme-provider.tsx
  • Stripped dead --sidebar-* CSS variables from :root and @theme inline
  • next-themes package retained in dependencies (cleanup deferred — not imported)
  • Pre-existing TS errors in webapp/api/ and webapp/scripts/ (@solana/kit member changes) unrelated to this PR

Light-only cream/sand background, Inter Variable self-hosted, fixed
top-only header with scroll-aware backdrop blur. Dropped sidebar app
shell, dropped next-themes ThemeProvider. Migrated --foreground /
--muted-foreground / --border / --ring root tokens to sand scale.
Adopted DS semantic typography via @solana/design-system styles +
base.css imports.

Buttons rounded-full with active scale + motion-reduce. Panel cards
neutralized to white/cream with .border-all-dashed-medium accent.
Hero-entrance keyframe applied to marketplace plan grid. Inline code
pill styling: berkeley-mono, sand-200 bg, sand-300 border.

Bulk neutralized decorative emerald/purple/blue/teal across 25+ files
(text, backgrounds, borders, gradients) to foreground/sand. Kept only
semantic state colors: destructive red, warning amber (sunset/stale/
expired/excluded). Subscribe + Initialize primary actions switched to
filled foreground buttons. WalletButton sized to match ClusterButton.
Deleted dead app-footer, app-sidebar, theme-provider files. Stripped
dead --sidebar-* CSS variables.
@dev-jodee dev-jodee force-pushed the feat/restyle-webapp-tokens-xyz branch from fb2ba50 to 25bea49 Compare April 30, 2026 22:06
@dev-jodee dev-jodee merged commit 9c4ed4f into main Apr 30, 2026
8 checks passed
@dev-jodee dev-jodee deleted the feat/restyle-webapp-tokens-xyz branch April 30, 2026 22:09
@github-actions
Copy link
Copy Markdown

Compute Unit Report

Instruction Samples Min CUs Max CUs Avg CUs Est Cost (Low) [SOL] Est Cost (Med) [SOL] Est Cost (High) [SOL]
cancel_subscription 11 1805 2118 2003 0.000005000 0.000005080 0.000006001
close_subscription_authority 7 1881 1916 1886 0.000005000 0.000005075 0.000005943
create_fixed_delegation 38 3621 15616 5269 0.000005001 0.000005210 0.000007634
create_plan 84 3540 9553 4918 0.000005001 0.000005196 0.000007459
create_recurring_delegation 27 3640 11145 4757 0.000005001 0.000005190 0.000007378
delete_plan 8 416 416 416 0.000005000 0.000005016 0.000005208
init_subscription_authority 142 7431 30373 12300 0.000005003 0.000005492 0.000011150
revoke_delegation 19 318 585 420 0.000005000 0.000005016 0.000005210
subscribe 21 6666 15690 8462 0.000005002 0.000005338 0.000009231
transfer_fixed 6 10105 17602 12354 0.000005003 0.000005494 0.000011177
transfer_recurring 17 10212 13212 11390 0.000005003 0.000005455 0.000010695
transfer_subscription 10 10446 11995 10800 0.000005003 0.000005432 0.000010400
update_plan 21 424 500 474 0.000005000 0.000005018 0.000005237

Generated: 2026-04-30

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