Skip to content

Brand restyle: raafetchoukri.com (light/dark, theme toggle, mobile nav) - #17

Merged
Raafet57 merged 2 commits into
mainfrom
feat/brand-restyle-raafetchoukri
Jun 30, 2026
Merged

Brand restyle: raafetchoukri.com (light/dark, theme toggle, mobile nav)#17
Raafet57 merged 2 commits into
mainfrom
feat/brand-restyle-raafetchoukri

Conversation

@Raafet57

Copy link
Copy Markdown
Owner

Ports the design_handoff_payment_intelligence_brand/ restyle into the React/TS suite. The HTML *.dc.html files are committed as design references only (not shipped as production code).

What changed

Tokens & theme system (src/index.css, tailwind.config.ts)

  • Design-exact light + dark palette. The README's hex values are mapped to the repo's existing HSL-triplet CSS vars, so every Tailwind color rebrands at once and all pages restyle through the token system.
  • Added derived tints (--p10/--p20/--a10/--a20), capability badge colors (light/dark), and card-hover / card-border Tailwind colors.
  • Brand "no drop shadows" rule: depth now comes from borders + hover surface shifts. practice-card / button helpers updated; 8px button radius.
  • Inter + JetBrains Mono loaded via Google Fonts.

Dark mode + toggle (index.html, src/lib/useTheme.ts, SuiteHeader.tsx)

  • Pre-paint shell script applies the OS color-scheme before first paint (no flash) and exposes window.__theme.
  • Header sun/moon toggle flips the theme for the session.

Header / footer (SuiteHeader.tsx, SuiteFooter.tsx)

  • RC avatar (1px ring), "Payment Intelligence / Modules" wordmark, LinkedIn glyph, theme toggle, and a responsive 900px hamburger drawer (auto-closes on navigate and on resize back to desktop; affordance; active-route highlight). Footer aligned to the card surface.

Copy: em dashes removed (visible copy: 142 -> 0)

  • Swept src/ + public/ sample manifests. Replaced uniformly with the brand's middle-dot · separator (already used in the footer + README), so generated strings and their test assertions stay in lockstep. The BIC snapshot generator and its committed artifact were updated together.

Sample data unified to the canonical payment

  • Default Scrubber pacs.008 and a new featured Storyteller pacs.008 ("Serial customer credit transfer") now reflect Okonkwo Logistics GmbH -> Meridian Trading Ltd, EUR 18,720.00, value date 2026-06-12, TX-20260612-7741 / INV-7741-2026, remittance "Invoice 7741 freight services May 2026". IBAN (DE89…) and BIC (DEUTDEFF) examples already matched. Other Scenarios/Storyteller archetypes intentionally left as distinct samples.

Routing, gated-connector behavior, and the privacy posture are unchanged.

Decisions to review

  1. Theme is NOT persisted (your call): the homepage privacy card visibly states "No localStorage or cookies." The README asked to persist theme to localStorage, which would contradict that claim, so theme follows the OS preference + a session toggle and stores nothing. To enable persistence later, reintroduce a storage write in the index.html shell and soften that copy line.
  2. LinkedIn URL is a best guess (https://www.linkedin.com/in/raafetchoukri, constant BRAND_LINKEDIN_URL in SuiteHeader.tsx) — the design left the href blank. Confirm/replace.

Verification

Locally green: lint, format:check, typecheck, test (263 passing), audit:privacy, build. Visually checked light + dark, theme toggle, and mobile drawer.

data:iban:check / data:bic:check / data:cbpr:check could not run locally — they regenerate from SWIFT reference files not on this machine. CI runs the full pnpm verify. The BIC generator and its committed snapshot were edited together so byte-equality holds.

Not in this PR

Per-page layout is rebranded via the token system rather than bespoke pixel-by-pixel reconstruction of each *.dc.html. Deeper per-page layout polish (e.g. exact two-column workspace specs on individual tool pages) can follow up.

Raafet57 and others added 2 commits June 30, 2026 14:06
… mobile nav)

Ports the design handoff brand language into the React/TS suite:

- Tokens: design-exact light + dark palette in src/index.css (hex mapped to
  the repo's HSL-triplet vars so every Tailwind color rebrands at once);
  derived p10/p20/a10/a20 tints, capability badge colors, no drop shadows
  (depth via borders + hover tints per the brand rule). Inter + JetBrains Mono.
- Dark mode: pre-paint shell script applies the OS color-scheme before first
  paint; header sun/moon toggle flips it for the session. Not persisted, to
  keep the visible "No localStorage or cookies" privacy claim true.
- SuiteHeader: RC avatar, "/ Modules" wordmark, LinkedIn glyph, theme toggle,
  and a responsive 900px mobile hamburger drawer (auto-closes on navigate and
  on resize back to desktop). SuiteFooter aligned to the card surface.
- Copy: removed every em dash from visible copy (142 -> 0 across src + public
  sample manifests), uniformly replaced with the brand's middle-dot separator
  so generated strings and their test assertions stay in lockstep.
- Sample data: default Scrubber + new featured Storyteller pacs.008 now reflect
  the canonical Okonkwo Logistics -> Meridian Trading payment (EUR 18,720.00,
  TX-20260612-7741 / INV-7741-2026). IBAN/BIC examples already matched.
- Routing, gated-connector behavior, and the privacy posture are unchanged.

Verified locally: lint, format:check, typecheck, test (263), audit:privacy,
build all pass. The data:*:check steps require external SWIFT reference files
not present locally; CI runs them (the BIC generator + committed snapshot were
updated together so byte-equality holds).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…cy boundary

The CDN <link>/preconnect tags made cross-origin requests, failing the e2e
privacy-boundary specs (smoke, ssi, workbench) which assert zero external
requests. Inter + JetBrains Mono are already first in the Tailwind font stack
with system fallbacks, matching the repo's request-free pattern.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Raafet57
Raafet57 merged commit 17ea740 into main Jun 30, 2026
1 check passed
@Raafet57
Raafet57 deleted the feat/brand-restyle-raafetchoukri branch June 30, 2026 06:27
Raafet57 added a commit that referenced this pull request Jun 30, 2026
Brand restyle: raafetchoukri.com (light/dark, theme toggle, mobile nav)
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