Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting diagrams.net configuration #154

Open
jmini opened this issue Jul 1, 2022 · 0 comments
Open

Setting diagrams.net configuration #154

jmini opened this issue Jul 1, 2022 · 0 comments

Comments

@jmini
Copy link

jmini commented Jul 1, 2022

We have started to create some company style-guide for Drawio (having the same colors in all our diagrams).

This is shared between the company members as editor configuration.


In the desktop version of drawio we are able to set them under:
"Extras" -> "Configurations"

Extras menu to edit configuration in the Diagrams.net App

Configuration dialog in the Diagrams.net App

Example JSON content (derived and reduced from the official example)

{
  "defaultFonts": [
    "Helvetica",
    "Verdana"
  ],
  "presetColors": [
    "FFD0DE",
    "FFA2BE"
  ],
  "defaultColorSchemes": [
    [
      null,
      {
        "fill": "#FFf5f5",
        "stroke": "#FF6666"
      },
      {
        "fill": "#FFe8fc",
        "stroke": "#FF8ebf"
      }
    ]
  ],
  "defaultColors": [
    "none",
    "FF0000",
    "FFE6E6",
    "FFCCCC"
  ]
}

With this plugin in IntelliJ the "Extras" menu looks shorter:

Extras in the diagrams.net-intellij-plugin

I was expecting to be able to set the configuration next to the Theme in the diagrams.net preference page.

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

No branches or pull requests

1 participant