Change background color in table #532
-
Hello, I am working on a modified version of rose-pine, you can find it here. I am wondering how I can change the background colors of table. So far, this code did not work:
What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Sep 3, 2024
Replies: 1 comment 1 reply
-
The table td {
background-color: var(--base);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andreabonetti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
default
theme (a base theme you are using) has different background colors in each row, so the specified background color into the table is overloaded by rows. You should set the background color into each cell to overload row colors.