testingisdocumenting / znai

Build functional, maintainable, beautiful User Guides with markdown and Znai plugins. Instant pages navigation. Local search. Multiple integrations to work with Python, Java, C++, OpenAPI, etc. Transform "getting started" sections into slideshow for your workshops. Manage multiple documentations with self-deployed znai hub.
https://testingisdocumenting.org/znai
Apache License 2.0
241 stars 13 forks source link

UI Customization of the Generated Site #1214

Closed TheSilverNimbus closed 3 weeks ago

TheSilverNimbus commented 3 weeks ago

I've recently started using Znai for my own open source libraries and I was trying to find any resources or references in the official Znai guide on how to customize the look of the final generated site.

I just wanted to make some minor changes to the site, by way of the typefaces (and their sizes) and the colors of some of the elements on the page. Is it possible to make these changes?

TheSilverNimbus commented 3 weeks ago

Never mind! I found them in the target build folder.

MykolaGolubyev commented 3 weeks ago

@TheSilverNimbus sorry for the delay. There is a supported way to provide style overrides. You need to create style.css file in the root (where toc file is). Feel free to override any css vars there. anything with znai- prefix is safe to override. The rest could be a subject to change.

TheSilverNimbus commented 3 weeks ago

Awesome. Thank you so much for the response! This was incredibly helpful!