{"id":350070,"date":"2021-09-09T07:31:18","date_gmt":"2021-09-09T14:31:18","guid":{"rendered":"https:\/\/css-tricks.com\/?p=350070"},"modified":"2021-09-09T07:31:21","modified_gmt":"2021-09-09T14:31:21","slug":"mars-theme-a-deep-look-at-frontitys-headless-wordpress-theme","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/mars-theme-a-deep-look-at-frontitys-headless-wordpress-theme\/","title":{"rendered":"Mars Theme: A Deep Look at Frontity\u2019s Headless WordPress Theme"},"content":{"rendered":"\n

This post was in progress before Automattic acquired Frontity and its entire team<\/a>. According to Frontity’s founders, the framework will be transitioned into a community-led project and leave the project in \u201ca stable, bug-free position\u201d with documentation and features. Like other open-source community projects, Frontity will remain free as it has been, with opportunities to contribute to the project and make it an even better framework for decoupled WordPress. More detail is found in this FAQ page<\/a>.<\/p>\n\n\n\n

In my previous article<\/a>, we created a headless WordPress site with Frontity and briefly looked at its file structure. In this companion article, we will go into a deep dive of the @frontity\/mars-theme<\/code> package, or Mars Theme, with a step-by-step walkthrough on how to customize it to make our own. Not only is the Mars Theme a great starter, it\u2019s Frontity\u2019s default theme \u2014 sort of like WordPress Twenty Twenty-One or the like. That makes it a perfect starting point for us to get hands-on experience with Frontity and its features.<\/p>\n\n\n\n

Specifically, we will look at the fundamental parts of Frontity\u2019s Mars Theme, including what they call \u201cbuilding blocks\u201d as well as the different components that come with the package. We\u2019ll cover what those components do, how they work, and finally, how styling works with examples.<\/p>\n\n\n\n\n\n\n\n

Ready? Let\u2019s go!<\/p>\n\n\n\n

Table of contents<\/h2>\n\n\n