structurizr / ui

UI code for Structurizr Lite, on-premises, and cloud service.
https://docs.structurizr.com/ui
MIT License
43 stars 27 forks source link

Add the possibility to define style for HTML export #29

Open Gsyltc opened 1 year ago

Gsyltc commented 1 year ago

Description

Hi,

Would it be possible to add to styles the ability to define the colors of titles (H1 to H4) and tables for exporting HTML documentation?

This would provide the right formatting for exporting documentation.

Exemple : branding { logo theme/logo.png font thefont h1color #00c2f1 h2color red thcolor white thbackground #a2c1d3 }

or in Markdown Metadata

---
title: Document title
color:
  h1: #00c2f1
  h2: red
  table_header_background: white
  table_header_colot: #a2c1d3
---

in order to have this in html

    `h1 {
        font-size: 50px;
        font-weight: normal;
        color: #00c2f1
    }
    h2 {
        margin-top: 100px;
        margin-bottom: 10px;
        font-size: 40px;
        font-weight: normal;
        color: red;
    }        
    th {
        background: #a2c1d3;
        color: white;
        font-weight: normal;
        padding: 5px 10px 5px 10px;
        border: solid 1px gray;`

Thanks

Priority

Low

Resolution

I have no budget, please add this feature for free

More information

No response