Frontend Development
This page describes how to make changes to Flarum's user interface. How to add buttons, marquees, and blinking text. 🤩
Remember, Flarum's frontend is a single-page JavaScript application. There's no Twig, Blade, or any other kind of PHP template to speak of. The few templates that are present in the backend are only used to render search-engine-optimized content. All changes to the UI need to be made via JavaScript.
Flarum has two separate frontend applications:
forum, the public side of your forum where users create discussions and posts.admin, the private side of your forum where, as an administrator of your forum, you configure your Flarum installation.
They share the same foundational code, so once you know how to extend one, you know how to extend both.
Along with new TypeScript support, we have a tsconfig package available, which you should install as a dev dependency to gain access to our typings. Make sure you follow the instructions in the package's README to configure typings support.