2016-07-17, 02:49 PM
Our Plans
Though MyBB 2's theme system has not yet been developed, a number of pieces are already in place or in planning stages for when development of the theme system begins. Below are our current plans for MyBB 2's theme system:
Custom Stylesheets with built-in SASS support
As can be seen in the MyBB 2 repository on GitHub, we are already using SASS to dramatically simplify our stylesheets and the way they are managed. This includes built-in support for multiple stylesheets, theme variables, nesting, reuse of CSS using mixins, and much more.
Custom Views using the Twig templating engine
MyBB 2 already uses the Twig templating engine for views, which is comparable to templates in MyBB 1.x. Twig provides a number of features that allow us to reduce the number of templates included in the MyBB theme and make template management and customization of your forum's theme simpler.
Built-in asset manager for CSS and JavaScript
Current plans include using the Assetic asset management system to manage custom CSS and JavaScript in the Admin CP.
The Asset manager will allow the addition of custom stylesheets and JavaScript files/blocks to both the global asset collection, and to single pages/sections. All stylesheets and JS will be minified and combined to save bandwidth, and JavaScript will have a basic dependency system to ensure that dependencies are loaded (e.g.: if a script you add requires jQuery, the system will make sure it is loaded first).
This is still being thought out and there's no user interface to show yet, but we will certainly be talking about it as we plan it out.
Icon Library
Currently, MyBB 2 uses FontAwesome to provide a wide variety icons throughout the front end. We are currently planning to move to the use of SVG icons, which provide a number of benefits compared to icon fonts. Though not yet implemented, our plan is to allow easy inclusion of a wide variety of icons with a short line of code. This would allow plugin and theme authors to use additional icons beyond those that are used in the default MyBB theme.
Editor Enhancements
The current style and template editor provides basic syntax highlighting which can help a little. In 2.0, the editor will include tabbed editing (allowing the editing of multiple files within a single browser tab) along with changes being applied via AJAX rather than requiring a full page reload.
Additionally, we plan to include a preview system for stylesheet changes, allowing you to see what affect your changes have in real time.
Your Feedback
If you have any specific feedback on these plans, or on anything else you think we need to consider as we develop MyBB 2's theme system, please share it below.
Thanks,
The MyBB Team
Though MyBB 2's theme system has not yet been developed, a number of pieces are already in place or in planning stages for when development of the theme system begins. Below are our current plans for MyBB 2's theme system:
Custom Stylesheets with built-in SASS support
As can be seen in the MyBB 2 repository on GitHub, we are already using SASS to dramatically simplify our stylesheets and the way they are managed. This includes built-in support for multiple stylesheets, theme variables, nesting, reuse of CSS using mixins, and much more.
Custom Views using the Twig templating engine
MyBB 2 already uses the Twig templating engine for views, which is comparable to templates in MyBB 1.x. Twig provides a number of features that allow us to reduce the number of templates included in the MyBB theme and make template management and customization of your forum's theme simpler.
Built-in asset manager for CSS and JavaScript
Current plans include using the Assetic asset management system to manage custom CSS and JavaScript in the Admin CP.
The Asset manager will allow the addition of custom stylesheets and JavaScript files/blocks to both the global asset collection, and to single pages/sections. All stylesheets and JS will be minified and combined to save bandwidth, and JavaScript will have a basic dependency system to ensure that dependencies are loaded (e.g.: if a script you add requires jQuery, the system will make sure it is loaded first).
This is still being thought out and there's no user interface to show yet, but we will certainly be talking about it as we plan it out.
Icon Library
Currently, MyBB 2 uses FontAwesome to provide a wide variety icons throughout the front end. We are currently planning to move to the use of SVG icons, which provide a number of benefits compared to icon fonts. Though not yet implemented, our plan is to allow easy inclusion of a wide variety of icons with a short line of code. This would allow plugin and theme authors to use additional icons beyond those that are used in the default MyBB theme.
Editor Enhancements
The current style and template editor provides basic syntax highlighting which can help a little. In 2.0, the editor will include tabbed editing (allowing the editing of multiple files within a single browser tab) along with changes being applied via AJAX rather than requiring a full page reload.
Additionally, we plan to include a preview system for stylesheet changes, allowing you to see what affect your changes have in real time.
Your Feedback
If you have any specific feedback on these plans, or on anything else you think we need to consider as we develop MyBB 2's theme system, please share it below.
Thanks,
The MyBB Team