We heard you! Table Header Color and Table Group are now available in dbdocs! These two are well-loved features in dbdiagram, and are most requested by our dbdocs community.
With this, you can add a custom color to your table headers and group tables together to better organize your data models.
Table Header Color
Choose a custom header color for each of your tables! This allows you to differentiate between tables and create more visually appealing documentation.
To set the header color for a table, use the following syntax:
These features are immediately available for everyone. However, similar to dbdiagram, they might be moved to a paid offering when we introduce paid plans in dbdocs in the next couple of months.
Thank you for your suggestions.
It would be useful to have the capability for adding notes to table groups. We took note of it and will consider it in the future.
I found a problem in the dbdiagram VS Code extension preview.
When I define headercolor directly in the DBML file, the preview renders the tables and relationships correctly, but it does not apply the header colors.
both table headers appear without the configured colors
I also tried changing the color from the preview UI. The color appears while the table is selected, but after deselecting the table, the color disappears again.
So the issue seems to be specifically related to color rendering/persistence in the VS Code preview, not to the DBML structure itself.
We just checked the table header color and it seems to be working fine. Just a heads up, the header colors available with a paid plan. So, make sure you log in to dbdiagram with the extension and have a paid plan to use them.