diff --git a/docs/clab2drawio.md b/docs/clab2drawio.md index f271a9b..dec00fd 100644 --- a/docs/clab2drawio.md +++ b/docs/clab2drawio.md @@ -98,6 +98,48 @@ Using graph-level helps manage the vertical alignment of nodes in the generated ## Customization The tool allows for customization of node and link styles within the generated diagrams, making it possible to adjust the appearance to fit specific requirements or preferences. + +Below are some example images of the available custom styles: + +
+ ### Custom Styles To customize styles, you can edit or copy the `nokia_bright.yaml` configuration file. This file defines the base style, link style, source and target label styles, and custom styles for different types of nodes based on their roles (e.g., routers, switches, servers). diff --git a/docs/img/grafana_dark.png b/docs/img/grafana_dark.png new file mode 100644 index 0000000..c5b62db Binary files /dev/null and b/docs/img/grafana_dark.png differ diff --git a/docs/img/modern_bright.png b/docs/img/modern_bright.png new file mode 100644 index 0000000..46d823e Binary files /dev/null and b/docs/img/modern_bright.png differ diff --git a/docs/img/modern_dark.png b/docs/img/modern_dark.png new file mode 100644 index 0000000..b889db5 Binary files /dev/null and b/docs/img/modern_dark.png differ diff --git a/docs/img/nokia_bright.png b/docs/img/nokia_bright.png new file mode 100644 index 0000000..90465e0 Binary files /dev/null and b/docs/img/nokia_bright.png differ diff --git a/docs/img/nokia_dark.png b/docs/img/nokia_dark.png new file mode 100644 index 0000000..81eebb6 Binary files /dev/null and b/docs/img/nokia_dark.png differ diff --git a/styles/nokia_bright.yaml b/styles/nokia_bright.yaml index b7b611d..decef94 100644 --- a/styles/nokia_bright.yaml +++ b/styles/nokia_bright.yaml @@ -1,7 +1,7 @@ #General Diagram settings: background: "#FFFFFF" shadow: "0" -grid: "1" +grid: "0" pagew: "auto" pageh: "auto" diff --git a/styles/nokia_dark.yaml b/styles/nokia_dark.yaml index aa48f2e..bffac06 100644 --- a/styles/nokia_dark.yaml +++ b/styles/nokia_dark.yaml @@ -1,7 +1,7 @@ #General Diagram settings: background: "#4D5766" shadow: "0" -grid: "1" +grid: "0" pagew: "auto" pageh: "auto" @@ -26,8 +26,8 @@ connector_height: 4 link_style: "endArrow=none;html=1;startSize=6;fontSize=14;strokeColor=#98A2AE;fontColor=#FFFFFF;textOpacity=100;labelBackgroundColor=#4D5766;jumpStyle=gap;strokeWidth=3;" # Style for labels -src_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=6;horizontal=1;" -trgt_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=6;horizontal=1;" +src_label_style: "edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontColor=#FFFFFF;labelBackgroundColor=#4D5766" +trgt_label_style: "edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontColor=#FFFFFF;labelBackgroundColor=#4D5766" default_labels: true label_offset: 20 diff --git a/styles/nokia_modern_dark.yaml b/styles/nokia_modern_dark.yaml index 1471878..e30cdbc 100644 --- a/styles/nokia_modern_dark.yaml +++ b/styles/nokia_modern_dark.yaml @@ -26,11 +26,11 @@ connector_height: 4 link_style: "endArrow=none;html=1;startSize=6;fontSize=14;strokeColor=#98A2AE;fontColor=#FFFFFF;textOpacity=100;labelBackgroundColor=#4D5766;jumpStyle=gap;strokeWidth=3;" # Style for labels -src_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=6;horizontal=1;" -trgt_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=6;horizontal=1;" +src_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=8;fontStyle=1;horizontal=1;" +trgt_label_style: "rounded=1;whiteSpace=wrap;html=1;fontFamily=Google Sans;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DGoogle%2BSans;arcSize=32;spacing=0;spacingBottom=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#98A2AE;fontSize=8;fontStyle=1;horizontal=1;" default_labels: false -label_offset: 20 +label_offset: 25 label_height: 10 label_width: 20 label_alignment: center