UML Class Diagram Generator
Create UML class diagrams showing classes, attributes, methods, and relationships
Classes
Person
Employee
Relationships
Person → Employee
Style Settings
Theme
Preview
Export
HTML Output
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UML Class Diagram</title>
<style>
.class-diagram-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f8f9fa;
padding: 20px;
}
.class-diagram-container svg {
max-width: 100%;
height: auto;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.class-box {
fill: #ffffff;
stroke: #2c3e50;
stroke-width: 2;
}
.class-header {
fill: #3498db;
}
.class-name {
fill: white;
font-weight: bold;
}
.class-stereotype {
fill: white;
font-style: italic;
}
.class-section {
fill: #ffffff;
}
.attribute-text, .method-text {
fill: #2c3e50;
font-family: 'Courier New', monospace;
}
.relationship-line {
stroke: #34495e;
stroke-width: 2;
fill: none;
}
</style>
</head>
<body>
<div class="class-diagram-container">
</div>
</body>
</html>