From 0f4b5f3d252e5984eddee4a1bc5a84b15eb6a5ca Mon Sep 17 00:00:00 2001 From: Abraham Date: Wed, 22 Jul 2026 16:22:26 -0700 Subject: [PATCH 1/2] chore(visimer/site): subtler CodeCard scrollbars (#2855) The OS default scrollbars stood out against the dark card chrome. Ties scrollbar-width thin + a color that reads as the card border (#2E2A22) so they recede into the surface. GitOrigin-RevId: 430562e120e4997ed9ee3a17bcc661151ca57734 --- apps/site/src/App.tsx | 1 + apps/site/src/site.css | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/apps/site/src/App.tsx b/apps/site/src/App.tsx index e034279..c38bee6 100644 --- a/apps/site/src/App.tsx +++ b/apps/site/src/App.tsx @@ -212,6 +212,7 @@ function CodeCard({ title, children }: { title: string; children: ReactNode }) {
Date: Wed, 22 Jul 2026 16:43:12 -0700
Subject: [PATCH 2/2] chore(visimer/site): make install target obvious in each
 code card (#2856)

Vanilla, CodeMirror, and Monaco cards jumped straight into JS with no
install line. Adds a leading '# npm i @visimer/...' to each and full
package names in the card titles. Vanilla also shows the two imports
(@visimer/core + @visimer/dom) instead of using bare symbols.

GitOrigin-RevId: 211a200386ec8ddbe5f2ff6015378f6938290ed8
---
 apps/site/src/App.tsx | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/apps/site/src/App.tsx b/apps/site/src/App.tsx
index c38bee6..20f1a5d 100644
--- a/apps/site/src/App.tsx
+++ b/apps/site/src/App.tsx
@@ -955,9 +955,17 @@ export default function App() {
               {'\n\n'}<MermaidWysiwyg code={'{diagram}'}{' '}
               onCodeChange={'{setDiagram}'} mermaid={'{mermaid}'} />
             
-            
-              # framework-free canvas, any app
+            
+              # npm i @visimer/core @visimer/dom mermaid
               {'\n'}
+              import mermaid from 'mermaid'
+              {'\n'}
+              import {'{ MermaidWysiwygEditor }'} from{' '}
+              '@visimer/core'
+              {'\n'}
+              import {'{ MermaidCanvasView }'} from{' '}
+              '@visimer/dom'
+              {'\n\n'}
               const editor = new MermaidWysiwygEditor({'{ '}
               code
               {' }'})
@@ -965,12 +973,9 @@ export default function App() {
               new MermaidCanvasView({'{ '}
               editor, container, mermaid
               {' }'})
-              {'\n'}editor.on('change', ({'{ '}
-              code
-              {' }'}) => save(code))
             
-            
-              # the source pane in the playground above
+            
+              # npm i @visimer/codemirror
               {'\n'}
               import {'{ MermaidCodeMirror }'} from{' '}
               '@visimer/codemirror'
@@ -979,8 +984,8 @@ export default function App() {
               {'\n'}
               # typing, highlights, undo, all shared with the canvas
             
-            
-              # bring your own monaco instance; zero monaco dependency
+            
+              # npm i @visimer/monaco  (bring your own monaco instance)
               {'\n'}
               import {'{ bindMonaco }'} from{' '}
               '@visimer/monaco'