@elmethis/draw.io
v0.1.1
Published
diagrams.net configuration generated from the Elmethis design tokens.
Readme
@elmethis/draw.io
A diagrams.net editor configuration generated from
the design tokens published by @elmethis/core.
Use In diagrams.net
- Build
@elmethis/core, then this package. - Open Extras > Configuration in diagrams.net.
- Paste the contents of
dist/draw.io-config.jsoninto the JSON tab. - Apply the configuration and reload the editor.
pnpm --filter @elmethis/core run build
pnpm --filter @elmethis/draw.io run buildThe generated configuration uses explicit light-dark() color pairs with
simple adaptive colors, Elmethis color palettes and named color schemes, and
the Elmethis sans-serif fonts for shapes, connectors, standalone text, and SVG
font embedding.
Package Export
The generated JSON is available from the package root or the explicit
draw.io-config.json subpath.
import config from "@elmethis/draw.io" with { type: "json" };The package includes matching Elmethis document and selected-element style
presets. It intentionally does not set override, editor layout, libraries, or
keyboard behavior. Those are user and deployment preferences rather than
Elmethis design tokens.
