Sidebar text color vs body text color

Want to confirm that there’s no method for defining the sidebar vs body color in config.toml? Is the only way to have different colors to use unsafe_allow_html? re: Colored boxes around sections of a sentence - #2 by andfanilo

1 Like

Hey!

You use my custom theme, to see how to change things, how to inject custom CSS etc.

Hey thanks this is cool – I notice it’s still using the config.toml file to set textColor though. What in the css should be changed to affect only the body text color and only the sidebar text color?

2 Likes

Hey!

Sorry for the late response.
In order to do what you want, you will need to deep a bit into CSS Selectors.

I’m not near a computer for the following days, so ill answer by what I remmber.
If i remmber right, the generated page is splitting into 2 divs, the first one is the Sidebar, the second one is the main page, I assume you can set the text color for the first div white for example, and the second div color as red.

BUT, widgets have default colors… so im not sure if you can set the color in one parameter which will affect everything on the sidebar / main page.