Skip to content

Commit

Permalink
Add quick styles to mermaid.js diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianrbz committed Sep 23, 2024
1 parent 4849527 commit 46a134c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/_assets/stylesheets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,27 @@
}
}

.mermaid svg {
@apply m-auto;

p, span {
@apply text-primary !important;
}

rect, circle, ellipse, polygon {
@apply fill-transparent stroke-[rgb(var(--color-brand))] !important;
}

.label-container {
@apply fill-[rgb(var(--color-bg-secondary))] !important;
}

.edgeLabel {
@apply bg-primary !important;
}

path {
@apply fill-[rgb(var(--color-brand))] stroke-[rgb(var(--color-brand))] stroke-1 !important
}
}
}

0 comments on commit 46a134c

Please sign in to comment.