mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-21 09:16:41 +02:00
Update README.md
Added info about default styles
This commit is contained in:
22
README.md
22
README.md
@@ -67,9 +67,29 @@ Would end up like this:
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
An id is also added to mermaid tags without id.
|
An id is also added to mermaid tags without id.
|
||||||
|
|
||||||
|
## Default style
|
||||||
|
|
||||||
|
Set the default styles for the graphics in css:
|
||||||
|
|
||||||
|
```
|
||||||
|
text {
|
||||||
|
font-weight: 300;
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serf;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.node rect {
|
||||||
|
stroke: #999;
|
||||||
|
fill: #fff;
|
||||||
|
stroke-width: 1.5px;
|
||||||
|
}
|
||||||
|
.edgePath path {
|
||||||
|
stroke: #333;
|
||||||
|
stroke-width: 1.5px;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# A graph example
|
# A graph example
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user