Is there a good way to make the table more beautiful?

Hi everyone,

I was using discourse and showdoc at the sample time.

I think the showdoc table is very beautiful, but the discourse is not so “clear”.

The showdoc table has a blue head, like below
image

But in Discourse, it is not so clear, not separable to other texts, like below.

A B C
1 2 3
2 3 4

Do we have a way to make the table in Discourse more beautiful? Like also have a blue header.

3 Likes

Sure, a site admin could add a theme to modify the look of a table. For example, something like this could be used to make the header blue with white text:

.cooked table thead th, .d-editor-preview table thead th {
    background: dodgerblue;
    color: white;
}

And the following would add borders on the left and right of the cells:

.cooked table td, .d-editor-preview table td {
    border-right: 1px solid var(--primary-low);
    border-left: 1px solid var(--primary-low);
}

image

12 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.