Skip to content

Redesign editor with the Shell & Paper identity#2

Merged
raj-khan merged 9 commits into
mainfrom
feat/shell-paper-redesign
Jun 21, 2026
Merged

Redesign editor with the Shell & Paper identity#2
raj-khan merged 9 commits into
mainfrom
feat/shell-paper-redesign

Conversation

@raj-khan

Copy link
Copy Markdown
Owner

Overview

Revamps the editor's visual design from a generic neutral + teal scheme into a distinctive "Shell & Paper" identity, and adds several interactivity/usability features. No changes to the PDF pipeline — the preview still renders through github-markdown-css so it continues to exactly match the exported PDF.

Design

A typesetting bench for plain text: the source→print duality is made the spine of the layout.

  • Surfaces — a dark "shell" editor (IBM Plex Mono) beside a bright white "paper" sheet on warm canvas.
  • One accent — oxidized-ink rust #b5552f, used only on the export action, wordmark .sh, registration mark, crop marks, caret, and focus ring.
  • Type — Fraunces (display/wordmark), Hanken Grotesk (UI), IBM Plex Mono (editor).
  • Signature — rust crop-mark corners on the preview sheet + an "impression" press animation when a PDF is exported.

Interactivity & usability

  • Keyboard shortcuts: ⌘B / ⌘I / ⌘K / ⌘E in the editor, ⌘S and ⇧⌘E to export (with tooltips).
  • Focus mode — collapse the preview and compose full-width.
  • Reading-time in the status rail; export success/error toast; dark settings popover on mobile.
  • Accessibility: visible focus rings, aria-pressed toggles, prefers-reduced-motion respected.

Verification

  • npm run lint and npm run build pass.
  • Checked at 390 / 768 / 1440 px; Focus mode, export (toast + valid PDF), and the mobile settings menu interaction-tested.

Commits

Nine small, focused commits (tokens/fonts → shared primitives → export hook → toolbar → preview → header/controls → editor → copy → screenshot).

raj-khan added 9 commits June 21, 2026 13:48
Introduce a dark shell + warm paper palette with a single rust accent, a
print-shop typeface trio (Fraunces, Hanken Grotesk, IBM Plex Mono), and
the crop-mark and impression-animation primitives. Replaces the previous
generic neutral + teal scheme.
Move the wrap/prefix/insert transforms and applyEdit into one module so
the toolbar buttons and the editor's keyboard shortcuts share them.
useExport encapsulates the PDF export flow, surfaces a success/error
status for the toast, and toggles a transient pressing flag on the store
so the preview sheet can play its impression animation.
Use the shared editing primitives, group buttons, add shortcut hints, and
restyle for the dark shell.
Frame the document on a warm canvas as a white sheet with rust crop-mark
corners, and play the impression animation on export.
Serif wordmark with a print registration mark, the rust Export action
wired to useExport with a result toast and global export shortcuts, and
dark-surface document controls and settings popover.
Dark composing surface in IBM Plex Mono with caret accent, in-editor
keyboard shortcuts, a desktop Focus mode that hides the preview, and a
status rail showing word count and reading time.
@raj-khan
raj-khan merged commit 19d5231 into main Jun 21, 2026
2 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

Development

Successfully merging this pull request may close these issues.

1 participant