Make background of ERD transparent

This commit is contained in:
Peter Stockings
2026-01-30 18:47:26 +11:00
parent ec12072a33
commit b6443bc1e2
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ class Schema:
def generate_mermaid_er(self, schema_info):
"""Generates Mermaid ER diagram code from schema info."""
mermaid_lines = [
"%%{init: {'theme': 'default', 'themeCSS': '.er.entityBox { fill: none; } .er.attributeBoxEven { fill: none; } .er.attributeBoxOdd { fill: none; }'}}%%",
"%%{init: {'theme': 'default', 'themeCSS': '.er.entityBox { fill: transparent !important; } .er.attributeBoxEven { fill: transparent !important; } .er.attributeBoxOdd { fill: transparent !important; }'}}%%",
"erDiagram"
]

View File

@@ -66,7 +66,7 @@ def main():
# Run mmdc
subprocess.run(
["bun", "x", "mmdc", "-i", input_file, "-o", target_file],
["bun", "x", "mmdc", "-i", input_file, "-o", target_file, "-b", "transparent"],
check=True
)
print(f"Successfully generated {target_file}")

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB