# Theming for MfGames Writing => .. Up a Level One of the big parts about MfGames Writing[1] is the ability to customize the appearance of the generated files. If we didn't have that, then every book would look the same and I don't care for that. Books should allow for different themes, chapter numbers, and even spacing. To that regard, everything is funneled through a theme for formatting. => /tags/mfgames-writing/ 1: /tags/mfgames-writing/ # Series I appear to be writing a short series of post about the tools I use for publication and writing. * Semantic Versions and Releases[2]: Why semantic versioning helps with the writing process. => /blog/2018/08/13/publishing-processes/ 2: /blog/2018/08/13/publishing-processes/ * Evolution of MfGames Writing[3]: A brief history and reasoning behind the tools. => /blog/2018/08/21/mfgames-writing-reasons/ 3: /blog/2018/08/21/mfgames-writing-reasons/ * First Steps Using MfGames Writing[4]: Starting a new project with MfGames Writing. => /blog/2018/08/22/mfgames-writing-init/ 4: /blog/2018/08/22/mfgames-writing-init/ * Adding Content to MfGames Writing[5]: Adding front and back matter to novels. => /blog/2018/08/23/mfgames-writing-content/ 5: /blog/2018/08/23/mfgames-writing-content/ * Working with MfGames Writing, CI, and Docker[6]: Adding automatic building with commits. => /blog/2018/08/24/mfgames-writing-docker-and-ci/ 6: /blog/2018/08/24/mfgames-writing-docker-and-ci/ * Additional Formats for MfGames Writing[7]: How to create PDF, MOBI, DOCX, and HTML versions. => /blog/2018/08/25/mfgames-writing-formats/ 7: /blog/2018/08/25/mfgames-writing-formats/ * Theming for MfGames Writing: A light introduction on how to customize the output. * Integrating Semantic Versioning into MfGames Writing[8]: Tying semantic releases into the process. => /blog/2018/08/27/mfgames-writing-releases/ 8: /blog/2018/08/27/mfgames-writing-releases/ ## HTML The entire theme system is built on HTML and CSS. In previous versions of this, I generated XeLaTeX files for PDF and used a custom conversion utility for Word documents. It also increased the complexity significantly. Switching to a HTML-based system simplified the theme creation and made debugging easier. This is one case where looking at a reference implementation[9] will be helpful. => https://gitlab.com/mfgames-writing/mfgames-writing-clean-js 9: https://gitlab.com/mfgames-writing/mfgames-writing-clean-js ## Components In the content[10] post, there are quite a few references to `element` on each of the content items. These elements are Liquid-based stylesheets that are provided by the theme. => /blog/2018/08/23/mfgames-writing-content/ 10: /blog/2018/08/23/mfgames-writing-content/ For example, the `title.xhtml` in the clean theme looks like this: ```