wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Configurable Colors and Fonts

Open barredterra opened this issue 3 years ago • 4 comments

Issue

Currently, wiki defines its own style, separate from the rest of the website, which gets included in wiki pages only. This way, it's also not configurable.

Proposed solution

For usual web pages we can define colors, fonts, etc. in Website Theme. IMHO, this should apply to wiki as well.

We can achieve this by creating a website.bundle.scss, which imports all the wiki styles. We'll need to scope the styles to apply to wiki pages only, avoiding to mess up the rest of the website.

barredterra avatar Jul 17 '22 14:07 barredterra

wiki uses the variables defined by the website theme so changing that should change wiki too

hasnain2808 avatar Jul 21 '22 11:07 hasnain2808

That's what I expected, but it doesn't

barredterra avatar Jul 21 '22 12:07 barredterra

That's weird We remember breaking our internal wiki by adding custom CSS/ js for webpages

Full theme capabilities support would be cool though

hasnain2808 avatar Jul 23 '22 16:07 hasnain2808

Yes, I can imagine that you had problems this way around.

Website Theme only takes into account website.bundle.scss. But wiki doesn't provide this file. Instead it has several CSS files that get included in the specific pages directly. This way it cannot access the fonts and colors defined in Website Theme.

barredterra avatar Jul 23 '22 18:07 barredterra