Skip to content

CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.

fix(ui): tokenise the one chip that lived outside a .tsx file

codingFeng1011b5e9af27a4c
diff --git a/client/workspaces/ppt/canvas/lib/description-editor.ts b/client/workspaces/ppt/canvas/lib/description-editor.ts
index 2229b97..6581340 100644
--- a/client/workspaces/ppt/canvas/lib/description-editor.ts
+++ b/client/workspaces/ppt/canvas/lib/description-editor.ts
@@ -12,8 +12,10 @@ import { materialToken } from "@/workspaces/ppt/canvas/lib/material-tokens";
* than by the test runner.
*/
+// Matches the material/slide chips in the chat panels. This one lives in a
+// .ts file, which is why it survived the sweeps that globbed .tsx.
const CHIP_CLASS =
- "mx-0.5 inline-flex items-center rounded-md border border-blue-200 bg-blue-50 px-1.5 py-0.5 text-[11px] text-blue-700 align-middle";
+ "mx-0.5 inline-flex items-center rounded-md border border-primary/25 bg-primary/[0.08] px-1.5 py-0.5 text-[11px] text-primary-strong align-middle";
/** A material reference, rendered as one indivisible chip. */
export function createMaterialChip(name: string): HTMLSpanElement {