diff --git a/apps/site/src/App.tsx b/apps/site/src/App.tsx index e034279..20f1a5d 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 }) {
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
               {' }'})
@@ -964,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'
@@ -978,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'
diff --git a/apps/site/src/site.css b/apps/site/src/site.css
index cea9251..a942b08 100644
--- a/apps/site/src/site.css
+++ b/apps/site/src/site.css
@@ -178,3 +178,26 @@ textarea {
     gap: 10px !important;
   }
 }
+
+/* CodeCard scrollbars: subtle, tinted to the card chrome (bg #1E1B16, border #2E2A22). */
+.code-card-scroll {
+  scrollbar-width: thin;
+  scrollbar-color: #2E2A22 transparent;
+}
+.code-card-scroll::-webkit-scrollbar {
+  width: 6px;
+  height: 6px;
+}
+.code-card-scroll::-webkit-scrollbar-track {
+  background: transparent;
+}
+.code-card-scroll::-webkit-scrollbar-thumb {
+  background: #2E2A22;
+  border-radius: 99px;
+}
+.code-card-scroll::-webkit-scrollbar-thumb:hover {
+  background: #3A362D;
+}
+.code-card-scroll::-webkit-scrollbar-corner {
+  background: transparent;
+}